Operating System - HP-UX
1752633 Members
6138 Online
108788 Solutions
New Discussion юеВ

HPUX 11i + sendmail 8.12.4 + gcc3.02

 
SOLVED
Go to solution
Mark De Moor
Occasional Contributor

HPUX 11i + sendmail 8.12.4 + gcc3.02

I'am installing sendmail 8.12.4 on HPUX 11i with
gcc3.02 because i need the libmilter facility.

The sendmail m4 files are setup to use HP aCC instead of gcc.
I managed to compile with gcc but i am not sure
about all the compiler options & flags.

Does anybody already did this ?

There is a thread on aCC - GCC comparision
(CXX-DEV) where a gcc1.pdf on HP's devresource
is mentioned, but the link is now pointing to something else (C compiler design ??)

Does anybody still have this gcc1.pdf ?
With google i only found a Japanese one.

Tanx & Regards
Mark De Moo
To LDAP or not to LDAP
3 REPLIES 3
Mark De Moor
Occasional Contributor

Re: HPUX 11i + sendmail 8.12.4 + gcc3.02

Finally found this document at HP's DSPP.Hope it will help.

http://h21007.www2.hp.com/dspp/files/unprotected/devresource/Docs/TechPapers/OpenSource/gcc1.pdf


I'am still interested in other sendmail 8.12.4 installation-experiences.

Regards
Mark
To LDAP or not to LDAP
benoit Bruckert
Honored Contributor
Solution

Re: HPUX 11i + sendmail 8.12.4 + gcc3.02

Hi,
I did a compile of sendmail with gcc, not the same version, but sendmail 8.11.6 and gcc 2....
Easy to do :
in your source tree of sendmail, go to devtools/OS,
change the config of HPUX11.x :
Here's mine :
# more HP-UX.11.x
# $Id: HP-UX.11.x,v 8.11.18.3 2000/09/19 07:04:52 gshapiro Exp $

# +z is to generate position independant code
define(`confCC', `gcc -fPIC')
define(`confMAPDEF', `-DNEWDB -DNIS -DMAP_REGEX -DNDBM')
define(`confENVDEF', `-DV4FS -DHPUX11 -D_PATH_SENDMAIL=\"/usr/sbin/sendmail\"')
define(`confOPTIMIZE', `-O3')
define(`confLIBS', `-ldbm -lnsl')
define(`confSHELL', `/usr/bin/sh')
define(`confINSTALL', `${BUILDBIN}/install.sh')
define(`confSBINGRP', `mail')
define(`confEBINDIR', `/usr/sbin')

define(`confMTCCOPTS', `-D_POSIX_C_SOURCE=199506L')
define(`confMTLDOPTS', `-lpthread')
define(`confLD', `ld')
define(`confLDOPTS_SO', `-b')
define(`confCCOPTS_SO', `')

define(`confSONAME',`+h')
define(`confSHAREDLIB_EXT',`.sl')
APPENDDEF(`conf_sendmail_ENVDEF',`-D_FFR_MILTER=1')
APPENDDEF(`conf_libmilter_ENVDEF',`-D_FFR_MILTER=1')

Yep, I also use libmilter... (Amavis for ypu also ?).
In fact instead of cc -Ae +z, you place gcc -fPIC (PIC in uppercase !it's important !).
2 more lines for libmilter, and also the NEWDB support (You have to install Berkeley DB on your server before.., with proper links to header, lib).
Don't forget gcc in the $PATH,
And at the end, build the milter library and link or copy with /usr/lib and /usr/include.

Hope it'll work.
Une application mal pans├йe aboutit ├а une usine ├а gaze (GHG)
Mark De Moor
Occasional Contributor

Re: HPUX 11i + sendmail 8.12.4 + gcc3.02

Tanx,
it works.

because my .mc files are a little different, i made a ./devtools/Site/site.config.m4 file with my local settings:

define(`confCClibsmi', `gcc -fPIC')
define(`confCC',`/usr/local/bin/gcc -fPIC')
define(`confOPTIMIZE', ` -O3')
define(`confMAPDEF',`-DNEWDB -DMAP_REGEX')
define(`confMTCCOPTS', `-D_POSIX_C_SOURCE=199506L')
APPENDDEF(`conf_sendmail_ENVDEF',`-DMILTER')
APPENDDEF(`confINCDIRS',`-I/opt/db/include')
APPENDDEF(`confLIBDIRS',`-L/opt/db/lib')

I already had installed Berkeley NEWDB and i want to use libmilter for mimedefang +spamassassin+uvscan for virus & content filtering.

Regards
Mar
To LDAP or not to LDAP