u011653577
Ners-曲
采纳率100%
2016-06-05 08:01 阅读 4.2k
已采纳

编译openjdk总是出现这个问题, 怎么解决呢

                                    \
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...
/usr/bin/objcopy --only-keep-debug libjvm.so libjvm.debuginfo
/usr/bin/objcopy --add-gnu-debuglink=libjvm.debuginfo libjvm.so
strip -g libjvm.so
[ -f libjvm.debuginfo ] || ln -s libjvm.debuginfo libjvm.debuginfo
zip -q -y libjvm.diz libjvm.debuginfo libjvm.debuginfo
rm -f libjvm.debuginfo libjvm.debuginfo
[ -f libjvm.diz ] || { ln -s libjvm.diz libjvm.diz; }
echo Linking launcher...
Linking launcher...
gcc -m64 -Xlinker -O1 -Wl,--hash-style=both -Xlinker -z -Xlinker noexecstack -m64 -Xlinker -export-dynamic -L pwd -o gamma launcher/java_md.o launcher/java.o launcher/jli_util.o launcher/wildcard.o -ljvm -lm -ldl -lpthread
make[6]: Leaving directory '/home/qu/openjdk/builddir/hotspot/outputdir/linux_amd64_compiler2/product'
All done.
make[5]: Leaving directory '/home/qu/openjdk/builddir/hotspot/outputdir/linux_amd64_compiler2/product'
cd linux_amd64_compiler2/product && ./test_gamma
Using java runtime at: /usr/lib/jvm/jdk1.7.0_79/jre
./gamma: relocation error: /usr/lib/jvm/jdk1.7.0_79/jre/lib/amd64/libjava.so: symbol JVM_FindClassFromCaller, version SUNWprivate_1.1 not defined in file libjvm.so with link time reference
/home/qu/openjdk/hotspot/make/linux/Makefile:290: recipe for target 'product' failed
make[4]: *** [product] Error 127
make[4]: Leaving directory '/home/qu/openjdk/builddir/hotspot/outputdir'
Makefile:191: recipe for target 'generic_build2' failed
make[3]: *** [generic_build2] Error 2
make[3]: Leaving directory '/home/qu/openjdk/hotspot/make'
Makefile:151: recipe for target 'product' failed
make[2]: *** [product] Error 2
make[2]: Leaving directory '/home/qu/openjdk/hotspot/make'
make/hotspot-rules.gmk:111: recipe for target 'hotspot-build' failed
make[1]: *** [hotspot-build] Error 2
make[1]: Leaving directory '/home/qu/openjdk'
Makefile:251: recipe for target 'build_product_image' failed
make: *** [build_product_image] Error 2

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

1条回答 默认 最新

  • 已采纳
    cuiruiqiang cuirqiang 2016-06-05 08:23

    relocation error: /usr/lib/jvm/jdk1.7.0_79/jre/lib/amd64/libjava.so: symbol JVM_FindClassFromCaller, version SUNWprivate_1.1 not defined in file libjvm.so with link time reference

    点赞 1 评论 复制链接分享

相关推荐