Page 1 of 1

'/usr/bin/ld: cannot find -lposix' message appear.

Posted: Fri Oct 24, 2003 4:44 am
by tweet
redhat9.0 used,,,,,,,,,,
gd-2.0.15 would install.
[root@localhost gd-2.0.15]# ./configure LIBS=-lposix
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output... configure: error: C compiler cannot create executables
See `config.log' for more details.

root@localhost gd-2.0.15 ]#vi config.log

## ----------- ##
## Core tests. ##
## ----------- ##

configure:1515: checking for a BSD-compatible install
configure:1569: result: /usr/bin/install -c
configure:1580: checking whether build environment is sane
configure:1623: result: yes
configure:1656: checking for gawk
configure:1672: found /bin/gawk
configure:1682: result: gawk
configure:1692: checking whether make sets $(MAKE)
configure:1712: result: yes
configure:1916: checking for gcc
configure:1932: found /usr/bin/gcc
configure:1942: result: gcc
configure:2186: checking for C compiler version
configure:2189: gcc --version </dev/null >&5
gcc (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2192: $? = 0
configure:2194: gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux
Thread model: posix
gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
configure:2197: $? = 0
configure:2199: gcc -V </dev/null >&5
gcc: argument to `-V' is missing
configure:2202: $? = 1
configure:2226: checking for C compiler default output
configure:2229: gcc conftest.c -lposix >&5
/usr/bin/ld: cannot find -lposix
collect2: ld returned 1 exit status
configure:2232: $? = 1
configure: failed program was:

how do?????????????????

Posted: Fri Oct 24, 2003 7:45 am
by evilMind
What happens when you try ./configure w/o -lposix?

Posted: Fri Oct 24, 2003 7:47 am
by volka
Have you tried without LIBS=-lposix?