OpenJDK 7u and Fedora 17
Henri Gomez
henri.gomez at gmail.com
Wed Aug 29 03:02:20 PDT 2012
Hi to all,
I built OpenJDK 7 on various Linux distros (CentOS 5/6, openSUSE 12.1)
but I'm stuck with Fedora 17 (64bits and up to date):
---
symbolTable.o synchronizer.o systemDictionary.o task.o taskqueue.o
templateInterpreter.o templateInterpreter_x86_64.o templateTable.o
templateTable_x86_64.o tenuredGeneration.o thread.o
threadCritical_linux.o threadLS_linux_x86.o threadLocalAllocBuffer.o
threadLocalStorage.o threadService.o thread_linux_x86.o timer.o type.o
typeArrayKlass.o typeArrayKlassKlass.o typeArrayOop.o unhandledOops.o
universe.o unsafe.o utf8.o vectornode.o vectset.o verificationType.o
verifier.o vframe.o vframeArray.o vframe_hp.o virtualspace.o
vmCMSOperations.o vmError.o vmError_linux.o vmGCOperations.o
vmPSOperations.o vmStructs.o vmSymbols.o vmThread.o vm_operations.o
vm_operations_g1.o vm_version.o vm_version_linux_x86.o
vm_version_x86.o vmreg.o vmreg_x86.o vtableStubs.o
vtableStubs_x86_64.o workgroup.o xmlstream.o yieldingWorkgroup.o
-Wl,-Bstatic -lstdc++ -Wl,-Bdynamic -lm -ldl -lpthread; \
\
rm -f libjvm.so.1; ln -s libjvm.so libjvm.so.1;
\
[ -f libjvm.so ] || { ln -s libjvm.so libjvm.so; ln -s libjvm.so.1
libjvm.so.1; }; \
if [ \"\" = \"\" ] ; then \
if [ -x /usr/sbin/selinuxenabled ] ; then \
/usr/sbin/selinuxenabled; \
if [ $? = 0 ] ; then \
/usr/bin/chcon -t textrel_shlib_t libjvm.so; \
if [ $? != 0 ]; then \
echo "ERROR: Cannot chcon libjvm.so"; \
fi \
fi \
fi \
fi \
}
Linking vm...
/bin/ld: cannot find -lstdc++
collect2: error: ld returned 1 exit status
ln: accessing `libjvm.so.1': Too many levels of symbolic links
/usr/bin/chcon: failed to get security context of `libjvm.so': Too
many levels of symbolic links
ERROR: Cannot chcon libjvm.so
/usr/bin/objcopy --only-keep-debug libjvm.so libjvm.debuginfo
/usr/bin/objcopy: Warning: could not locate 'libjvm.so'. reason: Too
many levels of symbolic links
Of course stdc++ is installed :
libstdc++-4.7.0-5.fc17.x86_64
libstdc++-devel-4.7.0-5.fc17.x86_64
and gcc/g++
gcc-4.7.0-5.fc17.x86_64
libgcc-4.7.0-5.fc17.x86_64
gcc-c++-4.7.0-5.fc17.x86_64
Any ideas why such error ?
Thanks
More information about the jdk7u-dev
mailing list