| From: Paul Wouters <[email protected]>

| > It looks as if a number of files are not compiled.  Should these be
| > deleted?
| >
| > programs/spi/spi.c
| > programs/addconn/addconn.c
| > programs/readwriteconf/readwriteconf.c
| > programs/showhostkey/showhostkey.c
| 
| Those are definately used and installed. Why do you think those are not
| compiled? Did you mistakenly run make from the programs directory and
| have old/bogus .o files there (instead of in OBJ.*/programs/* ?

I was confused by the fact that the make builds those but deletes the
corresponding .o files.  For example:

    make[3]: Entering directory 
`/home/hugh/libreswan/OBJ.linux.x86_64/programs/spi'
    cc -c -pthread -g -O2 -m64 -Wall -Wextra -Wformat -Wformat-nonliteral 
-Wformat-security -Wundef -Wmissing-declarations -Wredundant-decls 
-Wnested-externs  -DGCC_LINT -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
-fstack-protector-all --param=ssp-buffer-size=4  -mtune=generic 
-fno-strict-aliasing -fPIE -DPIE   -I/home/hugh/libreswan/ports/linux/include  
-I/home/hugh/libreswan/ports/linux/include  
-I/home/hugh/libreswan/ports/linux/include  
-I/home/hugh/libreswan/ports/linux/include  -I/home/hugh/libreswan 
-I/home/hugh/libreswan/linux/include -I/home/hugh/libreswan/include 
-I/usr/include/nss3 -I/usr/include/nspr4    -DLIBCURL -DKLIPS 
-DIPSEC_CONFDIR=\"/etc\" -DIPSEC_CONFDDIR=\"/etc/ipsec.d\" 
-DIPSEC_CONF=\"/etc/ipsec.conf\" -DIPSEC_VARDIR=\"/var\" -Wall -Wextra -Wformat 
-Wformat-nonliteral -Wformat-security -Wundef -Wmissing-declarations 
-Wredundant-decls -Wnested-externs  /home/hugh/libreswan/programs/spi/spi.c
    cc -pthread -g -O2 -m64 -Wall -Wextra -Wformat -Wformat-nonliteral 
-Wformat-security -Wundef -Wmissing-declarations -Wredundant-decls 
-Wnested-externs  -DGCC_LINT -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
-fstack-protector-all --param=ssp-buffer-size=4  -mtune=generic 
-fno-strict-aliasing -fPIE -DPIE   -I/home/hugh/libreswan/ports/linux/include  
-I/home/hugh/libreswan/ports/linux/include  
-I/home/hugh/libreswan/ports/linux/include  
-I/home/hugh/libreswan/ports/linux/include  -I/home/hugh/libreswan 
-I/home/hugh/libreswan/linux/include -I/home/hugh/libreswan/include 
-I/usr/include/nss3 -I/usr/include/nspr4    -DLIBCURL -DKLIPS 
-DIPSEC_CONFDIR=\"/etc\" -DIPSEC_CONFDDIR=\"/etc/ipsec.d\" 
-DIPSEC_CONF=\"/etc/ipsec.conf\" -DIPSEC_VARDIR=\"/var\" -Wall -Wextra -Wformat 
-Wformat-nonliteral -Wformat-security -Wundef -Wmissing-declarations 
-Wredundant-decls -Wnested-externs  -o spi spi.o    
/home/hugh/libreswan/OBJ.linux.x86_64/lib/libswan/liblswlog.a 
/home/hugh/libreswan/OBJ.linu!
x.x86_64/lib/libswan/libswan.a 
/home/hugh/libreswan/OBJ.linux.x86_64/lib/libcrypto/libaes/libaes.a 
/home/hugh/libreswan/OBJ.linux.x86_64/lib/libcrypto/libsha1/libsha1.a 
/home/hugh/libreswan/OBJ.linux.x86_64/lib/libcrypto/libmd5/libmd5.a 
/home/hugh/libreswan/OBJ.linux.x86_64/lib/libcrypto/libdes/libdes.a 
/home/hugh/libreswan/OBJ.linux.x86_64/lib/libcrypto/libsha2/libsha2.a 
/home/hugh/libreswan/OBJ.linux.x86_64/lib/libcrypto/libserpent/libserpent.a 
/home/hugh/libreswan/OBJ.linux.x86_64/lib/libcrypto/libtwofish/libtwofish.a 
/home/hugh/libreswan/OBJ.linux.x86_64/lib/libcrypto/liblswcrypto/liblswcrypto.a 
 -Wl,-z,relro,-z,now -g -pie  
/home/hugh/libreswan/OBJ.linux.x86_64/lib/libswan/liblswlog.a 
/home/hugh/libreswan/OBJ.linux.x86_64/lib/libswan/libswan.a 
/home/hugh/libreswan/OBJ.linux.x86_64/lib/libcrypto/libaes/libaes.a 
/home/hugh/libreswan/OBJ.linux.x86_64/lib/libcrypto/libsha1/libsha1.a 
/home/hugh/libreswan/OBJ.linux.x86_64/lib/libcrypto/libmd5/libmd5.a 
/home/hugh/libreswan/OBJ!
.linux.x86_64/lib/libcrypto/libdes/libdes.a 
/home/hugh/libreswan/OBJ.linux.x86_64/lib/libcrypto/libsha2/libsha2.a 
/home/hugh/libreswan/OBJ.linux.x86_64/lib/libcrypto/libserpent/libserpent.a 
/home/hugh/libreswan/OBJ.linux.x86_64/lib/libcrypto/libtwofish/libtwofish.a 
/home/hugh/libreswan/OBJ.linux.x86_64/lib/libcrypto/liblswcrypto/liblswcrypto.a 
  -lgmp -lssl3 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4 -lpthread -ldl 
  -Wl,-z,relro,-z,now -g -pie 
    rm spi.o
    make[3]: Leaving directory 
`/home/hugh/libreswan/OBJ.linux.x86_64/programs/spi'

I don't know where the rm comes from.  I couldn't find it in our
makefiles.  Perhaps a built-in make rule.  For me, it would be
convenient to suppress it.
_______________________________________________
Swan-dev mailing list
[email protected]
https://lists.libreswan.org/mailman/listinfo/swan-dev

Reply via email to