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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: tou at arlut dot utexas dot edu
New email:
PHP Version: OS:

 

 [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: Sat Apr 27 06:01:30 2024 UTC