[Openswan dev] head fails with LEAK_DETECTIVE
Paul Wouters
paul at xelerance.com
Sun Aug 15 21:20:34 CEST 2004
With -DLEAK_DETECTIVE defined in pluto's Makefile:
cc -o pluto ike_alg.o db_ops.o connections.o cookie.o crypto.o defs.o foodgroups.o log.o state.o plutomain.o plutoalg.o server.o timer.o pluto_constants.o id.o ipsec_doi.o kernel.o kernel_netlink.o kernel_pfkey.o kernel_noklips.o rcv_whack.o demux.o packet.o lex.o keys.o dnskey.o rnd.o spdb.o sha1.o md5.o vendor.o nat_traversal.o virtual.o ike_alg_aes.o ike_alginit.o xauth.o ac.o asn1.o oid.o pem.o pgp.o pkcs.o x509.o certs.o md2.o ocsp.o x509keys.o fetch.o whacklib.o ../../lib/libcrypto/libdes/libdes.a ../../lib/libcrypto/libaes/libaes.a ../../lib/libopenswan/libopenswan.a -lldap -lpthread -lgmp -lresolv
db_ops.o(.text+0xba): In function `db_prop_init':
/usr/src/osw2/openswan-2/programs/pluto/db_ops.c:151: undefined reference to `pfree'
db_ops.o(.text+0x1ca): In function `db_trans_expand':
/usr/src/osw2/openswan-2/programs/pluto/db_ops.c:187: undefined reference to `pfree'
db_ops.o(.text+0x2bc): In function `db_attrs_expand':
/usr/src/osw2/openswan-2/programs/pluto/db_ops.c:224: undefined reference to `pfree'
db_ops.o(.text+0x324): In function `db_prop_new':
/usr/src/osw2/openswan-2/programs/pluto/db_ops.c:239: undefined reference to `pfree'
db_ops.o(.text+0x356): In function `db_destroy':
/usr/src/osw2/openswan-2/programs/pluto/db_ops.c:250: undefined reference to `pfree'
db_ops.o(.text+0x376):/usr/src/osw2/openswan-2/programs/pluto/db_ops.c:251: more undefined references to `pfree' follow
plutomain.o(.text+0xa1b): In function `exit_pluto':
/usr/src/osw2/openswan-2/programs/pluto/plutomain.c:720: undefined reference to `report_leaks'
plutoalg.o(.text+0x6cd): In function `alg_info_ike_create_from_str':
/usr/src/osw2/openswan-2/programs/pluto/plutoalg.c:296: undefined reference to `pfree'
server.o(.text+0x24e): In function `free_dead_ifaces':
/usr/src/osw2/openswan-2/programs/pluto/server.c:231: undefined reference to `pfree'
server.o(.text+0x25f):/usr/src/osw2/openswan-2/programs/pluto/server.c:232: undefined reference to `pfree'
server.o(.text+0x27e):/usr/src/osw2/openswan-2/programs/pluto/server.c:234: undefined reference to `pfree'
server.o(.text+0x130f): In function `process_raw_ifaces':
/usr/src/osw2/openswan-2/programs/pluto/server.c:785: undefined reference to `pfree'
timer.o(.text+0xa3f):/usr/src/osw2/openswan-2/programs/pluto/timer.c:448: more undefined references to `pfree' follow
collect2: ld returned 1 exit status
make[2]: *** [pluto] Error 1
make[2]: Leaving directory `/usr/local/src/osw2/openswan-2/programs/pluto'
make[1]: *** [programs] Error 1
make[1]: Leaving directory `/usr/local/src/osw2/openswan-2/programs'
make: *** [programs] Error 1
Compiles fine without it.
Any reason why head isn't using LEAK_DETECTIVE ?
Paul
More information about the Dev
mailing list