Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Nov 2015 02:03:05 -0800
From:      Mark Millard <markmi@dsl-only.net>
To:        FreeBSD PowerPC ML <freebsd-ppc@freebsd.org>, FreeBSD Toolchain <freebsd-toolchain@freebsd.org>
Subject:   head/kerberos5/lib/libkrb5/ and libhdb/ not looking in /usr/obj/usr/src/tmp/usr/lib/ for linking
Message-ID:  <106D9CB0-D9AE-4463-A03E-3AB16583CDA7@dsl-only.net>
In-Reply-To: <6AA244B9-DE60-4D8B-A08E-AADD73F9D856@dsl-only.net>
References:  <01BA3FF2-F362-48FA-B9E2-112E05CC00ED@dsl-only.net> <6AA244B9-DE60-4D8B-A08E-AADD73F9D856@dsl-only.net>

next in thread | previous in thread | raw e-mail | index | archive | help
The following additions of "-L/usr/obj/usr/src/tmp/usr/lib" just =
illustrate the kind of path that is missing for libkrb5 and libhdb: =
these additions were sufficient for my context to link. I do not think =
such hard wired path are appropriate outside such an experiment.


Index: /usr/src/kerberos5/lib/libhdb/Makefile
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- /usr/src/kerberos5/lib/libhdb/Makefile      (revision 291443)
+++ /usr/src/kerberos5/lib/libhdb/Makefile      (working copy)
@@ -1,7 +1,7 @@
 # $FreeBSD$
=20
 LIB=3D   hdb
-LDFLAGS=3D       -Wl,--no-undefined ${LDAPLDFLAGS}
+LDFLAGS=3D       -Wl,--no-undefined ${LDAPLDFLAGS} =
-L/usr/obj/usr/src/tmp/usr/lib
 VERSION_MAP=3D   ${KRB5DIR}/lib/hdb/version-script.map
 LIBADD=3D        asn1 com_err krb5 roken sqlite3
 LDADD=3D ${LDAPLDADD}
Index: /usr/src/kerberos5/lib/libkrb5/Makefile
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- /usr/src/kerberos5/lib/libkrb5/Makefile     (revision 291443)
+++ /usr/src/kerberos5/lib/libkrb5/Makefile     (working copy)
@@ -1,7 +1,7 @@
 # $FreeBSD$
=20
 LIB=3D   krb5
-LDFLAGS=3D       -Wl,--no-undefined
+LDFLAGS=3D       -Wl,--no-undefined -L/usr/obj/usr/src/tmp/usr/lib
 VERSION_MAP=3D ${KRB5DIR}/lib/krb5/version-script.map
 LIBADD=3D        asn1 com_err crypt crypto hx509 roken wind heimbase =
heimipcc
=20


Without those -L/usr/obj/usr/src/tmp/usr/lib additions the results were =
that the following were not found:

-lprivateheimipcc
and
-lprivatesqlite3

See below:

--- libkrb5.so.11.full ---
building shared library libkrb5.so.11
/usr/local/bin/powerpc64-portbld-freebsd11.0-gcc -Wl,--no-undefined =
-Wl,--version-script=3D/usr/src/kerberos5/lib/libkrb5/../../../crypto/heim=
dal/lib/krb5/version-
script.map -fstack-protector-strong -shared -Wl,-x -Wl,--fatal-warnings =
-Wl,--warn-shared-textrel  -o libkrb5.so.11.full =
-Wl,-soname,libkrb5.so.11  . . .  -lasn1  -lcom_err  -lcrypt  -lcrypto  =
-lhx509  -lroken  -lwind  -lheimbase -lprivateheimipcc
/usr/local/bin/powerpc64-freebsd-ld: cannot find -lprivateheimipcc
collect2: error: ld returned 1 exit status
*** [libkrb5.so.11.full] Error code 1

and

--- kerberos5/lib/libhdb__L ---
/usr/local/bin/powerpc64-portbld-freebsd11.0-gcc -Wl,--no-undefined  =
-Wl,--version-script=3D/usr/src/kerberos5/lib/libhdb/../../../crypto/heimd=
al/lib/hdb/version-s
cript.map -fstack-protector-strong -shared -Wl,-x -Wl,--fatal-warnings =
-Wl,--warn-shared-textrel  -o libhdb.so.11.full -Wl,-soname,libhdb.so.11 =
 . . .   -lasn1  -lcom_err  -lkrb5   -lroken -lprivatesqlite3  -lpthread
. . .
--- kerberos5/lib/libhdb__L ---
--- libhdb.so.11.full ---
/usr/local/bin/powerpc64-freebsd-ld: cannot find -lprivatesqlite3
collect2: error: ld returned 1 exit status
*** [libhdb.so.11.full] Error code 1

With the 2 -L/usr/obj/usr/src/tmp/usr/lib additions the build gets well =
past head/kerberos5 .



Context details if you care:

> # freebsd-version -ku; uname -aKU
> 11.0-CURRENT
> 11.0-CURRENT
> FreeBSD FBSDG5C0 11.0-CURRENT FreeBSD 11.0-CURRENT #12 r281630M: Sat =
Apr 18 01:15:13 PDT 2015     =
root@FBSDG5C0:/usr/obj/usr/src/sys/GENERIC64vtsc-NODEBUG  powerpc =
1100070 1100070

I am attempting an update after having been away from the PowerMacs for =
months.

> # svnlite info /usr/src
> Path: /usr/src
> Working Copy Root Path: /usr/src
> URL: https://svn0.us-west.freebsd.org/base/head
> Relative URL: ^/head
> Repository Root: https://svn0.us-west.freebsd.org/base
> Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
> Revision: 291443
> Node Kind: directory
> Schedule: normal
> Last Changed Author: nwhitehorn
> Last Changed Rev: 291442
> Last Changed Date: 2015-11-28 23:16:08 -0800 (Sat, 28 Nov 2015)

> make -j 8 WITH_FAST_DEPEND=3D CROSS_TOOLCHAIN=3Dpowerpc64-gcc \
> WITH_LIBCPLUSPLUS=3D \
> WITHOUT_CLANG_BOOTSTRAP=3D WITH_CLANG=3D WITH_CLANG_IS_CC=3D \
> WITH_LLDB=3D \
> WITHOUT_GCC_BOOTSTRAP=3D WITHOUT_GCC=3D WITHOUT_GNUCXX=3D \
> WITHOUT_BOOT=3D \
> WITHOUT_LIB32=3D \
> buildworld buildkernel \
> KERNCONF=3DGENERIC64vtsc-NODEBUG \
> TARGET=3Dpowerpc TARGET_ARCH=3Dpowerpc64

powerpc64-gcc had been updated to be modern first: it is from . . .

> # svnlite info /usr/ports
> Path: /usr/ports
> Working Copy Root Path: /usr/ports
> URL: https://svn0.us-west.freebsd.org/ports/head
> Relative URL: ^/head
> Repository Root: https://svn0.us-west.freebsd.org/ports
> Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5
> Revision: 402562
> Node Kind: directory
> Schedule: normal
> Last Changed Author: rene
> Last Changed Rev: 402562
> Last Changed Date: 2015-11-28 15:08:03 -0800 (Sat, 28 Nov 2015)




=3D=3D=3D
Mark Millard
markmi at dsl-only.net





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?106D9CB0-D9AE-4463-A03E-3AB16583CDA7>