[milters] Archive

Lists Index Date Thread Search

Article: 1441
From: Matthew Huff
Date: 2007-02-09 15:48:23 -0500
Subject: Libsnert build error with socket2.h/socket2.c

Removal...........: milters-request@milter.info?subject=remove
More information..: http://www.milter.info/#Support
--------------------------------------------------------

Anyone have this problem before?

Environment Solaris 10 Sparc
Sendmail 8.13.8
Berkley DB4.4
SunCC v5.8
libsnert-1.62


Doing a "make build" in the lib directory gets this error:

make[1]: Leaving directory
`/usr/local/src/mail/snert/com/snert/src/lib/sys'
make[1]: Entering directory
`/usr/local/src/mail/snert/com/snert/src/lib/io'

***************************************************************
=3D=3D> /usr/local/src/mail/snert/com/snert/src/lib/io
***************************************************************

cc -D_REENTRANT -I /usr/local/include/. -I../../../include  -o socket2.o
-c socket2.c
"../../../include/com/snert/lib/io/socket2.h", line 105: syntax error
before or at: SOCKET
"socket2.c", line 82: syntax error before or at: fd
"socket2.c", line 82: warning: undefined or missing type for: fd
"socket2.c", line 82: warning: undefined or missing type for: long
"socket2.c", line 82: warning: undefined or missing type for: int
"socket2.c", line 111: improper member use: fd
"socket2.c", line 116: improper member use: fd
"socket2.c", line 144: improper member use: fd
"socket2.c", line 147: improper member use: fd
"socket2.c", line 173: improper member use: fd
"socket2.c", line 180: improper member use: fd
"socket2.c", line 254: warning: argument #2 is incompatible with
prototype:
        prototype: pointer to unsigned char :
"../../../include/com/snert/lib/net/network.h", line 197
        argument : pointer to char
"socket2.c", line 295: warning: argument #1 is incompatible with
prototype:
        prototype: pointer to unsigned char :
"../../../include/com/snert/lib/net/network.h", line 133
        argument : pointer to char
"socket2.c", line 472: improper member use: fd
"socket2.c", line 472: undefined symbol: INVALID_SOCKET
"socket2.c", line 473: undefined symbol: UPDATE_ERRNO
"socket2.c", line 492: improper member use: fd
"socket2.c", line 521: improper member use: fd
"socket2.c", line 530: improper member use: fd
"socket2.c", line 549: improper member use: fd
"socket2.c", line 581: improper member use: fd
"socket2.c", line 611: improper member use: fd
"socket2.c", line 656: improper member use: fd
"socket2.c", line 657: undefined symbol: UPDATE_ERRNO
"socket2.c", line 670: improper member use: fd
"socket2.c", line 684: improper member use: fd
"socket2.c", line 776: improper member use: fd
"socket2.c", line 816: improper member use: fd
"socket2.c", line 816: improper member use: fd
"socket2.c", line 816: undefined symbol: INVALID_SOCKET
"socket2.c", line 818: improper member use: fd
"socket2.c", line 818: undefined symbol: INVALID_SOCKET
"socket2.c", line 826: improper member use: fd
"socket2.c", line 827: improper member use: fd
"socket2.c", line 850: improper member use: fd
"socket2.c", line 867: improper member use: fd
"socket2.c", line 871: improper member use: fd
"socket2.c", line 872: improper member use: fd
"socket2.c", line 873: warning: implicit function declaration:
closesocket
"socket2.c", line 873: improper member use: fd
"socket2.c", line 918: improper member use: fd
"socket2.c", line 919: undefined symbol: UPDATE_ERRNO
"socket2.c", line 965: improper member use: fd
"socket2.c", line 966: undefined symbol: UPDATE_ERRNO
"socket2.c", line 1016: improper member use: fd
"socket2.c", line 1017: undefined symbol: UPDATE_ERRNO
"socket2.c", line 1061: improper member use: fd
"socket2.c", line 1062: undefined symbol: UPDATE_ERRNO
"socket2.c", line 1231: improper member use: fd
cc: acomp failed for socket2.c
make[1]: *** [socket2.o] Error 2
make[1]: Leaving directory
`/usr/local/src/mail/snert/com/snert/src/lib/io'
make[1]: Entering directory
`/usr/local/src/mail/snert/com/snert/src/tools'

***************************************************************
=3D=3D> /usr/local/src/mail/snert/com/snert/src/lib/../tools
***************************************************************

cc -D_REENTRANT -I /usr/local/include/. -I./../../include  -L
/usr/local/lib/. -L./../../lib  -o smtpout smtpout.c -lsnert -lmilter
-lpam -lresolv -lsocket -lnsl -lrt -lpthread -ldb-4.4 -ldl=20
"./../../include/com/snert/lib/io/socket2.h", line 105: syntax error
before or at: SOCKET
"smtpout.c", line 133: warning: implicit function declaration: syslog
"smtpout.c", line 135: warning: argument #2 is incompatible with
prototype:
        prototype: pointer to unsigned char :
"./../../include/com/snert/lib/io/socket2.h", line 521
        argument : pointer to char
"smtpout.c", line 254: warning: implicit function declaration:
setlogmask
"smtpout.c", line 282: warning: implicit function declaration: openlog
"smtpout.c", line 361: warning: argument #2 is incompatible with
prototype:
        prototype: pointer to unsigned char :
"./../../include/com/snert/lib/io/socket2.h", line 521
        argument : pointer to char
cc: acomp failed for smtpout.c
make[1]: *** [smtpout] Error 2
make[1]: Leaving directory
`/usr/local/src/mail/snert/com/snert/src/tools'
make: *** [build] Error 2
----
Matthew Huff       | One Manhattanville Rd
Dir of Operations  | Purchase, NY 10577
OTA LLC            | Phone: 914-460-4039
www.otaotr.com     | Fax: 914-460-4139  =20


Lists Index Date Thread Search