pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/32275: The program l2tpd from the net/rp-l2tp package does not run on NetBSD-2.0/i386



The following reply was made to PR pkg/32275; it has been noted by GNATS.

From: Lubomir Sedlacik <salo%Xtrmntr.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: pkg/32275: The program l2tpd from the net/rp-l2tp package does not 
run on NetBSD-2.0/i386
Date: Sun, 11 Dec 2005 00:28:11 +0100

 --hUen2UJD5eWDKlb+
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On Sat, Dec 10, 2005 at 11:25:00PM +0000, brchuck%hotmail.com@localhost wrote:
 > >Fix:
 > I fixed it by adding the -Wl,-E option to the rule for building l2tpd
 > in the Makefile that was generated by pkgsrc in the process of
 > building the package. After that, it still did not work (I got another
 > undefined PLT symbol error) until I added the -lutil option to the
 > rule for building the sync-pppd.so handler in the Makefile of the
 > handlers directory. These changes can be integrated into pkgsrc by
 > replacing patch-ab with the patch-ab listed below, and by adding
 > patch-ah as listed below to the patches directory:
 >=20
 > Replace patch-ab with this to add the -Wl,-E option for building l2tpd
 > on NetBSD:
 >=20
 > --- Makefile.in.orig 2002-09-30 16:33:55.000000000 -0400
 > +++ Makefile.in      2005-12-10 09:16:01.000000000 -0500
 > @@ -26,11 +26,21 @@
 >  install_dir=3D@INSTALL@ -d
 >  sbindir=3D@sbindir@
 > =20
 > +OPSYS=3D $(shell uname -s)
 > +
 >  OBJS=3Dauth.o debug.o dgram.o main.o md5.o network.o options.o peer.o se=
 ssion.o tunnel.o utils.o
 > -EXTRA_LIBS=3D@LIBEVENT@/*.o -ldl
 > +
 > +ifeq (${OPSYS}, Linux)
 > +EXTRA_LIBS=3D-ldl
 > +DYNAMIC_FLAGS=3D -rdynamic
 > +endif
 > +
 > +ifeq (${OPSYS}, NetBSD)
 > +DYNAMIC_FLAGS=3D -Wl,-E
 > +endif
 > =20
 > @@ -43,7 +53,7 @@
 > =20
 >  l2tpd: libl2tp.a libevent/libevent.a
 >      $(MAKE) -C handlers
 > -    @CC@ -o l2tpd -rdynamic $(OBJS) $(EXTRA_LIBS)
 > +    @CC@ -o l2tpd $(DYNAMIC_FLAGS) $(OBJS) @LIBEVENT@/*.o $(EXTRA_LIBS)
 
 this is unnecessary, just use the EXPORT_SYMBOLS_LDFLAGS variable
 defined by the pkgsrc infrastructure to DTRT.
 
 regards,
 
 --=20
 -- Lubomir Sedlacik <salo@{NetBSD,Xtrmntr,silcnet}.org>   --
 
 --hUen2UJD5eWDKlb+
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.2 (NetBSD)
 
 iD8DBQFDm2SLiwjDDlS8cmMRAjNPAJ0cM1Pw/GXZcTiL3sxNSRgg7FeUnACggLPN
 60ayTSXjZDUCKzjLJAk8tQc=
 =qK1t
 -----END PGP SIGNATURE-----
 
 --hUen2UJD5eWDKlb+--
 



Home | Main Index | Thread Index | Old Index