Subject: Re: CVS commit: pkgsrc/mk/compiler
To: Manuel Bouyer <>
From: grant beattie <>
List: tech-pkg
Date: 02/18/2004 08:39:07
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Feb 09, 2004 at 02:26:31PM +0100, Manuel Bouyer wrote:

> > This particular problem you're experiencing is actually a
> > openssh*/Makefile problem as it redefines LD to ${CC}, which is
> > generally a bad thing to do (as you've noted).  It should just pass
> > LD=3D${CC} to the configure process as the comment in the Makefile says
> > that it wants to do.
> You commit fix this problem, but now the build fails at link time. It see=
> it because it doesn't add -lc to the libraries:
> ld -o ssh ssh.o readconf.o clientloop.o sshtty.o  sshconnect.o sshconnect=
1.o sshconnect2.o -L. -Lopenbsd-compat/ -L/usr/local/lib -L/usr/local/lib  =
 -L/usr/local/gcc-3.3.2/lib/gcc-lib/sparc64-sun-solaris2/3.3.2 -Wl,-R/usr/l=
ocal/gcc-3.3.2/lib/gcc-lib/sparc64-sun-solaris2/3.3.2 -L/usr/local/gcc-3.3.=
2/lib -Wl,-R/usr/local/gcc-3.3.2/lib -L/usr/local/lib -Wl,-R/usr/local/lib =
-L/usr/local/lib -R/usr/local/lib -L/usr/local/lib -lssh -lopenbsd-compat -=
lrt -lskey -lz -lsocket -lnsl  -lcrypto
> Undefined                       first referenced
>  symbol                             in file
> setuid                              ssh.o  (symbol belongs to implicit de=
pendency /lib/64/
> cfsetospeed                         ./libssh.a(ttymodes.o)  (symbol belon=
gs to implicit dependency /lib/64/
> strcspn                             ./libssh.a(readpass.o)  (symbol belon=
gs to implicit dependency /lib/64/
> [...]

LD got replaced with CC.. speaking from experience breaking this
package before, adding -lc won't fix it, it has to call ${CC} to
link, not ${LD}.


Content-Type: application/pgp-signature
Content-Disposition: inline

Version: GnuPG v1.2.4 (NetBSD)