php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5394 Linking problem with libphp4.a and libmodphp4.a
Submitted: 2000-07-06 09:56 UTC Modified: 2000-12-07 11:22 UTC
From: bnies at hsr dot ch Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.1pl2 OS: HP-UX pollux B.11.00 U 9000/800
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bnies at hsr dot ch
New email:
PHP Version: OS:

 

 [2000-07-06 09:56 UTC] bnies at hsr dot ch
Hi,

When compiling Apache + PHP4 on HP-UX with the nativ
ANSI-C compiler and the commands:

cd apache_1.3.12
./configure --prefix=/opt/apache

cd ../php-4.0.1pl2
./configure \
> --prefix=/opt/apache \
> --with-apache=../apache_1.3.12 \
> --enable-memory-limit=yes \
> --enable-debug=no \ 
> --with-config-file-path=/opt/apache \
> --with-mysql=/opt/mysql
make
make install

cd ../apache_1.3.12
./configure \
> --prefix=/opt/apache \
> --activate-module=src/modules/php4/libphp4.a \
> --enable-module=php4
make

I get lots of error messages like this example:

/usr/ccs/bin/ld: Duplicate symbol "function_name" in modules/php4/libphp4.a(mod_php4.o) and
modules/php4/libmodphp4.a(mod_php4.o)

which might be a result because libphp4.a and libmodphp4.a
are both used for linking. 

Thanks in advance for your help.

Regards,
Bernd Nies

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-27 22:03 UTC] waldschrott@php.net
Please verify that it?s still happening using the latest version from CVS or snaps.php.net.
 [2000-07-28 10:52 UTC] waldschrott@php.net
user feedback below:

I checked it and it is still happening with the snapshot 
php4-200007272245. See the output from make:



[root@pollux /opt/apache/src/apache_1.3.12]# make
===> src
make[1]: Entering directory `/opt/apache/src/apache_1.3.12'
make[2]: Entering directory `/opt/apache/src/apache_1.3.12/src'
===> src/os/unix
make[3]: Nothing to be done for `all'.
<=== src/os/unix
===> src/ap
make[3]: Nothing to be done for `all'.
<=== src/ap
===> src/main
make[3]: Nothing to be done for `all'.
<=== src/main
===> src/lib
===> src/lib/expat-lite
make[4]: Nothing to be done for `all'.
<=== src/lib/expat-lite
<=== src/lib
===> src/modules
===> src/modules/standard
make[4]: Nothing to be done for `all'.
<=== src/modules/standard
===> src/modules/php4
make[4]: Nothing to be done for `all'.
<=== src/modules/php4
<=== src/modules
cc -Ae -O -c  -I./os/unix -I./include   -DHPUX11 -I/opt/apache/src/php4-200007272245 -I/opt/apache/src/php4-200007272245/main -I/opt/apache/src/php4-200007272245/main -I/opt/apache/src/php4-200007272245/Zend -I/opt/apache/src/php4-200007272245/Zend -I/opt/apache/src/php4-200007272245 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED `./apaci` modules.c
cc -Ae -O -c  -I./os/unix -I./include   -DHPUX11 -I/opt/apache/src/php4-200007272245 -I/opt/apache/src/php4-200007272245/main -I/opt/apache/src/php4-200007272245/main -I/opt/apache/src/php4-200007272245/Zend -I/opt/apache/src/php4-200007272245/Zend -I/opt/apache/src/php4-200007272245 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED `./apaci` buildmark.c
cc -Ae -O  -DHPUX11 -I/opt/apache/src/php4-200007272245 -I/opt/apache/src/php4-200007272245/main -I/opt/apache/src/php4-200007272245/main -I/opt/apache/src/php4-200007272245/Zend -I/opt/apache/src/php4-200007272245/Zend -I/opt/apache/src/php4-200007272245 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED `./apaci`    \
      -o httpd buildmark.o modules.o modules/php4/libphp4.a modules/standard/libstandard.a main/libmain.a ./os/unix/libos.a ap/libap.a  lib/expat-lite/libexpat.a  -L/opt/mysql/lib/mysql  -L/opt/mysql/lib/mysql -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4  -lpam  -lmysqlclient -lm -lcrypt -lnsl   -lm -lpthread
