[Bug 2825] New: [IcedTea8] Placement of -lfreebl matters when using bfd linker

bugzilla-daemon at icedtea.classpath.org bugzilla-daemon at icedtea.classpath.org
Fri Jan 29 23:23:50 UTC 2016


http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2825

            Bug ID: 2825
           Summary: [IcedTea8] Placement of -lfreebl matters when using
                    bfd linker
           Product: IcedTea
           Version: 8-hg
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: IcedTea
          Assignee: gnu.andrew at redhat.com
          Reporter: gnu.andrew at redhat.com
                CC: unassigned at icedtea.classpath.org

/usr/bin/g++ -Wl,--as-needed -Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common
-Xlinker -z -Xlinker defs -Xlinker -O1 -shared
-L/mnt/builder/portage.build/portage/dev-java/icedtea-3.0.0_pre08/work/icedtea-3.0.0/openjdk.build-boot/jdk/lib/amd64
-L/mnt/builder/portage.build/portage/dev-java/icedtea-3.0.0_pre08/work/icedtea-3.0.0/openjdk.build-boot/jdk/lib/amd64/server
  -Xlinker
-version-script=/mnt/builder/portage.build/portage/dev-java/icedtea-3.0.0_pre08/work/icedtea-3.0.0/openjdk-boot/jdk/make/mapfiles/libsunec/mapfile-vers
-Xlinker -soname=libsunec.so -o
/mnt/builder/portage.build/portage/dev-java/icedtea-3.0.0_pre08/work/icedtea-3.0.0/openjdk.build-boot/jdk/lib/amd64/libsunec.so
/mnt/builder/portage.build/portage/dev-java/icedtea-3.0.0_pre08/work/icedtea-3.0.0/openjdk.build-boot/jdk/objs/libsunec/ECC_JNI.o
 -lstdc++  -lc -lfreebl `pkg-config --libs nss`

* succeeds *

/usr/bin/g++ -Wl,--as-needed -Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common
-Xlinker -z -Xlinker defs -Xlinker -O1 -shared
-L/mnt/builder/portage.build/portage/dev-java/icedtea-3.0.0_pre08/work/icedtea-3.0.0/openjdk.build-boot/jdk/lib/amd64
-L/mnt/builder/portage.build/portage/dev-java/icedtea-3.0.0_pre08/work/icedtea-3.0.0/openjdk.build-boot/jdk/lib/amd64/server
  -Xlinker
-version-script=/mnt/builder/portage.build/portage/dev-java/icedtea-3.0.0_pre08/work/icedtea-3.0.0/openjdk-boot/jdk/make/mapfiles/libsunec/mapfile-vers
-Xlinker -soname=libsunec.so -o
/mnt/builder/portage.build/portage/dev-java/icedtea-3.0.0_pre08/work/icedtea-3.0.0/openjdk.build-boot/jdk/lib/amd64/libsunec.so
/mnt/builder/portage.build/portage/dev-java/icedtea-3.0.0_pre08/work/icedtea-3.0.0/openjdk.build-boot/jdk/objs/libsunec/ECC_JNI.o
 -lstdc++  -lc `pkg-config --libs nss` -lfreebl
/usr/lib/gcc/x86_64-pc-linux-gnu/5.1.0/../../../../lib64/libfreebl.a(loader.o):
In function `loader_LoadLibInReferenceDir':
/mnt/builder/portage.build/portage/dev-libs/nss-3.21-r1/work/nss-3.21/nss-abi_x86_64.amd64/lib/freebl/genload.c:91:
undefined reference to `PR_GetDirectorySeparator'
/mnt/builder/portage.build/portage/dev-libs/nss-3.21-r1/work/nss-3.21/nss-abi_x86_64.amd64/lib/freebl/genload.c:104:
undefined reference to `PR_LoadLibraryWithFlags'
etc.

/usr/bin/g++ -Wl,--as-needed -Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common
-Xlinker -z -Xlinker defs -Xlinker -O1 -shared
-L/mnt/builder/portage.build/portage/dev-java/icedtea-3.0.0_pre08/work/icedtea-3.0.0/openjdk.build-boot/jdk/lib/amd64
-L/mnt/builder/portage.build/portage/dev-java/icedtea-3.0.0_pre08/work/icedtea-3.0.0/openjdk.build-boot/jdk/lib/amd64/server
  -Xlinker
-version-script=/mnt/builder/portage.build/portage/dev-java/icedtea-3.0.0_pre08/work/icedtea-3.0.0/openjdk-boot/jdk/make/mapfiles/libsunec/mapfile-vers
-Xlinker -soname=libsunec.so -o
/mnt/builder/portage.build/portage/dev-java/icedtea-3.0.0_pre08/work/icedtea-3.0.0/openjdk.build-boot/jdk/lib/amd64/libsunec.so
/mnt/builder/portage.build/portage/dev-java/icedtea-3.0.0_pre08/work/icedtea-3.0.0/openjdk.build-boot/jdk/objs/libsunec/ECC_JNI.o
-fuse-ld=gold -lstdc++  -lc `pkg-config --libs nss` -lfreebl

* succeeds *

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20160129/ffe4f70d/attachment.html>


More information about the distro-pkg-dev mailing list