Build warnings

From: Todd Lyons <tlyons_at_ivenue.com>
Date: Tue, 16 Nov 2010 11:37:27 -0800

The beta 2.2.2 builds and runs fine so far. Just wanted to point out
a couple of compile warnings that I see which may or may not be worth
looking at. Extreme apologies for the wrapping. I'll double-space
between lines. Basically, 1, 3, 4, and 5 are all the same warning
about tmpnam. #2 is really the only thing that looks like it might
warrant attention.

1.
libtool: link: gcc -std=gnu99 -g -O2 -o miltertest
miltertest-miltertest.o ../libopendkim/.libs/libopendkim.a
-L/usr/local/ssl/lib -L/usr/lib -lssl -lcrypto -ldl
/download/opendkim-2.2.2/libar/.libs/libar.a -lresolv -ltre -llua -lm
-pthread

/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib64/liblua.a(loslib.o)(.text+0x175):
In function `os_tmpname':
: warning: the use of `tmpnam' is dangerous, better use `mkstemp'

2.
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include
-I./../libopendkim -g -O2 -MT
opendkim_importstats-opendkim-importstats.o -MD -MP -MF
.deps/opendkim_importstats-opendkim-importstats.Tpo -c -o
opendkim_importstats-opendkim-importstats.o `test -f
'opendkim-importstats.c' || echo './'`opendkim-importstats.c

opendkim-importstats.c: In function `main':

opendkim-importstats.c:577: warning: implicit declaration of function
`dkim_strlcpy'

3.
libtool: link: gcc -std=gnu99 -g -O2 -o opendkim-genzone
opendkim_genzone-config.o opendkim_genzone-opendkim-db.o
opendkim_genzone-opendkim-genzone.o opendkim_genzone-opendkim-lua.o
opendkim_genzone-util.o -L/usr/lib ../libopendkim/.libs/libopendkim.a
-L/usr/local/ssl/lib /download/opendkim-2.2.2/libar/.libs/libar.a
-lresolv -ltre -lssl -lcrypto -L/usr/local/lib
/usr/local/lib/libopendbx.so -L/usr/lib64/mysql -ldl -llua -lm
-pthread -Wl,-rpath -Wl,/usr/local/lib -Wl,-rpath -Wl,/usr/local/lib

/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib64/liblua.a(loslib.o)(.text+0x175):
In function `os_tmpname':

: warning: the use of `tmpnam' is dangerous, better use `mkstemp'

4.
libtool: link: gcc -std=gnu99 -pthread -g -O2 -o opendkim-testkey
opendkim_testkey-config.o opendkim_testkey-opendkim-db.o
opendkim_testkey-opendkim-lua.o opendkim_testkey-opendkim-testkey.o
opendkim_testkey-util.o -L/usr/local/ssl/lib -L/usr/lib
../libopendkim/.libs/libopendkim.a
/download/opendkim-2.2.2/libar/.libs/libar.a -ltre -lssl -lcrypto
-lresolv -llua -lm -L/usr/local/lib /usr/local/lib/libopendbx.so
-L/usr/lib64/mysql -ldl -pthread -Wl,-rpath -Wl,/usr/local/lib
-Wl,-rpath -Wl,/usr/local/lib

/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib64/liblua.a(loslib.o)(.text+0x175):
In function `os_tmpname':
: warning: the use of `tmpnam' is dangerous, better use `mkstemp'

5.
libtool: link: gcc -std=gnu99 -pthread -I./../libar -g -O2 -pthread -o
opendkim opendkim-opendkim.o opendkim-opendkim-ar.o
opendkim-opendkim-arf.o opendkim-opendkim-crypto.o
opendkim-opendkim-db.o opendkim-opendkim-dns.o opendkim-opendkim-lua.o
opendkim-config.o opendkim-stats.o opendkim-test.o opendkim-util.o
-L/usr/local/ssl/lib -L/usr/lib ../libopendkim/.libs/libopendkim.a
/download/opendkim-2.2.2/libar/.libs/libar.a -ltre -lmilter -lssl
-lcrypto -L/usr/local/lib /usr/local/lib/libopendbx.so
-L/usr/lib64/mysql -ldl -llua -lm ../libar/.libs/libar.a -lresolv
-pthread -Wl,-rpath -Wl,/usr/local/lib -Wl,-rpath -Wl,/usr/local/lib

/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib64/liblua.a(loslib.o)(.text+0x175):
In function `os_tmpname':
: warning: the use of `tmpnam' is dangerous, better use `mkstemp'


-- 
Regards...      Todd
I seek the truth...it is only persistence in self-delusion and
ignorance that does harm.  -- Marcus Aurealius
Received on Tue Nov 16 2010 - 19:37:50 PST

This archive was generated by hypermail 2.3.0 : Mon Oct 29 2012 - 23:32:54 PST