bug 3389 solution

From: Date: Fri, 17 Mar 2000 09:36:54 +0000
Subject: bug 3389 solution
Groups: php.dev 
Request: Send a blank email to php-dev+get-16924@lists.php.net to get a copy of this message
I think to have foud the solution for bug 3389: > ld -shared -expect_unresolved * -s -o libphp3.so ./mod_php3.o libmodphp3-so.a > > -L/usr/local/lib -L/usr/opt/depot/mysql-3.22.30//lib/mysql mysqlclient -ldb > pcrelib/libpcre.a -lm > -lresolv -Lpcrelib -lpcre -rpath /usr/opt/depot/mysql-3.22.30//lib/mysql > ld: Object file format error in: CHANGES: read_cur_obj_info: bad file magic number(0x6f4e) > > apxs:Break: Command failed with rc=65536 > *** Exit 1 > Stop. The bug is inside apxs, which is a perl script installed with apache in /apache-dir/bin/ In apxs script you have to substitute the line: my $CFG_LDFLAGS_SHLIB = '-shared -expect_unresolved * -s'; # substituted via Makefile.tmpl with: my $CFG_LDFLAGS_SHLIB = '-shared -expect_unresolved \'*\' -s'; # substituted via Makefile.tmpl In this way the argument passed to linker will be -expect_unresolved '*' and not -expect_unresolved * so the quoted * ('*') will not be expanded by the shell. bye B-) -- +--------------------------------+------------------------------------+ | Paolo Francese | | | Tel. +39-161-226357 | A bus station is where a bus stops.| | Fax +39-161-226322 | A train station is where a train | | E-mail: Francese@polito.it | stops. | +--------------------------------+ On my desk I have a workstation... | | Politecnico di Torino | | | II Facoltà di Ingegneria | | +--------------------------------+------------------------------------+

« previous php.dev (#16924) next »