openJDK7 build fails on 64bit cblfs linux

luxInteg lux-integ at
Sat Apr 16 11:18:37 UTC 2011

On Friday 15 April 2011 17:55:43 Kelly O'Hair wrote:

> Let me know what these say:
>   which make
>   which ant
>   which zip
>   which unzip

I have made a bit of progress however the build now ends like so:-

Rebuilding $SRS/openjdk/build/linux-amd64/lib/amd64/ because of 
$SRS/openjdk/build/linux-amd64/tmp/sun/npt/obj64/.files_compiled mapfile-vers
/usr/bin/gcc  -O2   -fno-strict-aliasing -fPIC -W -Wall  -Wno-unused -Wno-
parentheses -pipe -fno-omit-frame-pointer -D_LITTLE_ENDIAN   -DNDEBUG -
DARCH='"amd64"' -Damd64 -DLINUX -DRELEASE='"1.7.0-internal"' -
I$SRS/openjdk/build/linux-amd64/tmp/sun/npt/CClassHeaders -
I../../../src/solaris/javavm/export -I../../../src/share/javavm/export -
I../../../src/share/npt -I../../../src/solaris/npt   -Xlinker -O1 -Xlinker -
version-script=mapfile-vers   -Xlinker -z -Xlinker origin  -Xlinker -rpath -
Xlinker \$ORIGIN  -Xlinker -z -Xlinker defs -L$SRS/openjdk/build/linux-
amd64/lib/amd64 -Wl,   -shared -mimpure-text -o 
$SRS/openjdk/build/linux-amd64/tmp/sun/npt/obj64/utf_md.o     -lc
$SRS/openjdk/build/linux-amd64/tmp/sun/npt/obj64/utf_md.o: In function 
utf_md.c:(.text+0xd3): undefined reference to `libiconv'
collect2: ld returned 1 exit status


In otherwords it is failing to find libiconv.  And I have  iconv

root [ ~ ]# ls -l /usr/lib/*iconv*
-rw-r--r-- 1 root root    938 Apr  9 03:09 /usr/lib/
lrwxrwxrwx 1 root root     17 Apr  9 03:09 /usr/lib/ ->
lrwxrwxrwx 1 root root     17 Apr  9 03:09 /usr/lib/ ->
-rw-r--r-- 1 root root 970461 Apr  9 03:09 /usr/lib/
-rw-r--r-- 1 root root 962959 Apr  9 03:09 /usr/lib/
root [ ~ ]# 

For a fix I I tried the following to no avail:-
--A) Looked through the README.builds.html 
 ( ) 
and found no obvoious settings for  forcing the build program to see 
--B) set the envronmental variable  LDFLAGS="-L/usr/lib"
--C) made a wild guess and set the environmental variable  LIBS="liconv"
--D) tried setting LD_LIBRARY_PATH=/usr/lib:${LD_LIBRARY_PATH}   which 
resulted in  complaints   that it should be unset

advice would be appreiated

More information about the build-dev mailing list