Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 2009 - java-config or blackdown-jdk don't configure ld.so.conf correctly
Summary: java-config or blackdown-jdk don't configure ld.so.conf correctly
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Karl Trygve Kalleberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-22 17:59 UTC by Xavier
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

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


Attachments
Config.log of PHP build showing lhpi problems (configlog.tar.bz,13.96 KB, application/octet-stream)
2002-04-30 18:12 UTC, Xavier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Xavier 2002-04-22 17:59:19 UTC
I'm missing the libhpi.so resolution emerging php with imap ssl and java use 
settings.
The configure program breaks at pam because they can find libhpi.so

I'm trying to figure where it's the fault, but i'm too newbee to Gentoo.

Any help will be appreciate !
Comment 1 Xavier 2002-04-22 18:02:49 UTC
needed to correct
"The configure program breaks at pam because they CAN'T find libhpi.so"
Comment 2 Ryan Phillips (RETIRED) gentoo-dev 2002-04-22 21:06:07 UTC
This is interesting...  It appears libhpi.so is a java library.

Xavier: Are the java paths in the environment?  running 'java' from console
spits out commandline options?
Comment 3 Xavier 2002-04-24 07:42:45 UTC
If I run the java-config --set-user-vm=blackdown-jdk-1.3.1 I can see the Java 
paths in env and the java program works correctly but after that if I emerge 
php with the java in use settings apache reduse to start.
Comment 4 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2002-04-24 13:57:20 UTC
This is actually a bug with the PHP config script. libhpi comes in two variants:
native threads and green threads. The PHP script doesn't seem to make up its
mind which to select.

With the latest blackdown-jdk (-r5), native threads are always selected.
Comment 5 Xavier 2002-04-25 12:12:30 UTC
Emerging the new blackdown-jdk (-5) don't resolve the problem.
Same pam_start symbol missing at apache start.
I attach the configure.log from php emerge to show the -lhpi not found 
problems.
I manually run java-config, env-update and ldconfig prior to emerge php but no 
luck....
I can see the libhpi.so entry in ld.so.cache but seems that the build process 
don't take this in consideration when searching for libraries
(I try to attach the config.log from php emerge but bugzilla refuses to 
download 'No file was provided, or it was empty')
Comment 6 Xavier 2002-04-30 18:12:00 UTC
Created attachment 738 [details]
Config.log of PHP build showing lhpi problems
Comment 7 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2002-05-03 14:55:16 UTC
I cannot reproduce your problem here. What does ldconfig -p | grep libhpi give
you ? What if you do ldd on the resulting library, do its (libhpi's)
dependencies resolve nicely  ? 
Comment 8 Xavier 2002-05-04 16:37:29 UTC
This is my output for your requests...

ldconfig -p | grep libhpi
        libhpi.so (libc6) => /opt/blackdown-jdk-
.3.1/jre/lib/i386/native_threads/libhpi.so

ldd /opt/blackdown-jdk-1.3.1/jre/lib/i386/native_threads/libhpi.so
        libnsl.so.1 => /lib/libnsl.so.1 (0x40012000)
        libm.so.6 => /lib/libm.so.6 (0x40028000)
        libdl.so.2 => /lib/libdl.so.2 (0x4004a000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x4004d000)
        libc.so.6 => /lib/libc.so.6 (0x40062000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

I'm emerging php with this options (outparrel root # emerge php
>>> emerge dev-lang/php-4.1.2-r8 to /
>>> md5 ;-) php-4.1.2.tar.gz
>>> Unpacking source...
>>> Unpacking php-4.1.2.tar.gz
>>> Source unpacked.
pam
nls
gdbm
berkdb
postgres
Compiling imap with SSL support
libwww
xml2
crypt
java
creating cache ./config.cacheut from emerge)...........

but I can see this while in configure...

   checking for pam_start in -lpam... (cached) no

after emerge apache and php don't start up... missing pam_start symbol complain

My USE settings:

USE="-3dnow -arts -avi -esd -gif -gnome -gpm -gtk imap java -kde
     -motif -mpeg -mysql -opengl -pdflib postgres -qt -qtmt samba snmp
     -tcltk -X xml"
Comment 9 Xavier 2002-05-13 17:35:18 UTC
Resolved with the new php-4.2.0 ebuild, compiles without problems (and seems 
to works correctly)