Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 40025 - mod_php-4.3.4-r2 can't find ./java.so
Summary: mod_php-4.3.4-r2 can't find ./java.so
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-31 18:04 UTC by A. Griesser
Modified: 2004-01-31 19:23 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description A. Griesser 2004-01-31 18:04:03 UTC
I compiled mod_php-4.3.4-r2 and php-4.3.4-r4 with -java in my USE flags but as soon as I start apache2, the php error log complains: 

"PHP Warning:  Unknown(): Unable to load dynamic library './java.so' - ./java.so: cannot open shared object file: No such file or directory in Unknown on line 0" 

Unlike many similar sounding bugs, the ebuild proceeds without warnings or errors. This problem is encountered when apache2 is started. Apache does not log an error, just php. This problem did not occur with previous versions.
 

Lack of "USE java" is confirmed by etcat:

root@marzipan log # etcat -u mod_php
[ Colour Code : set unset ]
[ Legend      : (U) Col 1 - Current USE flags        ]
[             : (I) Col 2 - Installed With USE flags ]

 U I [ Found these USE variables in : dev-php/mod_php-4.3.4-r2 ]
 + + apache2     : Chooses Apache2 support when a package supports both Apache1 and Apache2
 - - X           : Adds support for XFree86
 - - crypt       : Add support for encryption -- using mcrypt or gpg where applicable
 - - curl        : Adds support for client-side URL transfer library
 - - firebird    : Adds support for the Firebird relational database
 - - flash       : Adds support for creating flash files using Ming
 - - freetds     : Adds support for the TDS protocol to connect to MSSQL/Sybase databases
 - - gd          : Adds support for media-libs/libgd (to generate graphics on the fly)
 - - gd-external : Use the external version of libgd rather than the bundled one (possibly dangerous)
 - - gdbm        : Adds support for sys-libs/gdbm (GNU database libraries)
 + + imap        : Adds support for IMAP
 - - informix    : Adds support for Informix database
 + + ipv6        : Adds support for IP version 6
 - - java        : Adds support for Java
 - - jpeg        : Adds JPEG image support
 - - ldap        : Adds LDAP support (Lightweight Directory Access Protocol)
 - - mcal        : Adds support for MCAL calender system
 - - memlimit    : Adds memory usage limiting in supporting programs
 + + mysql       : Adds mySQL support
 - - nls         : unknown
 - - oci8        : Adds Oracle Support
 - - odbc        : Adds ODBC Support (Open DataBase Connectivity)
 + + pam         : Adds support PAM (Pluggable Authentication Modules)
 - - pdflib      : Adds support for PDF (Portable Document Format)
 - - png         : Adds support for libpng (PNG images)
 - - postgres    : Adds support for the postgresql database
 - - qt          : Adds support for the Qt library.
 - - snmp        : Adds support for the Simple Network Management Protocol if available
 - - spell       : Adds dictionary support
 + + ssl         : Adds support for Secure Socket Layer connections
 - - tiff        : Adds support for the tiff image format
 - - truetype    : Adds support for FreeType and/or FreeType2 fonts
 + + xml2        : Check/Support flag for XML library (version 2)
 - - yaz         : Adds in optional support for the Z39.50 Protocol for Information Retrieval (YAZ)
 - - berkdb      : Adds support for sys-libs/db (Berkeley DB for MySQL)


Reproducible: Always
Steps to Reproduce:
0. emerge -C mysql netpbm apache php mod_php
1. USE="-* x86  mysql apache2 pam tcpd mod_ssl mod_php pam ssl xml xml2 imap libwww maildir sasl ipv6"
2. env-update
3. emerge sync
4. emerge mysql netpbm apache php mod_php
5. etc-update
6. /etc/init.d/apache2 start (does not complain)


Actual Results:  
php error log says it can't find ./java.so, site not responding.

Expected Results:  
Php should not be looking for ./java.so, since it was compiled with -java.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-01-31 18:25:04 UTC
grep for java.so in your php.ini files
the only reason it would try to open java.so is if the php.ini file references it. you say you did etc-update, but it sounds like the java.so reference is still there.
Comment 2 A. Griesser 2004-01-31 19:23:36 UTC
You nailed it Robin: I did a lousy job of merging.