php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #535 symbol reference errors
Submitted: 1998-07-10 12:09 UTC Modified: 1998-07-10 13:03 UTC
From: tou at arlut dot utexas dot edu Assigned:
Status: Closed Package: Compile Failure
PHP Version: 3.0.1 OS: Solaris 2.6
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
12 + 22 = ?
Subscribe to this entry?

 
 [1998-07-10 12:09 UTC] tou at arlut dot utexas dot edu
When I try to compile PHP3 with Apache 1.3.0 I get symbol reference errors.  The problem might be because I used the binaries for MySQL, since I couldn't get MySQL to compile with Solaris 2.6.  Any help would be appreciated. 

Sheander


'cc' -c  -I./os/unix -I./include   -DSOLARIS2=260 -DUSE_HSREGEX -DSERVER_SUBVERSION=\"PHP/3.0.1\" `./
apaci` buildmark.c
'cc'  -DSOLARIS2=260 -DUSE_HSREGEX -DSERVER_SUBVERSION=\"PHP/3.0.1\" `./apaci`    \
      -o httpd buildmark.o modules.o modules/php3/libphp3.a modules/standard/libstandard.a main/libma
in.a ./os/unix/libos.a ap/libap.a regex/libregex.a  -lsocket -lnsl -Lmodules/php3 -L../modules/php3 -
lmodphp3 -lgdbm -lresolv -lm -ldl -lnsl -lsocket          -L/usr/local/mysql/mysql-3.21.33-sun-solari
s2.6-sparc/lib -lmysqlclient            
Undefined                       first referenced
 symbol                             in file
__umoddi3                           /usr/local/mysql/mysql-3.21.33-sun-solaris2.6-sparc/lib/libmysqlc
lient.a(int2str.o)
__divdi3                            /usr/local/mysql/mysql-3.21.33-sun-solaris2.6-sparc/lib/libmysqlc
lient.a(int2str.o)
__udivdi3                           /usr/local/mysql/mysql-3.21.33-sun-solaris2.6-sparc/lib/libmysqlc
lient.a(int2str.o)
__moddi3                            /usr/local/mysql/mysql-3.21.33-sun-solaris2.6-sparc/lib/libmysqlc
lient.a(int2str.o)
ld: fatal: Symbol referencing errors. No output written to httpd
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/phd/raid5-0/local/apache/apache_1.3.0/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/phd/raid5-0/local/apache/apache_1.3.0'
make: *** [build] Error 2

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-07-10 13:03 UTC] rasmus
This is caused by the fact that the MySQL client libraries are compiled with gcc and you are using Sun CC.  You can fix it by installing gcc on your machine.  It is not a PHP problem.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 08 14:01:34 2024 UTC