Problem with ld and -lm option.
| From: | Andres Plaza R. | Date: | Tue, 29 Jan 2002 00:17:20 +0000 |
| Subject: | Problem with ld and -lm option. | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-5800@lists.php.net to get a copy of this message | ||
Hi everybody!
I was looking the archive of this mailing list, and I think nobody
has the same problem that I had, so here it is:
I have a dual processor (Pentium III 1 GHz each) DELL Poweredge machine
with 1Gb RAM. I installed RH 7.2 with a custom instalation, but generally
speaking everything that is needed in a server is installed.
I compiled Apache 1.3.22 + mod_ssl without problems, and now I'm trying to
install PHP 4.1.1 with this configuration:
./configure --with-mysql --with-apxs=/usr/local/apache/bin/apxs --with-openssl=/usr/local/ssl
--with-zlib=/usr --with-curl=/usr/local --with-oci8=/usr/local/oracle/8.0.5 --with-gd
but this message appears:
| *** ATTENTION *** |
| |
| Something is likely to be messed up here, because the configure |
| script was not able to detect a simple feature on your platform. |
| This is often caused by incorrect configuration parameters. Please |
| see the file debug.log for error messages. |
and if I look the debug.log :
CONFIGURE: './configure' '--with-mysql'
'--with-apxs=/usr/local/apache/bin/apxs' '--with-openssl=/usr/local/ssl'
'--with-zlib=/usr' '--with-curl=/usr/local'
'--with-oci8=/usr/local/oracle/8.0.5' '--with-gd'
CC: gcc
CFLAGS: -g -O2
CPPFLAGS: -DLINUX=22 -DMOD_SSL=208105 -DUSE_HSREGEX -DEAPI
CXX:
CXXFLAGS:
INCLUDES: -I/usr/local/apache/include -I$(top_builddir)/Zend -I/usr/local/ssl/include
-I/usr/local/include -I/home/apl/comp/php-4.1.1/ext/mysql/libmysql
-I/usr/local/oracle/8.0.5/rdbms/public -I/usr/local/oracle/8.0.5/rdbms/demo
-I/usr/local/oracle/8.0.5/network/public -I/usr/local/oracle/8.0.5/plsql/public
LDFLAGS: -Wl,-rpath,/usr/local/ssl/lib -L/usr/local/ssl/lib -Wl,-rpath,/usr/local/lib
-L/usr/local/lib -Wl,-rpath,/usr/local/oracle/8.0.5/lib -L/usr/local/oracle/8.0.5/lib
LIBS: -lclntsh -lpsa -lcore4 -lnlsrtl3 -lm
-lnsl -lgd -lcurl -ldl -lcrypto -lssl -lcurl -lz
-lcrypt -lssl -lcrypto -lresolv -lm -ldl -lnsl -lresolv -lcrypt
DLIBS:
SAPI: apache
PHP_RPATHS: /usr/local/ssl/lib /usr/local/lib /usr/local/oracle/8.0.5/lib
uname -a: Linux escuela.ing.uchile.cl 2.4.7-10smp #1 SMP Thu Sep 6 17:09:31 EDT 2001 i686 unknown
gcc -o conftest -g -O2 -DLINUX=22 -DMOD_SSL=208105 -DUSE_HSREGEX -DEAPI
-Wl,-rpath,/usr/local/ssl/lib -L/usr/local/ssl/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib
-Wl,-rpath,/usr/local/oracle/8.0.5/lib -L/usr/local/oracle/8.0.5/lib conftest.c -lclntsh -lpsa
-lcore4 -lnlsrtl3 -lm
-lnsl -lgd -lcurl -ldl -lcrypto -lssl -lcurl -lz -lcrypt -lssl -lcrypto
-lresolv -lm -ldl -lnsl -lresolv -lcrypt 1>&5
/usr/bin/ld: cannot find -lm
collect2: ld returned 1 exit status
But if I look for libm.*, they are in /usr/lib (libm.a, and
libm.so is a symbolic link to an existing file in /lib).
Somebody have an idea about my problem, and how to solve it?
Thanks in advance...
--
Andres Plaza R.
apl@mafia.cl
http://la.mafia.cl/aplaza