Discussion:
[pkgsrc] ast-ksh
John D. Baker
2014-08-02 19:34:10 UTC
Permalink
On Mon, 28 Jul 2014 17:27:37 +0200 BERTRAND Joel
Is this package currently broken or is this issue -current specific
(or -current-sparc64) ?
It appears to be an issue with all -current as I just encountered it on
i386-6.99.49.

It does not occur on netbsd-6/i386.
It is missing -lm in the linker command line.
I'm trying to find just where it's missing, but it's not obvious. There
seem to be two or three different build mechanisms all mashed together.
--
|/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X
|\ / jdbaker[snail]mylinuxisp[flyspeck]com OpenBSD FreeBSD
| X No HTML/proprietary data in email. BSD just sits there and works!
|/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
John D. Baker
2014-08-02 22:53:29 UTC
Permalink
Post by John D. Baker
I'm trying to find just where it's missing, but it's not obvious. There
seem to be two or three different build mechanisms all mashed together.
I worked around it like this as modifying LDFLAGS seemed not to have any
effect.

+--- src/cmd/ksh93/Mamfile.orig 2012-08-07 12:31:29.000000000 -0500
++++ src/cmd/ksh93/Mamfile 2014-08-02 17:47:26.000000000 -0500
+@@ -1384,7 +1384,7 @@ prev +li
+ prev ${mam_libsocket}
+ prev ${mam_libsecdb}
+ setv CC.DLL -UCC.DLL
+-exec - ${CC} ${CCLDFLAGS} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS} ${mam_cc_L+-L.} ${mam_cc_L+-L${INSTALLROOT}/lib} -o suid_exec suid_exec.o ${mam_libast} ${mam_libnsl} ${mam_libast}
++exec - ${CC} ${CCLDFLAGS} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS} ${mam_cc_L+-L.} ${mam_cc_L+-L${INSTALLROOT}/lib} -o suid_exec suid_exec.o ${mam_libast} ${mam_libnsl} ${mam_libast} -lm
+ done suid_exec generated
+ make shell
+ prev libshell.a archive


There are other errors that happen earlier, though, so it still doesn't
install on i386-6.99.49.
--
|/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X
|\ / jdbaker[snail]mylinuxisp[flyspeck]com OpenBSD FreeBSD
| X No HTML/proprietary data in email. BSD just sits there and works!
|/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
Loading...