Re: [PHP3] bug 3389 solution
| From: | Sascha Schumann | Date: | Fri, 17 Mar 2000 10:04:46 +0000 |
| Subject: | Re: [PHP3] bug 3389 solution | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-16926@lists.php.net to get a copy of this message | ||
On Fri, Mar 17, 2000 at 10:36:54AM +0100, Paolo Francese wrote:
> 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.
Thanks for pointing this out. It looks like it was fixed in Apache.
I'll close the bug report.
- Sascha