Bug 4630 - [review] HP-UX 11.11 build fails
Summary: [review] HP-UX 11.11 build fails
Status: RESOLVED FIXED
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: Building & Packaging (show other bugs)
Version: 3.1.0
Hardware: Other other
: P5 minor
Target Milestone: 3.1.2
Assignee: SpamAssassin Developer Mailing List
URL:
Whiteboard: ready to commit
Keywords:
: 4608 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-10-11 09:39 UTC by Justin Mason
Modified: 2017-12-29 05:50 UTC (History)
1 user (show)



Attachment Type Modified Status Actions Submitter/CLA Status
Patch for libspamc.h patch None John Madden [HasCLA]

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Mason 2005-10-11 09:39:41 UTC
This message about Mail-SpamAssassin was sent to you by guest <> via rt.cpan.org

Full context and any attached attachments can be found at:
<URL: https://rt.cpan.org/Ticket/Display.html?id=15006 >

On this system (HP-UX 11.11 with perl-5.8.0 and perl modules installed) make
fails with spamassassin 3.1, while spamassassin 3.04 works fine with MailScanner.

.....
.....
" <lib/Mail/SpamAssassin/Util/RegistrarBoundaries.pm
>blib/lib/Mail/SpamAssassin/Util/RegistrarBoundaries.pm
/bin/perl spamc/configure.pl --prefix="/opt/perl"
--sysconfdir="/etc/opt/mail/spamassassin"
--datadir="/opt/perl/share/spamassassin" --enable-ssl="no"
cd spamc
/opt/perl/bin/perl version.h.pl
version.h.pl: creating version.h
./configure --prefix=/opt/perl --sysconfdir=/etc/opt/mail/spamassassin
--datadir=/opt/perl/share/spamassassin --enable-ssl=no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... no
checking for unistd.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking sys/errno.h usability... yes
checking sys/errno.h presence... yes
checking for sys/errno.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking sysexits.h usability... yes
checking sysexits.h presence... yes
checking for sysexits.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking getopt.h usability... no
checking getopt.h presence... no
checking for getopt.h... no
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking openssl/crypto.h usability... yes
checking openssl/crypto.h presence... yes
checking for openssl/crypto.h... yes
checking for an ANSI C-conforming const... yes
checking for off_t... yes
checking for pid_t... yes
checking for uid_t in sys/types.h... yes
checking for size_t... yes
checking for SHUT_RD... yes
checking for socket in -lsocket... no
checking for connect in -linet... no
checking for t_accept in -lnsl... yes
checking for dlopen in -ldl... no
checking for socket... yes
checking for strdup... yes
checking for strtod... yes
checking for strtol... yes
checking for snprintf... yes
checking for shutdown... yes
checking for h_errno... yes
checking for optarg... no
checking for in_addr_t... yes
checking for INADDR_NONE... yes
checking for EX__MAX... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating spamc.h
config.status: creating config.h
make -f spamc/Makefile spamc/spamc
make[1]: Entering directory `/serna/depot/Mail-SpamAssassin-3.1.0'
gcc  -Wall -g -O2 spamc/spamc.c spamc/libspamc.c spamc/utils.c \
        -o spamc/spamc   -lnsl 
spamc/spamc.c: In function 'combine_args':
spamc/spamc.c:431: error: 'EX_CONFIG' undeclared (first use in this function)
spamc/spamc.c:431: error: (Each undeclared identifier is reported only once
spamc/spamc.c:431: error: for each function it appears in.)
make[1]: *** [spamc/spamc] Error 1
make[1]: Leaving directory `/serna/depot/Mail-SpamAssassin-3.1.0'
make: *** [spamc/spamc] Error 2

Regards
Alberto
Comment 1 Justin Mason 2005-10-11 09:40:10 UTC
aiming speculatively at 3.1.1ish
Comment 2 John Madden 2005-10-11 13:29:21 UTC
Created attachment 3183 [details]
Patch for libspamc.h

This should hopefully sort out the problem. Can you test the build with this
patch? It's a one-liner to check if _SYSEXITS_H has been defined, and if not,
to use the defines in libspamc.h.

I don't know how portable this fix is however (ie. if the exit status' in
libspamc.h are provided in a different header file on different arch's).
Comment 3 Theo Van Dinter 2006-03-15 02:07:32 UTC
does anyone have a hpux 11 machine that sees this problem and can try out the patch?

it looks like it should be ok though, "make test" passes, etc.

+1
Comment 4 Justin Mason 2006-04-01 22:58:53 UTC
+1 by me, too.  I'd like to see it work on HPUX first though
Comment 5 Loren Wilton 2006-04-02 01:00:39 UTC
How about posting a comment back on the Cpan tracker asking one of the people 
hitting the problem to try the patch and report back?
Comment 6 Justin Mason 2006-04-03 10:50:48 UTC
done
Comment 7 Sidney Markowitz 2006-04-09 02:36:49 UTC
I'm +1 as soon as anyone can verify this on a HP-UX 11.11 system
Comment 8 Donatas Vyzas 2006-04-18 14:15:56 UTC
I can confirm that the patch works with SpamAssasin 3.1.1 on my HP-UX 11.0 box.
Make is successful after applying the patch, and after "make install"
spamassasin works correctly. Thanks.
Comment 9 Justin Mason 2006-04-19 20:47:02 UTC
applied to trunk and b310
Comment 10 Bill Cole 2017-12-29 05:50:45 UTC
*** Bug 4608 has been marked as a duplicate of this bug. ***