| Summary: | New port: pam_ssh (moved out from base) | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Base System | Reporter: | ajk <ajk> | ||||
| Component: | bin | Assignee: | freebsd-bugs (Nobody) <bugs> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | ||||||
| Priority: | Normal | ||||||
| Version: | 4.2-RELEASE | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
|
Description
ajk
2001-04-18 06:50:00 UTC
State Changed From-To: open->analyzed 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? 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" <ajk@iu.edu> -----
Date: Wed, 18 Apr 2001 10:39:37 -0500 (EST)
From: "Andrew J. Korty" <ajk@iu.edu>
To: <will@FreeBSD.org>
Cc: <freebsd-bugs@FreeBSD.org>
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
On Wed, Apr 18, 2001 at 10:58:56AM -0500, Will Andrews wrote: > Am I right that revs 1.87 and 1.61.2.12 of src/sys/sys/param.h denote > the removal of -lgcc_pic? Yes. [for the ELF case] -- -- David (obrien@FreeBSD.org) State Changed From-To: analyzed->closed Committed, thanks. |