spf-discuss
[Top] [All Lists]

Re: libspf2 1.0.4 fails compile on Solaris 7

2004-08-23 13:55:09
Hello,

It seems like there should be an option to turn IPV6 off, as your older
box apparently does not support it.

I've added a ticket for your problem in the rt.anarres.org bug-tracking
system. It might take a while though for it getting fixed, as there are
several more pressing tickets already there. If, in the mean time, you
feel the need to patch things up yourself, be sure to ask Shevek for the
development version. Help is very much appreciated!

Just out of curiosity: what do you mean with 'spflib2 mailing list'?
Afaik, there is no mailing list dedicated to libspf2..

Koen

On Sun, Aug 22, 2004 at 02:32:05PM -0400, Dean Brooks wrote:
Hi,

I couldn't find a way to search archives of the spflib2 mailing list,
so thought I would post.

Running stock Solaris 7 (or Solaris 2.7 depending on what you like to
call it), libspf2 v1.0.4 fails to compile with GCC 2.95.3 with the
error shown at the end of this email.

Solaris 7 is indeed a bit old, but for something as important as SPF,
hopefully this can be corrected in a future release as there are still
a large number of hosts running Solaris 7.

Any help would be appreciated.

Here is the entire make process up to the failure:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[~/libspf2-1.0.4]: make
make  all-recursive
make[1]: Entering directory `/home/dean/libspf2-1.0.4'
Making all in src
make[2]: Entering directory `/home/dean/libspf2-1.0.4/src'
Making all in include
make[3]: Entering directory `/home/dean/libspf2-1.0.4/src/include'
make[4]: Entering directory `/home/dean/libspf2-1.0.4/src/include'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/home/dean/libspf2-1.0.4/src/include'
make[3]: Leaving directory `/home/dean/libspf2-1.0.4/src/include'
Making all in libreplace
make[3]: Entering directory `/home/dean/libspf2-1.0.4/src/libreplace'
make[4]: Entering directory `/home/dean/libspf2-1.0.4/src/libreplace'
source='getopt_long_only.c' object='getopt_long_only.lo' libtool=yes \
depfile='.deps/getopt_long_only.Plo' tmpdepfile='.deps/getopt_long_only.TPlo' 
\
depmode=gcc /bin/bash ../../config/depcomp \
/bin/bash ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../..    
 -g -O2 -Wall -c -o getopt_long_only.lo getopt_long_only.c
mkdir .libs
 gcc -DHAVE_CONFIG_H -I. -I. -I../.. -g -O2 -Wall -c getopt_long_only.c 
-Wp,-MD,.deps/getopt_long_only.TPlo  -fPIC -o .libs/getopt_long_only.o
getopt_long_only.c: In function `_getopt_internal':
getopt_long_only.c:699: warning: suggest explicit braces to avoid ambiguous 
`else'
 gcc -DHAVE_CONFIG_H -I. -I. -I../.. -g -O2 -Wall -c getopt_long_only.c 
-Wp,-MD,.deps/getopt_long_only.TPlo -o getopt_long_only.o >/dev/null 2>&1
source='__ns_name_uncompress.c' object='__ns_name_uncompress.lo' libtool=yes \
depfile='.deps/__ns_name_uncompress.Plo' 
tmpdepfile='.deps/__ns_name_uncompress.TPlo' \
depmode=gcc /bin/bash ../../config/depcomp \
/bin/bash ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../..    
 -g -O2 -Wall -c -o __ns_name_uncompress.lo __ns_name_uncompress.c
 gcc -DHAVE_CONFIG_H -I. -I. -I../.. -g -O2 -Wall -c __ns_name_uncompress.c 
-Wp,-MD,.deps/__ns_name_uncompress.TPlo  -fPIC -o .libs/__ns_name_uncompress.o
 gcc -DHAVE_CONFIG_H -I. -I. -I../.. -g -O2 -Wall -c __ns_name_uncompress.c 
-Wp,-MD,.deps/__ns_name_uncompress.TPlo -o __ns_name_uncompress.o >/dev/null 
2>&1
source='__ns_msg_getflag.c' object='__ns_msg_getflag.lo' libtool=yes \
depfile='.deps/__ns_msg_getflag.Plo' tmpdepfile='.deps/__ns_msg_getflag.TPlo' 
\
depmode=gcc /bin/bash ../../config/depcomp \
/bin/bash ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../..    
 -g -O2 -Wall -c -o __ns_msg_getflag.lo __ns_msg_getflag.c
 gcc -DHAVE_CONFIG_H -I. -I. -I../.. -g -O2 -Wall -c __ns_msg_getflag.c 
-Wp,-MD,.deps/__ns_msg_getflag.TPlo  -fPIC -o .libs/__ns_msg_getflag.o
 gcc -DHAVE_CONFIG_H -I. -I. -I../.. -g -O2 -Wall -c __ns_msg_getflag.c 
-Wp,-MD,.deps/__ns_msg_getflag.TPlo -o __ns_msg_getflag.o >/dev/null 2>&1
/bin/bash ../../libtool --mode=link gcc  -g -O2 -Wall   -o libreplace.la    
getopt_long_only.lo __ns_name_uncompress.lo __ns_msg_getflag.lo -lintl 
-lsocket -lnsl -lresolv
../../libtool: test: : integer expression expected
../../libtool: test: : integer expression expected
using piecewise archive linking...
../../libtool: test: : integer expression expected
../../libtool: test: : integer expression expected
../../libtool: test: : integer expression expected
ar cru .libs/libreplace.a .libs/getopt_long_only.o
: .libs/libreplace.a
ar cru .libs/libreplace.a .libs/__ns_name_uncompress.o
: .libs/libreplace.a
ar cru .libs/libreplace.a .libs/__ns_msg_getflag.o
ranlib .libs/libreplace.a
creating libreplace.la
(cd .libs && rm -f libreplace.la && ln -s ../libreplace.la libreplace.la)
make[4]: Leaving directory `/home/dean/libspf2-1.0.4/src/libreplace'
make[3]: Leaving directory `/home/dean/libspf2-1.0.4/src/libreplace'
Making all in libspf2
make[3]: Entering directory `/home/dean/libspf2-1.0.4/src/libspf2'
make[4]: Entering directory `/home/dean/libspf2-1.0.4/src/libspf2'
source='spf.c' object='spf.lo' libtool=yes \
depfile='.deps/spf.Plo' tmpdepfile='.deps/spf.TPlo' \
depmode=gcc /bin/bash ../../config/depcomp \
/bin/bash ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. 
-I../../src/include -I../../src    -g -O2 -Wall -c -o spf.lo spf.c
mkdir .libs
 gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -I../../src -g -O2 
-Wall -c spf.c -Wp,-MD,.deps/spf.TPlo  -fPIC -o .libs/spf.o
In file included from spf.c:30:
../../src/include/spf.h:259: warning: `struct in6_addr' declared inside 
parameter list
../../src/include/spf.h:259: warning: its scope is only this definition or 
declaration, which is probably not what you want.
../../src/include/spf.h:259: warning: parameter has incomplete type
In file included from spf.c:31:
../../src/include/spf_internal.h:46: field `ipv6' has incomplete type
../../src/include/spf_internal.h: In function `SPF_mech_data_len':
../../src/include/spf_internal.h:381: sizeof applied to an incomplete type
../../src/include/spf_internal.h: At top level:
../../src/include/spf_internal.h:438: warning: parameter has incomplete type
spf.c: In function `SPF_is_loopback':
spf.c:181: `AF_INET6' undeclared (first use in this function)
spf.c:181: (Each undeclared identifier is reported only once
spf.c:181: for each function it appears in.)
spf.c:183: warning: implicit declaration of function `IN6_IS_ADDR_LOOPBACK'
make[4]: *** [spf.lo] Error 1
make[4]: Leaving directory `/home/dean/libspf2-1.0.4/src/libspf2'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/dean/libspf2-1.0.4/src/libspf2'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/dean/libspf2-1.0.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dean/libspf2-1.0.4'
make: *** [all] Error 2
[~/libspf2-1.0.4]:

Thanks,

-Dean Brooks
dean(_at_)iglou(_dot_)com

-------
Sender Policy Framework: http://spf.pobox.com/
Archives at http://archives.listbox.com/spf-discuss/current/
http://www.InboxEvent.com/?s=d --- Inbox Event Nov 17-19 in Atlanta features 
SPF and Sender ID.
To unsubscribe, change your address, or temporarily deactivate your 
subscription, 
please go to 
http://v2.listbox.com/member/?listname=spf-discuss(_at_)v2(_dot_)listbox(_dot_)com

-- 
K.F.J. Martens, Sonologic, http://www.sonologic.nl/
Networking, embedded systems, unix expertise, artificial intelligence.
Public PGP key: http://www.metro.cx/pubkey-gmc.asc
Wondering about the funny attachment your mail program
can't read? Visit http://www.openpgp.org/


<Prev in Thread] Current Thread [Next in Thread>