Operating System - HP-UX
1844812 Members
1977 Online
110233 Solutions
New Discussion

Re: cannot compile successfully sendmail::milter

 
Michael Goerke
Occasional Contributor

cannot compile successfully sendmail::milter

I'm trying to install Sendmail::Milter on an HP9000/B1000 box, HP-UX 11i. Perl was taken from HP (perl, v5.8.2 built for PA-RISC1.1-thread-multi, HP c-compiler used), sendmail
is in its last version (8.12.11), and Sendmail:Milter is 0.18.

First I prepared sendmail appending to site.config.m4:
APPENDDEF(`conf_sendmail_ENVDEF', `-DMILTER')
APPENDDEF(`conf_libmilter_ENVDEF', `- D_FFR_MILTER_ROOT_UNSAFE')
I cd-ed into ~/limilter and ran "sh Build" to build libmilter.a. Also the "sh build" for sendmail worked fine.

But compiling Sendmail:Milter failed as appended below.

Any ideas out there, or is sendmail::milter not used on HP-UX?

TIA,

Michael Goerke

===============================================
$ perl -v

This is perl, v5.8.2 built for PA-RISC1.1-thread-multi (with 25 registered patches, see perl -V for more detail)

Copyright 1987-2003, Larry Wall

Binary build 808 provided by ActiveState Corp. http://www.ActiveState.com
ActiveState is a division of Sophos.
Built Dec 7 2003 13:25:38

...
$ perl Makefile.PL \
/opt/sendmail-8.12.11 \
/opt/sendmail-8.12.11/obj.HP-UX.11.11.9000-785
Checking if your kit is complete...
Looks good
Writing Makefile for Sendmail::Milter
$ gmake
cp Milter.pm blib/lib/Sendmail/Milter.pm
AutoSplitting blib/lib/Sendmail/Milter.pm (blib/lib/auto/Sendmail/Milter)
cp sample.pl blib/lib/Sendmail/sample.pl
/opt/perl/bin/perl /opt/perl/lib/5.8.2/ExtUtils/xsubpp -typemap /opt/perl/lib/5.8.2/ExtUtils/typemap -typemap typemap Milter.xs > Milter.xsc && mv Milter.xsc Milter.c
cc -c -I/opt/sendmail-8.12.11/sendmail -I/opt/sendmail-8.12.11/include -D_POSIX_C_SOURCE=199506L -D_REENTRANT -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings -DNO_HASH_SEED -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fast +Onolimit +Opromote_indirect_calls +DAportable +DS2.0 -DVERSION=\"0.18\" -DXS_VERSION=\"0.18\" +Z "-I/opt/perl/lib/5.8.2/PA-RISC1.1-thread-multi/CORE" Milter.c
cc: "/usr/include/sys/socket.h", line 504: warning 562: Redeclaration of "sendfile" with a different storage class specifier: "sendfile" will have internal linkage.
cc: "/usr/include/sys/socket.h", line 505: warning 562: Redeclaration of "sendpath" with a different storage class specifier: "sendpath" will have internal linkage.
cc: "Milter.xs", line 445: warning 604: Pointers are not assignment-compatible.
cc: "Milter.xs", line 445: warning 563: Argument #3 is not the correct type.
cc: "Milter.xs", line 445: warning 604: Pointers are not assignment-compatible.
cc -c -I/opt/sendmail-8.12.11/sendmail -I/opt/sendmail-8.12.11/include -D_POSIX_C_SOURCE=199506L -D_REENTRANT -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings -DNO_HASH_SEED -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fast +Onolimit +Opromote_indirect_calls +DAportable +DS2.0 -DVERSION=\"0.18\" -DXS_VERSION=\"0.18\" +Z "-I/opt/perl/lib/5.8.2/PA-RISC1.1-thread-multi/CORE" intpools.c
cc: "/usr/include/sys/socket.h", line 504: warning 562: Redeclaration of "sendfile" with a different storage class specifier: "sendfile" will have internal linkage.
cc: "/usr/include/sys/socket.h", line 505: warning 562: Redeclaration of "sendpath" with a different storage class specifier: "sendpath" will have internal linkage.
cc: "intpools.c", line 463: warning 604: Pointers are not assignment-compatible.
cc: "intpools.c", line 463: warning 563: Argument #3 is not the correct type.
cc -c -I/opt/sendmail-8.12.11/sendmail -I/opt/sendmail-8.12.11/include -D_POSIX_C_SOURCE=199506L -D_REENTRANT -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings -DNO_HASH_SEED -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fast +Onolimit +Opromote_indirect_calls +DAportable +DS2.0 -DVERSION=\"0.18\" -DXS_VERSION=\"0.18\" +Z "-I/opt/perl/lib/5.8.2/PA-RISC1.1-thread-multi/CORE" callbacks.c
cc: "/usr/include/sys/socket.h", line 504: warning 562: Redeclaration of "sendfile" with a different storage class specifier: "sendfile" will have internal linkage.
cc: "/usr/include/sys/socket.h", line 505: warning 562: Redeclaration of "sendpath" with a different storage class specifier: "sendpath" will have internal linkage.
cc: "callbacks.c", line 262: error 1000: Unexpected symbol: "do".
cc: panic 2017: Cannot recover from earlier errors, terminating.
gmake: *** [callbacks.o] Error 1

2 REPLIES 2
Steve Steel
Honored Contributor

Re: cannot compile successfully sendmail::milter

Hi

Patch Name: PHNE_29887

Patch Description: s700_800 11.11 cumulative ARPA Transport patch

Creation Date: 03/12/02

Post Date: 04/01/30

Hardware Platforms - OS Releases:
s700: 11.11
s800: 11.11


While building a 32-bit application with large files
support, "sys/socket.h" generates warnings due to
redeclaration of sendfile and sendpath prototypes.


There are a lot of dependencies but this should help

Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Michael Goerke
Occasional Contributor

Re: cannot compile successfully sendmail::milter

Steve,

I applied the patch, but it didn't change anything. I will now re-build perl with gcc and try it again.

Thanks anyway,

Michael