Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Sep 2000 22:33:17 +0100
From:      <Janick.Taillandier@ratp.fr>
To:        freebsd-stable@freebsd.org, freebsd-hackers@freebsd.org
Subject:   Trouble with dynamic loading of C++ libs in PHP v4.02 on FreeBSD  4.1
Message-ID:  <4F88710E19D4D311B36A00508B08FD0F2C84DA@nyplme11.neuilly.ratp>

next in thread | raw e-mail | index | archive | help
We are trying to create a dynamic library of extensions to PHP 4.02.
This library implements a C++ class and has a C interface using the "Extern C"
declaration.
This library is linked with libstdc++.so.3 .

If the library is called in a C program => no trouble.
If the library is called from PHP with the "dlopen()" function =>
[Warning: Unable to load dynamic library
'/users/em/ftp/php/test_cpp/debug/libphptest.so' - /usr/lib/libstdc++.so.3:
Undefined symbol "__ti9exception" in
/usr/local/httpd/htdocs/www/Iti_q/testso.php on line 2

Fatal error: Call to undefined function: php_get_session_id() in
/usr/local/httpd/htdocs/www/Iti_q/testso.php on line 3]

This problem appears on FreeBSD 4.1 and a PRE_SMPNG -current(FBSD 3.4 is ok).

Does this sounds like a known problem ? Do you have any idea of what can be
wrong ?

Thanks in advance.

Janick Taillandier


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F88710E19D4D311B36A00508B08FD0F2C84DA>