#20904 [NEW]: duplicate -l options in EXTRA_LIBS cause link error

From: Date: Mon, 09 Dec 2002 13:20:02 +0000
Subject: #20904 [NEW]: duplicate -l options in EXTRA_LIBS cause link error
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-27170@lists.php.net to get a copy of this message
From: achowe@snert.com Operating system: Mandrake Linux 9.0 PHP version: 4.2.3 PHP Bug Type: *Configuration Issues Bug description: duplicate -l options in EXTRA_LIBS cause link error The "configure" script generates the "config_vars.mk", which contains duplicate -l library options for the EXTRA_LIBS macro. For example: EXTRA_LIBS = -lpq -lmysqlclient -lgd -lpng -lz -ljpeg -lz -lcrypt -lssl -lcrypto -lresolv -lm -ldl -lnsl -lresolv -lcrypt -lmysqlclient -lm -lz -lcrypto -lssl -ludmsearch This causes _many_ linking errors, in particular related to "mysqlclient" of the form: /usr/lib/libmysqlclient.a(ctype-ujis.o)(.data+0x0): first defined here /usr/lib/libmysqlclient.a(ctype-ujis.o)(.data+0x120): multiple definition of `to _lower_ujis' The quick work around is to edit config_vars.mk after running teh configure script and remove the duplicate -l from the macro EXTRA_LIBS, for example: EXTRA_LIBS = -lpq -lmysqlclient -lgd -lpng -lz -ljpeg -lcrypt -lssl -lcrypto -lresolv -lm -ldl -lnsl -ludmsearch -- Edit bug report at http://bugs.php.net/?id=20904&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=20904&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=20904&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=20904&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=20904&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=20904&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=20904&r=support Expected behavior: http://bugs.php.net/fix.php?id=20904&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=20904&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=20904&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=20904&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20904&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=20904&r=dst IIS Stability: http://bugs.php.net/fix.php?id=20904&r=isapi

« previous php.bugs (#27170) next »