|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18284 Compiling with sybase-ct fails
Submitted: 2002-07-11 16:49 UTC Modified: 2002-07-12 19:40 UTC
From: chutney_man at hotmail dot com Assigned:
Status: Not a bug Package: Sybase-ct (ctlib) related
PHP Version: 4.2.1 OS: Mandrake 8.2
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:
Solve the problem:
39 + 37 = ?
Subscribe to this entry?

 [2002-07-11 16:49 UTC] chutney_man at hotmail dot com
[root@spider root]# ./configure --with-apxs=/usr/local/apache/bin/apxs --enable-force-cgi-redirect --enable-calendar --with-sybase=/opt/sybase --with-sybase-ct=/opt/sybase --with-mysql --with-pgsql

/root/php-4.2.1/ext/sybase_ct/.libs/ In function `zm_deactivate_sybase':
/root/php-4.2.1/ext/sybase_ct/php_sybase_ct.c:367: multiple definition of `zm_deactivate_sybase'
/root/php-4.2.1/ext/sybase/.libs/ first defined here
/root/php-4.2.1/ext/sybase_ct/.libs/ In function `zm_info_sybase':
/root/php-4.2.1/ext/sybase_ct/php_sybase_ct.c:1662: multiple definition of `zm_info_sybase'
/root/php-4.2.1/ext/sybase/.libs/ first defined here
/usr/bin/ld: Warning: size of symbol `zm_info_sybase' changed from 351 to 180 in php_sybase_ct.lo
collect2: ld returned 1 exit status
make[1]: *** [] Error 1
make[1]: Leaving directory `/root/php-4.2.1'
make: *** [all-recursive] Error 1

If i remove --with-sybase=/opt/sybase, it compiles ok but then apache cannot load the module...
says something about comn_*** not being recognized


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-11 16:54 UTC]
You should not try compile BOTH of them the same time..
Please try with fresh sources of PHP and don't put
that --with-sybase into the configure line.

And then if it fails to load, give us the whole error message. Tiny part of it is useless.

 [2002-07-11 18:36 UTC] chutney_man at hotmail dot com
here's the error from Apache...

Syntax error on line 205 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/ into server: /opt/sybase/lib/ undefined symbol: comn_free
/usr/local/apache/bin/apachectl start: httpd could not be started

and all that is on line 205 of httpd.conf is of course LoadModule php4_module libexec/
 [2002-07-11 21:59 UTC]
Do you have /opt/sybase/lib in your /etc/ file?
If not, add it, and run /sbin/ldconfig

 [2002-07-12 09:11 UTC] chutney_man at hotmail dot com
Just tried it.. same problem. Any other ideas?
 [2002-07-12 16:01 UTC] chutney_man at hotmail dot com
Ahh.. GOT IT!

need to make a link to called simply in /opt/sybase/lib/, then change the link in /usr/lib to point to /opt/sybase/lib/

then make & install...
 [2002-07-12 18:13 UTC]
Obviously this wasn't any bug in PHP..

 [2002-07-12 19:17 UTC] chutney_man at hotmail dot com
No reason not to document it
 [2002-07-12 19:40 UTC]
What you did is a very ugly hack. We won't document any hacks like that. Just try install the libraries correctly next time.

 [2002-07-13 13:52 UTC] chutney_man at hotmail dot com
Don't be a f?cking dickhead..
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Jan 27 00:03:35 2022 UTC