* [devel] Q: pthread trouble
@ 2006-03-18 15:11 Dmitry Lebkov
2006-03-18 15:34 ` [devel] Q: libldap_r.so trouble Dmitry V. Levin
0 siblings, 1 reply; 3+ messages in thread
From: Dmitry Lebkov @ 2006-03-18 15:11 UTC (permalink / raw)
To: devel
Доброго времени суток,
Пересобираю openldap-2.3.20 (из Дедала) на последнем Сизифе. Сборка
прекращается вот с такой вот диагностикой. Кто-нить может подсказать,
в чём проблема и как ее обойти?
/bin/sh ../..//libtool --mode=link cc -pipe -Wall -O2 -march=i586 -mcpu=i686 \
-lkrb5 -lk5crypto -lkrb5support -lcom_err -lresolv -o apitest apitest.o \
libldap_r.la ../../libraries/liblber/liblber.la ../../libraries/liblutil/liblutil.a \
-lsasl2 -lssl -lcrypto -lcrypt -lresolv -pthread
cc -pipe -Wall -O2 -march=i586 -mcpu=i686 -o .libs/apitest apitest.o -pthread \
-lkrb5 -lk5crypto -lkrb5support -lcom_err ./.libs/libldap_r.so \
../../libraries/liblber/.libs/liblber.so ../../libraries/liblutil/liblutil.a \
-lsasl2 -lssl -lcrypto -lcrypt -lresolv
./.libs/libldap_r.so: undefined reference to `pthread_create'
./.libs/libldap_r.so: undefined reference to `pthread_kill_other_threads_np'
./.libs/libldap_r.so: undefined reference to `pthread_setconcurrency'
./.libs/libldap_r.so: undefined reference to `pthread_kill'
./.libs/libldap_r.so: undefined reference to `pthread_attr_setstacksize'
./.libs/libldap_r.so: undefined reference to `pthread_mutex_trylock'
./.libs/libldap_r.so: undefined reference to `pthread_join'
./.libs/libldap_r.so: undefined reference to `pthread_getconcurrency'
collect2: ld returned 1 exit status
make[2]: *** [apitest] Error 1
--
WBR, Dmitry Lebkov
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [devel] Q: libldap_r.so trouble
2006-03-18 15:11 [devel] Q: pthread trouble Dmitry Lebkov
@ 2006-03-18 15:34 ` Dmitry V. Levin
2006-03-18 18:22 ` [devel] I: underlinked shared libraries are evil Dmitry V. Levin
0 siblings, 1 reply; 3+ messages in thread
From: Dmitry V. Levin @ 2006-03-18 15:34 UTC (permalink / raw)
To: ALT Devel discussion list
[-- Attachment #1: Type: text/plain, Size: 1676 bytes --]
On Sun, Mar 19, 2006 at 01:11:05AM +1000, Dmitry Lebkov wrote:
> Пересобираю openldap-2.3.20 (из Дедала) на последнем Сизифе. Сборка
> прекращается вот с такой вот диагностикой. Кто-нить может подсказать,
> в чём проблема и как ее обойти?
>
> /bin/sh ../..//libtool --mode=link cc -pipe -Wall -O2 -march=i586 -mcpu=i686 \
> -lkrb5 -lk5crypto -lkrb5support -lcom_err -lresolv -o apitest apitest.o \
> libldap_r.la ../../libraries/liblber/liblber.la ../../libraries/liblutil/liblutil.a \
> -lsasl2 -lssl -lcrypto -lcrypt -lresolv -pthread
> cc -pipe -Wall -O2 -march=i586 -mcpu=i686 -o .libs/apitest apitest.o -pthread \
> -lkrb5 -lk5crypto -lkrb5support -lcom_err ./.libs/libldap_r.so \
> ../../libraries/liblber/.libs/liblber.so ../../libraries/liblutil/liblutil.a \
> -lsasl2 -lssl -lcrypto -lcrypt -lresolv
> ./.libs/libldap_r.so: undefined reference to `pthread_create'
> ./.libs/libldap_r.so: undefined reference to `pthread_kill_other_threads_np'
> ./.libs/libldap_r.so: undefined reference to `pthread_setconcurrency'
> ./.libs/libldap_r.so: undefined reference to `pthread_kill'
> ./.libs/libldap_r.so: undefined reference to `pthread_attr_setstacksize'
> ./.libs/libldap_r.so: undefined reference to `pthread_mutex_trylock'
> ./.libs/libldap_r.so: undefined reference to `pthread_join'
> ./.libs/libldap_r.so: undefined reference to `pthread_getconcurrency'
> collect2: ld returned 1 exit status
> make[2]: *** [apitest] Error 1
ld жалуется на то, что libldap_r.so нуждается в символах из libpthread, но
не слинкован с -lpthread.
Пожалуйста, линкуйте публичные библиотеки со всем, в чём они нуждаются.
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 191 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [devel] I: underlinked shared libraries are evil
2006-03-18 15:34 ` [devel] Q: libldap_r.so trouble Dmitry V. Levin
@ 2006-03-18 18:22 ` Dmitry V. Levin
0 siblings, 0 replies; 3+ messages in thread
From: Dmitry V. Levin @ 2006-03-18 18:22 UTC (permalink / raw)
To: ALT Devel discussion list
[-- Attachment #1: Type: text/plain, Size: 1417 bytes --]
On Sat, Mar 18, 2006 at 06:34:20PM +0300, Dmitry V. Levin wrote:
> On Sun, Mar 19, 2006 at 01:11:05AM +1000, Dmitry Lebkov wrote:
[...]
> > cc -pipe -Wall -O2 -march=i586 -mcpu=i686 -o .libs/apitest apitest.o -pthread \
> > -lkrb5 -lk5crypto -lkrb5support -lcom_err ./.libs/libldap_r.so \
> > ../../libraries/liblber/.libs/liblber.so ../../libraries/liblutil/liblutil.a \
> > -lsasl2 -lssl -lcrypto -lcrypt -lresolv
> > ./.libs/libldap_r.so: undefined reference to `pthread_create'
> > ./.libs/libldap_r.so: undefined reference to `pthread_kill_other_threads_np'
> > ./.libs/libldap_r.so: undefined reference to `pthread_setconcurrency'
> > ./.libs/libldap_r.so: undefined reference to `pthread_kill'
> > ./.libs/libldap_r.so: undefined reference to `pthread_attr_setstacksize'
> > ./.libs/libldap_r.so: undefined reference to `pthread_mutex_trylock'
> > ./.libs/libldap_r.so: undefined reference to `pthread_join'
> > ./.libs/libldap_r.so: undefined reference to `pthread_getconcurrency'
> > collect2: ld returned 1 exit status
> > make[2]: *** [apitest] Error 1
>
> ld жалуется на то, что libldap_r.so нуждается в символах из libpthread, но
> не слинкован с -lpthread.
>
> Пожалуйста, линкуйте публичные библиотеки со всем, в чём они нуждаются.
Кроме того, почти со всеми недолинкованными библиотеками теперь нельзя
линковаться. Скоро пришлют логи, сами увидите.
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 191 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-03-18 18:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-18 15:11 [devel] Q: pthread trouble Dmitry Lebkov
2006-03-18 15:34 ` [devel] Q: libldap_r.so trouble Dmitry V. Levin
2006-03-18 18:22 ` [devel] I: underlinked shared libraries are evil Dmitry V. Levin
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git