From:             cyrille37 at gmail dot com
Operating system: Linux
PHP version:      5.2.9
PHP Bug Type:     MySQL related
Bug description:  apache link failed: undefined reference to `mysql_server_init'

Description:
------------
While I try to make Apache1.3.41 and Php5.2.9 a error occured.
Php compilation works fine.
Apache compilation fails a link time :
php_mysql.c:405: undefined reference to `mysql_server_init'
php_mysql.c:426: undefined reference to `mysql_server_end'
php_mysql.c:1120: undefined reference to `mysql_set_character_set'


Reproduce code:
---------------
I've only got 'configure' options that I could send you if you need.

Expected result:
----------------
Successed compilation of Apache.

Actual result:
--------------
Apache compilation fail :
...
<=== src/modules
gcc -c  -I./os/unix -I./include   -DLINUX=22 -DHAVE_SET_DUMPABLE
-I/usr/include/db1 -DMOD_SSL=208131 -DEAPI -DNO_DL_NEEDED `./apaci`
modules.c
gcc -c  -I./os/unix -I./include   -DLINUX=22 -DHAVE_SET_DUMPABLE
-I/usr/include/db1 -DMOD_SSL=208131 -DEAPI -DNO_DL_NEEDED `./apaci`
buildmark.c
gcc  -DLINUX=22 -DHAVE_SET_DUMPABLE -I/usr/include/db1 -DMOD_SSL=208131
-DEAPI -DNO_DL_NEEDED `./apaci` -L/usr/lib   \
      -o httpd buildmark.o modules.o modules/standard/libstandard.a
modules/ssl/libssl.a modules/php5/libphp5.a main/libmain.a
./os/unix/libos.a ap/libap.a    -Wl,-rpath,/usr/local/lib
-Wl,-rpath,/home/mysql/lib  -rdynamic -L/usr/local/lib -L/home/mysql/lib
-Lmodules/php5 -L../modules/php5 -L../../modules/php5 -lmodphp5   
-rdynamic -L/usr/local/lib -L/home/mysql/lib -lcrypt   -lexslt -lcrypt -lrt
-lmysqlclient -lmcrypt -lltdl -lpng -lz -ljpeg -lz -lssl -lcrypto -lresolv
-lm -ldl -lnsl  -lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt -lxml2
-lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lxslt -lxml2 -lz -lm -lcrypt   -lm
-lcrypt -lndbm  -lssl -lcrypto -lexpat
modules/php5/libphp5.a(php_mysql.o): In function `zm_startup_mysql':
/usr/local/src/php-5.2.9/ext/mysql/php_mysql.c:405: undefined reference to
`mysql_server_init'
modules/php5/libphp5.a(php_mysql.o): In function `zm_shutdown_mysql':
/usr/local/src/php-5.2.9/ext/mysql/php_mysql.c:426: undefined reference to
`mysql_server_end'
modules/php5/libphp5.a(php_mysql.o): In function `zif_mysql_set_charset':
/usr/local/src/php-5.2.9/ext/mysql/php_mysql.c:1120: undefined reference
to `mysql_set_character_set'
collect2: ld returned 1 exit status


-- 
Edit bug report at http://bugs.php.net/?id=47715&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        
http://bugs.php.net/fix.php?id=47715&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        
http://bugs.php.net/fix.php?id=47715&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        
http://bugs.php.net/fix.php?id=47715&r=trysnapshot60
Fixed in CVS:                        
http://bugs.php.net/fix.php?id=47715&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=47715&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=47715&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=47715&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=47715&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=47715&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=47715&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=47715&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=47715&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=47715&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=47715&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=47715&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=47715&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=47715&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=47715&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=47715&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=47715&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=47715&r=mysqlcfg

Reply via email to