[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: building openjdk-7 on kfreebsd-amd64



On 21/03/12 11:59, Georgi Naplatanov wrote:
> gcc-4.6 -o /«PKGBUILDDIR»/build/openjdk.build-boot/bin/java -Xlinker -O1
> -Xlinker -version-script=../../../java/main/java/mapfile-amd64 -Xlinker
> -z -Xlinker defs -Wl,-Bsymbolic-functions
> -L/«PKGBUILDDIR»/build/openjdk.build-boot/lib/amd64 -Wl,-soname=lib.so
> -Wl,-z,relro -L /«PKGBUILDDIR»/build/openjdk.build-boot/lib/amd64/jli
> -Wl,--allow-shlib-undefined -Wl,-rpath -Wl,\$ORIGIN/../lib/amd64/jli
> -Wl,-rpath -Wl,\$ORIGIN/../jre/lib/amd64/jli
> «PKGBUILDDIR»/build/openjdk.build-boot/tmp/java/java/obj64/main.o
> -lpthread  -ljli -lz    -ldl -lc -Wl,-rpath -Wl,\$ORIGIN/../lib/amd64
> 
> but no luck, the error is the same when java starts:
> 
> Error: could not find libjava.so
> Error: Could not find Java SE Runtime Environment.

Hi Georgi,

Thanks for trying it.  Could you please show the output of 'file' and
'ldd' on the linked binary?

You also could try removing this part, which looks like a mistake, from
the compiler flags:

-Wl,-soname=lib.so

That and some other interesting stuff is mentioned at
http://old.nabble.com/patches-for-native-jdk6-on-amd64-td14009995.html

Thanks,
Regards,
-- 
Steven Chamberlain
steven@pyro.eu.org


Reply to: