Compile sendmail on hpux


 
Thread Tools Search this Thread
Operating Systems HP-UX Compile sendmail on hpux
# 1  
Old 01-09-2016
Compile sendmail on hpux

The sendmail on hp site is too old,and still support the bugged ssl3(poodle) even if enable tlsv1.
So i decide to compile sendmail by myself
i use this site.config.m4

Code:
define(`confCClibsmi', `gcc -fPIC')
define(`confCC',`/usr/local/bin/gcc -fPIC')
define(`confOPTIMIZE', ` -O3')
define(`confTIME_ZONE', `USE_TZ')dnl
define(`confEBINDIR',`/usr/lib')
define(`confMANROOT',`/usr/share/man')
define(`confMANROOTMAN',`/usr/share/man')
define(`confMBINDIR',`/usr/lib')
define(`confEBINDIR',`/usr/lib')
define(`confUBINDIR',`/usr/bin')
define(`confSBINDIR',`/usr/sbin')
define(`confSTDIR', `/etc/mail')
define(`confSHAREDLIBDIR', `/usr/lib')
define(`confMAPDEF', `-DNDBM -DNEWDB -DMAP_REGEX')dnl
dnl define(`confMANROOT', `/usr/share/man/cat')
dnl define(`confMANROOTMAN', `/usr/share/man/man')
define(`confNO_STATISTICS_INSTALL',`True')
define(`confMSP_QUEUE_DIR', `/var/spool/clientmqueue')
APPENDDEF(`confINCDIRS', `-I/usr/include')
APPENDDEF(`confINCDIRS',`-I/usr/local/include -I /opt/bdb/include')
APPENDDEF(`confLIBDIRS',`-L/opt/bdb/lib -L /usr/local/lib -L/usr/local/lib/hpux32')
APPENDDEF(`confLIBS',`-lldap -llber -ldb -lssl -lsasl2 -lcrypto -lgdbm')


dnl ### add BerkeleyDB hash 
dnl ### add BerkeleyDB hash support
APPENDDEF(`confLIBDIRS', `-L/opt/bdb/lib')
APPENDDEF(`confINCDIRS', `-I/opt/bdb/include')
APPENDDEF(`confENVDEF', `-DNEWDB')

dnl ### add NIS
APPENDDEF(`confENVDEF', `-DNIS')

dnl ### use our sendmail.cf path
dnl APPENDDEF(`confENVDEF', `-DUSE_VENDOR_CF_PATH')
APPENDDEF(`confENVDEF', `-D_PATH_SENDMAILCF=\"/etc/mail/sendmail.cf\"')
APPENDDEF(`confENVDEF', `-D_DIR_SENDMAILCF=\"/etc/mail/\"')

dnl ### add LDAP support
APPENDDEF(`conf_libsm_ENVDEF', `-DLDAPMAP')
APPENDDEF(`conf_sendmail_ENVDEF', `-DLDAPMAP')
APPENDDEF(`confLIBDIRS',`-L/opt/bdb/lib -L /usr/local/lib -L/usr/local/lib/hpux32')
APPENDDEF(`confLIBS',`-lldap -llber')

dnl ### add SASL support
APPENDDEF(`conf_sendmail_ENVDEF', `-DSASL=2')
APPENDDEF(`conf_sendmail_ENVDEF', `-D_FFR_TLS_1')
APPENDDEF(`conf_sendmail_LIBS', `-lsasl2')
APPENDDEF(`confINCDIRS', `-Iusr/local/include/sasl')

dnl ### add STARTTLS support
APPENDDEF(`confENVDEF',`-DSTARTTLS')
APPENDDEF(`confLIBS', `-lssl -lcrypto')

dnl ### add because they were already compiled in
APPENDDEF(`confENVDEF',`-DSTARTTLS')
APPENDDEF(`confLIBS', `-lssl -lcrypto')
dnl ### add because they were already compiled in
APPENDDEF(`confENVDEF', `-DSOCKETMAP')
APPENDDEF(`conf_sendmail_ENVDEF', `-DTCPWRAPPERS')
APPENDDEF(`conf_sendmail_LIBS', `-lwrap')"
APPENDDEF(`conf_sendmail_ENVDEF', `-DNETINET6')
APPENDDEF(`conf_libmilter_ENVDEF', `-DNETINET6')
APPENDDEF(`conf_libsm_ENVDEF', `-Iusr/include')
APPENDDEF(`conf_libsm_ENVDEF', `-DLDAPMAP')
APPENDDEF(`conf_libsm_LIBS', `-lldap')
APPENDDEF(`conf_libsm_LIBS', `-llber')
APPENDDEF(`conf_sendmail_ENVDEF', `-DLDAPMAP')
APPENDDEF(`conf_sendmail_LIBS', `-lldap')
APPENDDEF(`conf_sendmail_LIBS', `-llber')
APPENDDEF(`conf_editmap_LIBS', `-lldap')
APPENDDEF(`conf_editmap_LIBS', `-llber')
APPENDDEF(`conf_mail_local_LIBS', `-lldap')
APPENDDEF(`conf_mail_local_LIBS', `-llber')
APPENDDEF(`conf_mailstats_LIBS', `-lldap')
APPENDDEF(`conf_mailstats_LIBS', `-llber')
APPENDDEF(`conf_makemap_LIBS', `-lldap')
APPENDDEF(`conf_makemap_LIBS', `-llber')
APPENDDEF(`conf_praliases_LIBS', `-lldap')
APPENDDEF(`conf_praliases_LIBS', `-llber')
APPENDDEF(`conf_rmail_LIBS', `-lldap')
APPENDDEF(`conf_smrsh_LIBS', `-lldap')
APPENDDEF(`conf_smrsh_LIBS', `-llber')
APPENDDEF(`conf_vacation_LIBS', `-lldap')
APPENDDEF(`conf_vacation_LIBS', `-llber')
APPENDDEF(`conf_libmilter_ENVDEF', `-DMILTER')
APPENDDEF(`conf_sendmail_ENVDEF', `-DMILTER')
APPENDDEF(`conf_sendmail_ENVDEF', `-D_FFR_TLS_1')
APPENDDEF(`conf_libmilter_ENVDEF', `-DSM_CONF_POLL=1')
APPENDDEF(`conf_libmilter_ENVDEF', `-D_FFR_WORKERS_POOL=1')

And give me this error

Code:
ld: Can't find library for -ldbm

If i give the path for ldbm give me this error

Code:
ld: Mismatched ABI (not an ELF file) for -ldbm, found /usr/lib/libdbm.sl

I have tried the gcc compiler and the HP ansi compiler same error.
No way to compile the latest sendmail on hpux?

Last edited by Linusolaradm1; 01-09-2016 at 04:47 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Clarifying sendmail configuration - sendmail-client offline

Hi all, I have read about sendmail running as 2 separate process. 1 as a MSP, and the other as the real daemon or MTA. In my current configuration, the sendmail-client is disabled. Both submit.cf and sendmail.cf are left as default untouch I do not specified any mailhost... (3 Replies)
Discussion started by: javanoob
3 Replies

2. UNIX for Advanced & Expert Users

Sendmail questions, SCO 5.0.6 sendmail 8.11.0

I am running SCO 5.0.6 and using sendmail 8.11.0 and having issues with smtp authentication. When trying to send mail the following message will kick back. (reason: 530 5.7.1 Authentication required) 530 5.7.1 Authentication required Not sure what needs to be tweeked in sendmail.cf but I... (1 Reply)
Discussion started by: ziggy6
1 Replies

3. HP-UX

Compile krb5-appl 1.0.3 on hpux

asprintf.c: In function 'vasprintf': asprintf.c:58: error: 'SIZE_MAX' undeclared (first use in this function) asprintf.c:58: error: (Each undeclared identifier is reported only once asprintf.c:58: error: for each function it appears in.) Someone know how to fix? Thanks (2 Replies)
Discussion started by: Linusolaradm1
2 Replies

4. HP-UX

pwage-hpux-T for Trusted HPUX servers

I'm sharing this in case anybody needs it. Modified from the original solaris pwage script. This modified hpux script will check /etc/password file on hpux trusted systems search /tcb and grep the required u_succhg field. Calculate days to expiry and notify users via email. original solaris... (2 Replies)
Discussion started by: sparcguy
2 Replies

5. UNIX for Dummies Questions & Answers

Compiling gcc to compile make to compile yaboot

I have just installed OpenBSD on a 333MHz PPC iMac G3. It has a 6GB HDD that has been partitioned as 1GB MacOS 8.5.1, 3GB MacOS X 10.3.9, 2GB OpenBSD 4.8. I now need to install a bootloader so that my computer can recognize the OpenBSD partition at startup. I have been trying to install... (0 Replies)
Discussion started by: t04st3r
0 Replies

6. HP-UX

HPUx sendmail Question

why is that I need to go to /usr/sbin> in order to run send mail how can I run sendmail where ever folder I'm in... e.g. like /stuff/games/sendmail ksh: sendmail: not found (7 Replies)
Discussion started by: makaveli
7 Replies

7. Shell Programming and Scripting

Need Script to Use CPUs on a HPUX server to simulate Workload Manager on HPUX.

I am running HPUX and using WLM (workload manager). I want to write a script to fork CPUs to basically take CPUs from other servers to show that the communication is working and CPU licensing is working. Basically, I want to build a script that will use up CPU on a server. Any ideas? (2 Replies)
Discussion started by: cpolikowsky
2 Replies

8. Shell Programming and Scripting

HPUX - Sendmail and delete file

Hi, I am logging the output of bdf command to a file called /tmp/bdfoutput in HPUX server. I want a mail to be sent at 11.55 PM everyday and then the file needs to be rolled over as /tmp/bdfoutput.1 , /tmp/bdfoutput.2 ....etc and the new file has to be created. Please assist in getting the... (1 Reply)
Discussion started by: PrasannaKS
1 Replies

9. Programming

Why won't this compile on HPUX?

typedef struct { struct timeval t1; struct timeval time; } timer_t; cc: "timer.h", line 9: error 1584: Inconsistent type declaration: "timer_t". It compiles fine with gcc...:confused: Thanks for the help. (3 Replies)
Discussion started by: clockworks
3 Replies

10. Programming

compile xev on HPUX 10.20 - errors

Hello, i compiled the program xev under HPUX 10.20 and there are a lot of errors like this. Can anybody help me to fix this errors? make xev cc -O xev.c -o xev /usr/ccs/bin/ld: Unsatisfied symbols: XFree (code) XKeysymToString (code) XSelectInput (code) XOpenDisplay... (1 Reply)
Discussion started by: lan
1 Replies
Login or Register to Ask a Question