i think this may be mysql library error because it can be compiled normally on my old machine with
Sendmail: 8.12.5
Patch: 8.12.5
MySQL: 3.23.33
OS: 2.2.14 (RH62)
error log:
cc -o sendmail -L/usr/lib/mysql -L/usr/lib main.o alias.o arpadate.o bf.o colle
ct.o conf.o control.o convtime.o daemon.o deliver.o domain.o envelope.o err.o he
aders.o macro.o map.o mci.o milter.o mime.o parseaddr.o queue.o readcf.o recipie
nt.o sasl.o savemail.o sfsasl.o shmticklib.o sm_resolve.o srvrsmtp.o stab.o stat
s.o sysexits.o timers.o tls.o trace.o udb.o usersmtp.o util.o version.o mysql_se
ndmail.o -lsasl /usr/local/src/not_installed/sendmail-8.12.5/obj.Linux.2.4.
18-24.8.0custom.i686/libsmutil/libsmutil.a /usr/local/src/not_installed/sendmail
-8.12.5/obj.Linux.2.4.18-24.8.0custom.i686/libsm/libsm.a -ldb -lresolv -lcrypt
-lnsl -lmysqlclient -ldl -lmysqlclient
err.o: In function `sm_errstring':
err.o(.text+0x123f): `sys_errlist' is deprecated; use `strerror' or `strerror_r'
instead
err.o(.text+0x1236): `sys_nerr' is deprecated; use `strerror' or `strerror_r' in
stead
/usr/lib/mysql/libmysqlclient.a(my_compress.o): In function `my_uncompress':
my_compress.o(.text+0xaa): undefined reference to `uncompress'
/usr/lib/mysql/libmysqlclient.a(my_compress.o): In function `my_compress_alloc':
my_compress.o(.text+0x13c): undefined reference to `compress'
collect2: ld returned 1 exit status
make: *** [sendmail] Error 1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is because you don't have the zlib header files and libraries installed, or you haven't modified the makefile in the appropriate way to ensure they are compiled in.
Try adding "-Lz" to the "CFLAGS" section in the sendmail Makefile, and that should solve the problem.
Yours,
Kev.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
thanx, that solve error :)
i have zlib installed but don't have -lz in CFGAGS.
may be you add it to your patch ?
and...
how about typo in mysql_local.c mentioned in another topic ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sendmail: 8.12.5
Patch: 8.12.5
MySQL: 3.23.53a
OS: 2.4.9-31.3 (RH72)
I recieve the following when trying to apply the patch:
Making in /tmp/sm/sendmail-8.12.5/obj.Linux.2.4.9-31.3RS.i686/sendmail
cc -o sendmail -L/usr/lib/mysql/ -L/usr/local/mysql/lib/mysql/ -L/usr/local/mysql/lib/mysql/ main.o alias.o arpadate.o bf.o
collect.o conf.o control.o convtime.o daemon.o deliver.o domain.o envelope.o err.o headers.o macro.o map.o mci.o milter.o mim
e.o parseaddr.o queue.o readcf.o recipient.o sasl.o savemail.o sfsasl.o shmticklib.o sm_resolve.o srvrsmtp.o stab.o stats.o s
ysexits.o timers.o tls.o trace.o udb.o usersmtp.o util.o version.o mysql_sendmail.o /tmp/sm/sendmail-8.12.5/obj.Linux.2.
4.9-31.3RS.i686/libsmutil/libsmutil.a /tmp/sm/sendmail-8.12.5/obj.Linux.2.4.9-31.3RS.i686/libsm/libsm.a -ldb -lresolv -lcryp
t -lnsl -lmysqlclient -ldl -lmysqlclient
/usr/lib/mysql//libmysqlclient.a(my_compress.o): In function `my_uncompress':
my_compress.o(.text+0xaa): undefined reference to `uncompress'
/usr/lib/mysql//libmysqlclient.a(my_compress.o): In function `my_compress_alloc':
my_compress.o(.text+0x13c): undefined reference to `compress'
collect2: ld returned 1 exit status
make: *** [sendmail] Error 1
[root@rs01 sendmail]#
i have exactly the same problem
Sendmail: 8.12.5
Patch: 8.12.5
MySQL: 3.23.55a
OS: 2.4.18-24.8 (RH80)
i think this may be mysql library error because it can be compiled normally on my old machine with
Sendmail: 8.12.5
Patch: 8.12.5
MySQL: 3.23.33
OS: 2.2.14 (RH62)
error log:
cc -o sendmail -L/usr/lib/mysql -L/usr/lib main.o alias.o arpadate.o bf.o colle
ct.o conf.o control.o convtime.o daemon.o deliver.o domain.o envelope.o err.o he
aders.o macro.o map.o mci.o milter.o mime.o parseaddr.o queue.o readcf.o recipie
nt.o sasl.o savemail.o sfsasl.o shmticklib.o sm_resolve.o srvrsmtp.o stab.o stat
s.o sysexits.o timers.o tls.o trace.o udb.o usersmtp.o util.o version.o mysql_se
ndmail.o -lsasl /usr/local/src/not_installed/sendmail-8.12.5/obj.Linux.2.4.
18-24.8.0custom.i686/libsmutil/libsmutil.a /usr/local/src/not_installed/sendmail
-8.12.5/obj.Linux.2.4.18-24.8.0custom.i686/libsm/libsm.a -ldb -lresolv -lcrypt
-lnsl -lmysqlclient -ldl -lmysqlclient
err.o: In function `sm_errstring':
err.o(.text+0x123f): `sys_errlist' is deprecated; use `strerror' or `strerror_r'
instead
err.o(.text+0x1236): `sys_nerr' is deprecated; use `strerror' or `strerror_r' in
stead
/usr/lib/mysql/libmysqlclient.a(my_compress.o): In function `my_uncompress':
my_compress.o(.text+0xaa): undefined reference to `uncompress'
/usr/lib/mysql/libmysqlclient.a(my_compress.o): In function `my_compress_alloc':
my_compress.o(.text+0x13c): undefined reference to `compress'
collect2: ld returned 1 exit status
make: *** [sendmail] Error 1
This is because you don't have the zlib header files and libraries installed, or you haven't modified the makefile in the appropriate way to ensure they are compiled in.
Try adding "-Lz" to the "CFLAGS" section in the sendmail Makefile, and that should solve the problem.
Yours,
Kev.
thanx, that solve error :)
i have zlib installed but don't have -lz in CFGAGS.
may be you add it to your patch ?
and...
how about typo in mysql_local.c mentioned in another topic ?