OpenJDK 7u and Fedora 17

Henri Gomez henri.gomez at gmail.com
Wed Aug 29 03:28:54 PDT 2012


there is no libstdc++-static-devel available on Fedora 17.

yum search libstdc++
===================================================================================
N/S Matched: libstdc++
====================================================================================
compat-libstdc++-296.i686 : Compatibility 2.96-RH standard C++ libraries
compat-libstdc++-33.i686 : Compatibility standard C++ libraries
compat-libstdc++-33.x86_64 : Compatibility standard C++ libraries
libstdc++.i686 : GNU Standard C++ Library
libstdc++.x86_64 : GNU Standard C++ Library
libstdc++-devel.i686 : Header files and libraries for C++ development
libstdc++-devel.x86_64 : Header files and libraries for C++ development
libstdc++-docs.x86_64 : Documentation for the GNU standard C++ library
libstdc++-static.i686 : Static libraries for the GNU standard C++ library
libstdc++-static.x86_64 : Static libraries for the GNU standard C++ library

I'll try with libstdc++-static

Stay tuned


2012/8/29 Anthony Petrov <anthony.petrov at oracle.com>:
> Make sure you have the static version of stdc++ installed. E.g. on my
> Mandriva I've got the following packages installed:
>
> $ rpm -qa | grep stdc
> libstdc++-static-devel-4.4.3-2mnb2
> libstdc++6-4.4.3-2mnb2
> libstdc++-devel-4.4.3-2mnb2
> libstdc++5-3.3.6-4mdv2009.0
>
> It is the "static-devel" package that is required by OpenJDK.
>
> --
> best regards,
> Anthony
>
>
> On 8/29/2012 2:02 PM, Henri Gomez wrote:
>>
>> 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