Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sendmail Compilation Error

Status
Not open for further replies.

jbruns

IS-IT--Management
Sep 5, 2003
3
US
Hello-
I have been struggling with this issue for several days now, any suggestions would be greatly appreciated.

I am running RedHat
Linux 9 and attempting to compile sendmail-8.12.9 with cyrus-sasl-2.1.15
support. I have the BerkelyDB version 4.1 installed.

When issuing the command 'sh Build' or 'sh Build -c' I returned the
following errors:

************************************************************************
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libsasl.a(client.o)(.text+0x964):
In function `sasl_client_start':
: undefined reference to `__ctype_b'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libsasl.a(client.o)(.text+0x9b6):
In function `sasl_client_start':
: undefined reference to `__ctype_b'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libsasl.a(client.o)(.text+0x9ee):
In function `sasl_client_start':
: undefined reference to `__ctype_b'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libsasl.a(checkpw.o)(.text+0x2a2):
In function `pam_verify_password':
: undefined reference to `pam_start'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libsasl.a(checkpw.o)(.text+0x2ba):
In function `pam_verify_password':
: undefined reference to `pam_authenticate'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libsasl.a(checkpw.o)(.text+0x2cf):
In function `pam_verify_password':
: undefined reference to `pam_end'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libsasl.a(config.o)(.text+0x7e):
In function `sasl_config_init':
: undefined reference to `__ctype_b'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libsasl.a(config.o)(.text+0x131):
In function `sasl_config_init':
: undefined reference to `__ctype_b'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libsasl.a(config.o)(.text+0x192):
In function `sasl_config_init':
: undefined reference to `__ctype_b'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libsasl.a(config.o)(.text+0x1ab):
In function `sasl_config_init':
: undefined reference to `__ctype_tolower'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libsasl.a(config.o)(.text+0x3a2):
In function `sasl_config_getint':
: undefined reference to `__ctype_b'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libsasl.a(db_gdbm.o)(.text+0x1e0):
In function `getsecret':
: undefined reference to `gdbm_open'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libsasl.a(db_gdbm.o)(.text+0x211):
In function `getsecret':
: undefined reference to `gdbm_fetch'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libsasl.a(db_gdbm.o)(.text+0x220):
In function `getsecret':
: undefined reference to `gdbm_close'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libsasl.a(db_gdbm.o)(.text+0x36c):
In function `putsecret':
: undefined reference to `gdbm_open'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libsasl.a(db_gdbm.o)(.text+0x3bb):
In function `putsecret':
: undefined reference to `gdbm_store'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libsasl.a(db_gdbm.o)(.text+0x3dd):
In function `putsecret':
: undefined reference to `gdbm_delete'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libsasl.a(db_gdbm.o)(.text+0x3f2):
In function `putsecret':
: undefined reference to `gdbm_close'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libdb.a(env_open.o)(.text+0x4c1):
In function `__dbenv_config':
: undefined reference to `__ctype_b'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libdb.a(env_open.o)(.text+0xffb):
In function `__db_parse':
: undefined reference to `__ctype_b'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libdb.a(env_open.o)(.text+0x1033):
In function `__db_parse':
: undefined reference to `__ctype_b'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libdb.a(env_open.o)(.text+0x105b):
In function `__db_parse':
: undefined reference to `__ctype_b'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libdb.a(env_open.o)(.text+0x17a8):
In function `__db_tmp_open':
: undefined reference to `__ctype_b'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libdb.a(env_region.o)(.text+0xacc):
more undefined references to `__ctype_b' follow
collect2: ld returned 1 exit status
make: *** [sendmail] Error 1
************************************************************************

Attempting to correct this, I issue the command
'sh Build -I/usr/local/BerkeleyDB.4.1/include -I/usr/include/sasl
-I/usr/local/cyrus-sasl-2.1.15/include -L/usr/local/cyrus-sasl-2.1.15/lib
-L/usr/local/BerkeleyDB.4.1/lib -L/usr/lib -L/lib -L/usr/lib/sasl
-L/usr/lib/sasl2 -L/usr/local/lib/sasl2 -c'

trying to include every lib
and include directory I can think of. My 'devtools/Site/site.config.m4'
consists of the following:
*************************************************************************
APPENDDEF(`confMAPDEF', `-DNEWDB')
APPENDDEF(`conf_sendmail_ENVDEF', `-DSASL')
APPENDDEF(`conf_sendmail_LIBS', `-lsasl')
APPENDDEF(`conf_sendmail_ENVDEF', `-DSMTP -DMILTER')
APPENDDEF(`conf_libmilter_ENVDEF', `-D_FFR_MILTER_ROOT_UNSAFE')
*************************************************************************

Upon running the above command the following errors are returned:
*************************************************************************
srvrsmtp.o(.text+0xe6b): In function `smtp':
: undefined reference to `sasl_errdetail'
srvrsmtp.o(.text+0x451c): In function `smtp':
: undefined reference to `sasl_errdetail'
/usr/lib/libsasl.a(client.o)(.text+0x964): In function `sasl_client_start':
: undefined reference to `__ctype_b'
/usr/lib/libsasl.a(client.o)(.text+0x9b6): In function `sasl_client_start':
: undefined reference to `__ctype_b'
/usr/lib/libsasl.a(client.o)(.text+0x9ee): In function `sasl_client_start':
: undefined reference to `__ctype_b'
/usr/lib/libsasl.a(checkpw.o)(.text+0x2a2): In function
`pam_verify_password':
: undefined reference to `pam_start'
/usr/lib/libsasl.a(checkpw.o)(.text+0x2ba): In function
`pam_verify_password':
: undefined reference to `pam_authenticate'
/usr/lib/libsasl.a(checkpw.o)(.text+0x2cf): In function
`pam_verify_password':
: undefined reference to `pam_end'
/usr/lib/libsasl.a(config.o)(.text+0x7e): In function `sasl_config_init':
: undefined reference to `__ctype_b'
/usr/lib/libsasl.a(config.o)(.text+0x131): In function `sasl_config_init':
: undefined reference to `__ctype_b'
/usr/lib/libsasl.a(config.o)(.text+0x192): In function `sasl_config_init':
: undefined reference to `__ctype_b'
/usr/lib/libsasl.a(config.o)(.text+0x1ab): In function `sasl_config_init':
: undefined reference to `__ctype_tolower'
/usr/lib/libsasl.a(config.o)(.text+0x3a2): In function `sasl_config_getint':
: undefined reference to `__ctype_b'
/usr/lib/libsasl.a(db_gdbm.o)(.text+0x1e0): In function `getsecret':
: undefined reference to `gdbm_open'
/usr/lib/libsasl.a(db_gdbm.o)(.text+0x211): In function `getsecret':
: undefined reference to `gdbm_fetch'
/usr/lib/libsasl.a(db_gdbm.o)(.text+0x220): In function `getsecret':
: undefined reference to `gdbm_close'
/usr/lib/libsasl.a(db_gdbm.o)(.text+0x36c): In function `putsecret':
: undefined reference to `gdbm_open'
/usr/lib/libsasl.a(db_gdbm.o)(.text+0x3bb): In function `putsecret':
: undefined reference to `gdbm_store'
/usr/lib/libsasl.a(db_gdbm.o)(.text+0x3dd): In function `putsecret':
: undefined reference to `gdbm_delete'
/usr/lib/libsasl.a(db_gdbm.o)(.text+0x3f2): In function `putsecret':
: undefined reference to `gdbm_close'
/usr/local/BerkeleyDB.4.1/lib/libdb.so: undefined reference to
`pthread_condattr_setpshared'
/usr/local/BerkeleyDB.4.1/lib/libdb.so: undefined reference to
`pthread_mutexattr_destroy'
/usr/local/BerkeleyDB.4.1/lib/libdb.so: undefined reference to
`pthread_mutexattr_setpshared'
/usr/local/BerkeleyDB.4.1/lib/libdb.so: undefined reference to
`pthread_mutexattr_init'
/usr/local/BerkeleyDB.4.1/lib/libdb.so: undefined reference to
`pthread_mutex_trylock'
collect2: ld returned 1 exit status
make: *** [sendmail] Error 1
**********************************************************************

I have attempted to recomplile db with posixmutexes enable without luck.
Any suggestions or support would be greatly appreciated. Thanks so much in
advance.

 
For other users who may have the same problem, how did you solve it?

//Daniel
 
Hi jbruns,

May I know how you solve it? I have the same problem in compiling sasl + sendmail in FreeBSD 4.8.
Please advice.

Thank you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top