Re: A problem(?) with pthreads



Hi Danilo!

I greatly appreciate your taking the time to respond to this!  Early on, I
tried as you suggested, specifically, adding -lpthread. When I tried
compiling, specifically, during the configuration checks, I would get a
message saying that the 'cc' compiler was not working, and thus could
not produce the executable binaries.  If I removed the specific library
(ie.- -lpthread), everything would start compiling once again, although,
we're back to where we started, as can be seen below:

==> Running configure in work/main.d/pkgconfig-0.15.0
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal-1.4... missing
checking for working autoconf... missing
checking for working automake-1.4... missing
checking for working autoheader... missing
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of Makefiles... no
checking for Cygwin environment... no
checking for mingw32 environment... no
checking how to run the C preprocessor... cc -E
checking host system type... i386-unknown-freebsd5.1
checking build system type... i386-unknown-freebsd5.1
checking for gcc... cc
checking whether the C compiler (cc -I/home/carl/garnome/include
-I/usr/X11R6/include -I/usr/local/include -L/home/carl/garnome/lib
-L/usr/X11R6/lib -L/usr/local/lib -L/usr/compat/linux/lib -L/usr/lib  -O2
-pipe -L/home/carl/garnome/lib -L/usr/X11R6/lib -L/usr/local/lib
-L/usr/compat/linux/lib -lpthread -L/usr/lib  ) works... no
configure: error: installation or configuration problem: C compiler cannot
create executables.

Again, if I remove that "-lpthread", the config check passes, and
everything moves forward, but I have the same problem as before.

Any suggestions?

Thanks for your help, Danilo, I greatly appreciate it!


Best Regards,
Carl


On Mon, 29 Dec 2003, Danilo Segan wrote:

> As you can notice, there's no "-lpthread" in any of above commands.
> So, you may workaround this by adding -lpthread also to LDFLAGS, or
> simply doing it by hand whenever such thing occurs, eg. using
> something like:
>
> cc -g -I/home/carl/garnome/include -I/usr/X11R6/include
> -I/usr/local/include -O2 -pipe -o .libs/name-client-2 name-client.o
> name-support.o  -L/home/carl/garnome/lib -L/usr/X11R6/lib -L/usr/local/lib
> -L/usr/compat/linux/lib -lpthread -L/usr/lib
> ../../../src/orb/.libs/libORBit-2.so ./.libs/libORBitCosNaming-2.so
>
> (for this particular case, I've just copied the command verbatim, and
> added -lpthread after -L/usr/compat/linux/lib)
>
> I didn't try this, but I hope it will help.
>
> Cheers,
> Danilo
>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]