hi.
i'm attempting to recompile sendmail after applying the patches. in sendmail when i try to ./Build, as it says in the README, it's looking for sm_mysql in ../../include/sendmail/sm_mysql.h which normally wouldn't be much of a problem, except the ../../ takes you out of the sendmail source root. am i trying to build from the wrong place?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
ok i got past that point. i'm using mysql4.0.4, is that a problem?? i'm getting to the point where it's getting include files from mysql and getting the following errors
cc -o sendmail -L/usr/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 mime.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 sysexits.o timers.o tls.o trace.o udb.o usersmtp.o util.o version.o mysql_sendmail.o /home/staff/shad0/build/sendmail-8.12.9/obj.Linux.2.4.20-18.7.i686/libsmutil/libsmutil.a /home/staff/shad0/build/sendmail-8.12.9/obj.Linux.2.4.20-18.7.i686/libsm/libsm.a -ldb -lresolv -lcrypt -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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You need to include the compression libraries which mysql relies on. Add "-lz" to the line that mentions "-lmysqlclient" in the sendmail Makefile and try a recompile.
That should sort it. I'm sure this was mentioned elsewhere in the forums, so I'm going to add it to the "FAQ" for the patch shortly.
K.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
kyrian, you are the man. it built fine. had some references issues (i scripted the entire session if you'd like to examine them). i haven't gotten to the restart of the new binary or the sql table setup yet. also, i have a script that will do everything for you if anybody is confused, or is like me and simply forgets to do things like `touch develtools/Site/site.config.m4`
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
ok. well i am still at the same spot i was. well almost. i have the mysql user setup, the database created, the table users is in place. however i have no clue what the alias / virtusertable setup is supposed to be.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hi.
i'm attempting to recompile sendmail after applying the patches. in sendmail when i try to ./Build, as it says in the README, it's looking for sm_mysql in ../../include/sendmail/sm_mysql.h which normally wouldn't be much of a problem, except the ../../ takes you out of the sendmail source root. am i trying to build from the wrong place?
that should read in sendmail/ when i try to ./Build
here's the output of the build:
[root@megatron sendmail]# pwd
/home/staff/shad0/build/sendmail-8.12.9/sendmail
[root@megatron sendmail]# ./Build
Configuration: pfx=, os=Linux, rel=2.4.20-18.7, rbase=2, rroot=2.4.20-18, arch=i686, sfx=, variant=optimized
Making in /home/staff/shad0/build/sendmail-8.12.9/obj.Linux.2.4.20-18.7.i686/sendmail
cc -O2 -I. -I../../include -DNEWDB -c -o alias.o alias.c
In file included from alias.c:15:
../../include/sendmail/sm_mysql.h:3:19: mysql.h: No such file or directory
make: *** [alias.o] Error 1
[root@megatron sendmail]# cat ../devtools/Site/site.config.m4
APPENDDEF(`confENVDEF', `-DMYSQLMAP')
APPENDDEF(`confINCDIRS',`--I/usr/include/mysql')
APPENDDEF(`confLIBSEARCH', `mysqlclient')
APPENDDEF(`confLIBDIRS', `-L/usr/lib/mysql/')
APPENDDEF(`confLIBS', `-lmysqlclient -lz -lpq')
define(`confMANROOT', `/usr/share/man/man')
define(`conf_mail_local_SRCADD', `mysql_local.c')
[root@megatron sendmail]#
ok i got past that point. i'm using mysql4.0.4, is that a problem?? i'm getting to the point where it's getting include files from mysql and getting the following errors
cc -o sendmail -L/usr/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 mime.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 sysexits.o timers.o tls.o trace.o udb.o usersmtp.o util.o version.o mysql_sendmail.o /home/staff/shad0/build/sendmail-8.12.9/obj.Linux.2.4.20-18.7.i686/libsmutil/libsmutil.a /home/staff/shad0/build/sendmail-8.12.9/obj.Linux.2.4.20-18.7.i686/libsm/libsm.a -ldb -lresolv -lcrypt -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
You need to include the compression libraries which mysql relies on. Add "-lz" to the line that mentions "-lmysqlclient" in the sendmail Makefile and try a recompile.
That should sort it. I'm sure this was mentioned elsewhere in the forums, so I'm going to add it to the "FAQ" for the patch shortly.
K.
kyrian, you are the man. it built fine. had some references issues (i scripted the entire session if you'd like to examine them). i haven't gotten to the restart of the new binary or the sql table setup yet. also, i have a script that will do everything for you if anybody is confused, or is like me and simply forgets to do things like `touch develtools/Site/site.config.m4`
ok. well i am still at the same spot i was. well almost. i have the mysql user setup, the database created, the table users is in place. however i have no clue what the alias / virtusertable setup is supposed to be.
erm, devtools. that's what i get for being <TAB> reliant