From owner-freebsd-bugs Wed Apr 18 9:10: 9 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id E82AE37B422 for ; Wed, 18 Apr 2001 09:10:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f3IGA4R92573; Wed, 18 Apr 2001 09:10:04 -0700 (PDT) (envelope-from gnats) Date: Wed, 18 Apr 2001 09:10:04 -0700 (PDT) Message-Id: <200104181610.f3IGA4R92573@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Will Andrews Subject: FW: Re: bin/26666: New port: pam_ssh (moved out from base) Reply-To: Will Andrews Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/26666; it has been noted by GNATS. From: Will Andrews To: obrien@FreeBSD.org Cc: ajk@iu.edu, FreeBSD GNATS DB Subject: FW: Re: bin/26666: New port: pam_ssh (moved out from base) Date: Wed, 18 Apr 2001 10:58:56 -0500 David, Am I right that revs 1.87 and 1.61.2.12 of src/sys/sys/param.h denote the removal of -lgcc_pic? I need an ${OSVERSION} check on this to regex out the -lgcc_pic for newer systems. See: http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/sys/param.h Andy, It may be easier to simply use a regex in the port Makefile to adjust settings, at least until you can make a similar adjustment in the pam_ssh Makefile. I think you'd want something similar to this: OSVERSION!= /sbin/sysctl -n kern.osreldate .if (${OSVERSION} <= 420001) LDADD+= -lgcc_pic .endif You could wrap this with an .if (${OSNAME} == "FreeBSD") if you are so inclined to make it portable among BSD (with a similar definition of course :-). ----- Forwarded message from "Andrew J. Korty" ----- Date: Wed, 18 Apr 2001 10:39:37 -0500 (EST) From: "Andrew J. Korty" To: Cc: Subject: Re: bin/26666: New port: pam_ssh (moved out from base) On Tue, 17 Apr 2001 will@FreeBSD.org wrote: > State-Changed-Why: > Doesn't build on 4.3-RC: > > cc -pipe -fpic -DPIC -O -pipe -Wall -c rijndael.c -o rijndael.So > cc -pipe -fpic -DPIC -O -pipe -Wall -c xmalloc.c -o xmalloc.So > building shared library pam_ssh.so > /usr/libexec/elf/ld: cannot find -lgcc_pic > *** Error code 1 > > Stop in /net/puck/will/ports/security/pam_ssh/work/pam_ssh-1.5. > *** Error code 1 > > Removing -lgcc_pic fixes it. What shall we do here? I'm not sure why I was using -lgcc_pic before, but it doesn't appear to be necessary under 4.2-RELEASE. I've removed it from the Makefile and moved the tag for 1.5, but I can't log in to SourceForge to change replace the file. I'll try later. If you want, just make a patch to remove it. -- Andrew J. Korty, Principal Security Engineer, GCIA Office of the Vice President for Information Technology Indiana University ----- End forwarded message ----- -- wca To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message