/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (buildmark.o) was detected. The linked output may not run on a PA 1.x system.
/usr/ccs/bin/ld: Duplicate symbol "php_save_umask" in files modules/php4/libphp4.a(mod_php4.o) and modules/php4/libmodphp4.a(mod_php4.o)
/usr/ccs/bin/ld: Duplicate symbol "sapi_apache_read_post" in files modules/php4/libphp4.a(mod_php4.o) and modules/php4/libmodphp4.a(mod_php4.o)
/usr/ccs/bin/ld: Duplicate symbol "sapi_apache_read_cookies" in files modules/php4/libphp4.a(mod_php4.o) and modules/php4/libmodphp4.a(mod_php4.o)
/usr/ccs/bin/ld: Duplicate symbol "sapi_apache_header_handler" in files modules/php4/libphp4.a(mod_php4.o) and modules/php4/libmodphp4.a(mod_php4.o)
/usr/ccs/bin/ld: Duplicate symbol "sapi_apache_send_headers" in files modules/php4/libphp4.a(mod_php4.o) and modules/php4/libmodphp4.a(mod_php4.o)
/usr/ccs/bin/ld: Duplicate symbol "php_restore_umask" in files modules/php4/libphp4.a(mod_php4.o) and modules/php4/libmodphp4.a(mod_php4.o)
/usr/ccs/bin/ld: Duplicate symbol "send_php" in files modules/php4/libphp4.a(mod_php4.o) and modules/php4/libmodphp4.a(mod_php4.o)
/usr/ccs/bin/ld: Duplicate symbol "send_parsed_php" in files modules/php4/libphp4.a(mod_php4.o) and modules/php4/libmodphp4.a(mod_php4.o)
/usr/ccs/bin/ld: Duplicate symbol "send_parsed_php_source" in files modules/php4/libphp4.a(mod_php4.o) and modules/php4/libmodphp4.a(mod_php4.o)
/usr/ccs/bin/ld: Duplicate symbol "php_apache_value_handler_ex" in files modules/php4/libphp4.a(mod_php4.o) and modules/php4/libmodphp4.a(mod_php4.o)
/usr/ccs/bin/ld: Duplicate symbol "php_apache_value_handler" in files modules/php4/libphp4.a(mod_php4.o) and modules/php4/libmodphp4.a(mod_php4.o)
/usr/ccs/bin/ld: Duplicate symbol "php_apache_admin_value_handler" in files modules/php4/libphp4.a(mod_php4.o) and modules/php4/libmodphp4.a(mod_php4.o)
/usr/ccs/bin/ld: Duplicate symbol "php_apache_flag_handler_ex" in files modules/php4/libphp4.a(mod_php4.o) and modules/php4/libmodphp4.a(mod_php4.o)
/usr/ccs/bin/ld: Duplicate symbol "php_apache_flag_handler" in files modules/php4/libphp4.a(mod_php4.o) and modules/php4/libmodphp4.a(mod_php4.o)
/usr/ccs/bin/ld: Duplicate symbol "php_apache_admin_flag_handler" in files modules/php4/libphp4.a(mod_php4.o) and modules/php4/libmodphp4.a(mod_php4.o)
/usr/ccs/bin/ld: Duplicate symbol "php_xbithack_handler" in files modules/php4/libphp4.a(mod_php4.o) and modules/php4/libmodphp4.a(mod_php4.o)
/usr/ccs/bin/ld: Duplicate symbol "php_init_handler" in files modules/php4/libphp4.a(mod_php4.o) and modules/php4/libmodphp4.a(mod_php4.o)
/usr/ccs/bin/ld: Duplicate symbol "php_handlers" in files modules/php4/libphp4.a(mod_php4.o) and modules/php4/libmodphp4.a(mod_php4.o)
/usr/ccs/bin/ld: Duplicate symbol "php_commands" in files modules/php4/libphp4.a(mod_php4.o) and modules/php4/libmodphp4.a(mod_php4.o)
/usr/ccs/bin/ld: Found 19 duplicate symbol(s)
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/opt/apache/src/apache_1.3.12/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/opt/apache/src/apache_1.3.12'
make: *** [build] Error 2


Good luck! Thanks in advance. PHP is great.

 [2000-07-28 10:53 UTC] waldschrott@php.net
bug #5826 possibly related (libphp4?)
 [2000-11-28 18:03 UTC] sniper@php.net
Is this still unsolved? Have you tried configuring apache (the 2nd configure)
with leaving out --enable-module=php4 ?

--Jani
 [2000-12-07 11:22 UTC] sniper@php.net
Reopen, if this still happens when using latest snapshot
from http://snaps.php.net/

--Jani
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 16:01:31 2024 UTC