Re: PHP 4.0 Bug #3983: Sybase-ct apache compilation failure
| From: | Martin Krupicka | Date: | Thu, 30 Mar 2000 18:36:22 +0000 |
| Subject: | Re: PHP 4.0 Bug #3983: Sybase-ct apache compilation failure | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-12896@lists.php.net to get a copy of this message | ||
On Thu, 30 Mar 2000, Joey wrote:
> This must be something specific to 11.0 series...I check both 11.5.1 and
> 11.9.2 and this symbol does not exist in any of the libs. Are you using
> Sybase's distibuted libs, or are you using FreeTDS or some such?
>
I use genuine sybase distribution for RedHat.
It's possible, that isi error is specific to 11.0
Well, during ./configure phase of apache a get this error:
-------8<------------------------------------------------------
cd ..; gcc -DLINUX=2 -I/root/php-4.0RC1 -I/root/php-4.0RC1/Zend
-I/root/php-4.0RC1/Zend -I/root/php-4.0RC1 -DUSE_EXPAT -I./lib/expat-lite
-DNO_DL_NEEDED
./apaci -o helpers/dummy helpers/dummy.c
-Wl,-rpath,/opt/sybase/lib -rdynamic -L/opt/sybase/lib -Lmodules/php4
-L../modules/php4 -L../../modules/php4 -lmodphp4 -lgdbm -ldl
-lsybtcl -lintl -lcomn -lct -lcs -ldl -lresolv -lm -lcrypt
-lnsl -lresolv -lm -lcrypt
/opt/sybase/lib/libsybtcl.so: undefined reference to `bsd_tcp'
collect2: ld returned 1 exit status
make: *** [dummy] Error 1
-------8<------------------------------------------------------
The missing bsd_tcp symbol can be found in the /opt/sybase/libs/libinsck.a
Adding this to libphp4.module helps. I haven't yet tested, that it works
100%, but apache serves requests and doesn't segfault. I don't know,
whether newer sybases have this function in main library.
Thanks
Martin
> Could you find in which of sybase's libs is the /undefined/ reference?
>
> --Joey Smith
>
> Please forgive the long sig:
>
> *** Notice To Bulk Emailers: Attention! Pursuant to US Code, Title 47,
> Chapter 5, Subchapter II, 227, any & all unsolicited commercial e-mail
> sent to this address is subject to a download and archival fee in the
> amount of the $1500 US and copies will be forwarded to domain
> administrators. Emailing denotes acceptance of said terms!
>
> On 30 Mar 2000 martin@pinknet.cz wrote:
>
> > From: martin@pinknet.cz
> > Operating system: Slackware Linux 7.0
> > PHP version: 4.0 Release Candidate 1
> > PHP Bug Type: Compile Failure
> > Bug description: Sybase-ct apache compilation failure
> >
> > While compilig Apache 1.3.12 with php with sybase-ct support,
> > it fails on some bsd_tcp (suppose to be some sybase function). Adding
> > -linsck to libs helps. Sybase ASE-11.0.3.
> >
> >
> >
> > --
> > PHP Development Mailing List <http://www.php.net/>
> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-dev-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
> >
>