[exim] libspf2 help !!??!!

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Dan_Mitton
Date:  
À: exim-users
Sujet: [exim] libspf2 help !!??!!
I'm trying to compile libspf2 on Sun Solaris 8 & 9, and I'm getting
strange errors. Any help would be greatly appreciated!! Thanks, make
output below...

root@nessie:/usr/local/opt/libspf2-1.2.5>make
make  all-recursive
make[1]: Entering directory `/usr/local/opt/libspf2-1.2.5'
Making all in src
make[2]: Entering directory `/usr/local/opt/libspf2-1.2.5/src'
Making all in include
make[3]: Entering directory `/usr/local/opt/libspf2-1.2.5/src/include'
make[4]: Entering directory `/usr/local/opt/libspf2-1.2.5/src/include'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/usr/local/opt/libspf2-1.2.5/src/include'
make[3]: Leaving directory `/usr/local/opt/libspf2-1.2.5/src/include'
Making all in libreplace
make[3]: Entering directory `/usr/local/opt/libspf2-1.2.5/src/libreplace'
make[4]: Entering directory `/usr/local/opt/libspf2-1.2.5/src/libreplace'
if /bin/bash ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. 
-I../..     -g -O2 -W -Wall -Wmissing-prototypes -Wwrite-strings -MT 
getopt_long_only.lo -MD -MP -MF ".deps/getopt_long_only.Tpo" -c -o 
getopt_long_only.lo getopt_long_only.c; \
then mv -f ".deps/getopt_long_only.Tpo" ".deps/getopt_long_only.Plo"; else 
rm -f ".deps/getopt_long_only.Tpo"; exit 1; fi
mkdir .libs
 gcc -DHAVE_CONFIG_H -I. -I. -I../.. -g -O2 -W -Wall -Wmissing-prototypes 
-Wwrite-strings -MT getopt_long_only.lo -MD -MP -MF 
.deps/getopt_long_only.Tpo -c getopt_long_only.c  -fPIC -DPIC -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'
getopt_long_only.c: At top level:
getopt_long_only.c:391: warning: unused parameter 'argc'
getopt_long_only.c:392: warning: unused parameter 'argv'
 gcc -DHAVE_CONFIG_H -I. -I. -I../.. -g -O2 -W -Wall -Wmissing-prototypes 
-Wwrite-strings -MT getopt_long_only.lo -MD -MP -MF 
.deps/getopt_long_only.Tpo -c getopt_long_only.c -o getopt_long_only.o 

>/dev/null 2>&1

        .
        .
        .
/bin/bash ../../libtool --mode=link gcc  -g -O2 -W -Wall 
-Wmissing-prototypes -Wwrite-strings   -o libspf2.la -rpath /usr/local/lib 
-version-info 2:0:0 spf_compile.lo spf_config.lo spf_dns.lo 
spf_dns_cache.lo spf_dns_null.lo spf_dns_resolv.lo spf_dns_rr.lo 
spf_dns_test.lo spf_dns_windns.lo spf_dns_zone.lo spf_expand.lo 
spf_find_mod.lo spf_get_exp.lo spf_get_spf.lo spf_id2str.lo 
spf_interpret.lo spf_log.lo spf_log_default.lo spf_log_stdio.lo 
spf_log_syslog.lo spf_optimize.lo spf_print.lo spf_record.lo 
spf_request.lo spf_response.lo spf_result.lo spf_server.lo spf_strerror.lo 
spf_utils.lo spf_verify.lo spf_win32.lo ../../src/libreplace/libreplace.la 
-lpthread -lintl -lsocket -lnsl -lresolv
gcc -shared -Wl,-h -Wl,libspf2.so.2 -o .libs/libspf2.so.2.0.0 
.libs/spf_compile.o .libs/spf_config.o .libs/spf_dns.o 
.libs/spf_dns_cache.o .libs/spf_dns_null.o .libs/spf_dns_resolv.o 
.libs/spf_dns_rr.o .libs/spf_dns_test.o .libs/spf_dns_windns.o 
.libs/spf_dns_zone.o .libs/spf_expand.o .libs/spf_find_mod.o 
.libs/spf_get_exp.o .libs/spf_get_spf.o .libs/spf_id2str.o 
.libs/spf_interpret.o .libs/spf_log.o .libs/spf_log_default.o 
.libs/spf_log_stdio.o .libs/spf_log_syslog.o .libs/spf_optimize.o 
.libs/spf_print.o .libs/spf_record.o .libs/spf_request.o 
.libs/spf_response.o .libs/spf_result.o .libs/spf_server.o 
.libs/spf_strerror.o .libs/spf_utils.o .libs/spf_verify.o 
.libs/spf_win32.o -z allextract ../../src/libreplace/.libs/libreplace.a -z 
defaultextract  -lpthread -lintl -lsocket -lnsl -lresolv -lc
(cd .libs && rm -f libspf2.so.2 && ln -s libspf2.so.2.0.0 libspf2.so.2)
(cd .libs && rm -f libspf2.so && ln -s libspf2.so.2.0.0 libspf2.so)
rm -fr .libs/libspf2.lax
mkdir .libs/libspf2.lax
rm -fr .libs/libspf2.lax/libreplace.a
mkdir .libs/libspf2.lax/libreplace.a
(cd .libs/libspf2.lax/libreplace.a && ar x 
/usr/local/opt/libspf2-1.2.5/src/libspf2/../../src/libreplace/.libs/libreplace.a)
ar cru .libs/libspf2.a  spf_compile.o spf_config.o spf_dns.o 
spf_dns_cache.o spf_dns_null.o spf_dns_resolv.o spf_dns_rr.o 
spf_dns_test.o spf_dns_windns.o spf_dns_zone.o spf_expand.o spf_find_mod.o 
spf_get_exp.o spf_get_spf.o spf_id2str.o spf_interpret.o spf_log.o 
spf_log_default.o spf_log_stdio.o spf_log_syslog.o spf_optimize.o 
spf_print.o spf_record.o spf_request.o spf_response.o spf_result.o 
spf_server.o spf_strerror.o spf_utils.o spf_verify.o spf_win32.o 
.libs/libspf2.lax/libreplace.a/getopt_long_only.o 
.libs/libspf2.lax/libreplace.a/__ns_name_uncompress.o
ranlib .libs/libspf2.a
rm -fr .libs/libspf2.lax
creating libspf2.la
grep: illegal option -- e
Usage: grep -hblcnsviw pattern file . . .
grep: illegal option -- e
Usage: grep -hblcnsviw pattern file . . .
grep: illegal option -- e
grep: illegal option -- p
grep: illegal option -- t
grep: illegal option -- r
grep: illegal option -- e
grep: illegal option -- a
grep: illegal option -- d
Usage: grep -hblcnsviw pattern file . . .
grep: illegal option -- e
Usage: grep -hblcnsviw pattern file . . .
grep: illegal option -- e
Usage: grep -hblcnsviw pattern file . . .
grep: illegal option -- e
grep: illegal option -- t
Usage: grep -hblcnsviw pattern file . . .
grep: illegal option -- e
Usage: grep -hblcnsviw pattern file . . .
grep: illegal option -- e
Usage: grep -hblcnsviw pattern file . . .
grep: illegal option -- e
grep: illegal option -- o
grep: illegal option -- k
grep: illegal option -- e
grep: illegal option -- t
Usage: grep -hblcnsviw pattern file . . .
grep: illegal option -- e
Usage: grep -hblcnsviw pattern file . . .
grep: illegal option -- e
Usage: grep -hblcnsviw pattern file . . .
grep: illegal option -- e
Usage: grep -hblcnsviw pattern file . . .
grep: illegal option -- e
Usage: grep -hblcnsviw pattern file . . .
grep: illegal option -- e
Usage: grep -hblcnsviw pattern file . . .
grep: illegal option -- e
grep: illegal option -- r
grep: illegal option -- e
grep: illegal option -- o
Usage: grep -hblcnsviw pattern file . . .
(cd .libs && rm -f libspf2.la && ln -s ../libspf2.la libspf2.la)
make[4]: Leaving directory `/usr/local/opt/libspf2-1.2.5/src/libspf2'
make[3]: Leaving directory `/usr/local/opt/libspf2-1.2.5/src/libspf2'
Making all in spfquery
make[3]: Entering directory `/usr/local/opt/libspf2-1.2.5/src/spfquery'
make[4]: Entering directory `/usr/local/opt/libspf2-1.2.5/src/spfquery'
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -I../../src -g 
-O2 -W -Wall -Wmissing-prototypes -Wwrite-strings -MT spfquery.o -MD -MP 
-MF ".deps/spfquery.Tpo" -c -o spfquery.o spfquery.c; \
then mv -f ".deps/spfquery.Tpo" ".deps/spfquery.Po"; else rm -f 
".deps/spfquery.Tpo"; exit 1; fi
spfquery.c: In function `main':
spfquery.c:635: warning: comparison between signed and unsigned
spfquery.c:659: warning: comparison between signed and unsigned
spfquery.c:683: warning: comparison between signed and unsigned
/bin/bash ../../libtool --mode=link gcc  -g -O2 -W -Wall 
-Wmissing-prototypes -Wwrite-strings   -o spfquery  spfquery.o 
../../src/libspf2/libspf2.la -lpthread -lintl -lsocket -lnsl -lresolv
mkdir .libs
gcc -g -O2 -W -Wall -Wmissing-prototypes -Wwrite-strings -o .libs/spfquery 
spfquery.o  ../../src/libspf2/.libs/libspf2.so -lpthread -lintl -lsocket 
-lnsl -lresolv -R/usr/local/lib
Undefined                       first referenced
 symbol                             in file
getopt_long_only                    spfquery.o
ld: fatal: Symbol referencing errors. No output written to .libs/spfquery
collect2: ld returned 1 exit status
make[4]: *** [spfquery] Error 1
make[4]: Leaving directory `/usr/local/opt/libspf2-1.2.5/src/spfquery'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/local/opt/libspf2-1.2.5/src/spfquery'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/opt/libspf2-1.2.5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/opt/libspf2-1.2.5'
make: *** [all] Error 2