From owner-freebsd-ppc@freebsd.org Sun Nov 29 10:03:10 2015 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7CBA1A3B8BD for ; Sun, 29 Nov 2015 10:03:10 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-211-151.reflexion.net [208.70.211.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3B4841F6D for ; Sun, 29 Nov 2015 10:03:09 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 26451 invoked from network); 29 Nov 2015 10:03:06 -0000 Received: from unknown (HELO rtc-sm-01.app.dca.reflexion.local) (10.81.150.1) by 0 (rfx-qmail) with SMTP; 29 Nov 2015 10:03:06 -0000 Received: by rtc-sm-01.app.dca.reflexion.local (Reflexion email security v7.80.0) with SMTP; Sun, 29 Nov 2015 05:03:07 -0500 (EST) Received: (qmail 30787 invoked from network); 29 Nov 2015 10:03:07 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with SMTP; 29 Nov 2015 10:03:07 -0000 X-No-Relay: not in my network X-No-Relay: not in my network Received: from [192.168.1.8] (c-76-115-7-162.hsd1.or.comcast.net [76.115.7.162]) by iron2.pdx.net (Postfix) with ESMTPSA id A1165B1E002; Sun, 29 Nov 2015 02:03:05 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: head/kerberos5/lib/libkrb5/ and libhdb/ not looking in /usr/obj/usr/src/tmp/usr/lib/ for linking From: Mark Millard In-Reply-To: <6AA244B9-DE60-4D8B-A08E-AADD73F9D856@dsl-only.net> Date: Sun, 29 Nov 2015 02:03:05 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: <106D9CB0-D9AE-4463-A03E-3AB16583CDA7@dsl-only.net> References: <01BA3FF2-F362-48FA-B9E2-112E05CC00ED@dsl-only.net> <6AA244B9-DE60-4D8B-A08E-AADD73F9D856@dsl-only.net> To: FreeBSD PowerPC ML , FreeBSD Toolchain X-Mailer: Apple Mail (2.2104) X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Nov 2015 10:03:10 -0000 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