libpq is part of the postgresql stuff. You can modify the makefile to remove the reference to -lpq if you're only using the MySQL stuff, and haven't applied the postgresql patch...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello, I try to install the patch (mysql) to sendmail 8.12.9 but get this error:
ranlib libsm.a
cc -O2 -I. -I../../include -I/usr/local/mysql/include/mysql -I/usr/include/mysql -DNEWDB -DUDBMYSQL -DMYSQLMAP -DPGSQLMAP -DMILTER -c -o t-event.o t-event.c
cc -o t-event -L/usr/lib/mysql/ -L/usr/local/mysql/lib/mysql/ t-event.o libsm.a -ldb -lresolv -lcrypt -lnsl -lmysqlclient -ldl -lmysqlclient -lz -lpq
usr/bin/ld: cannot find -lpq
collect2: ld returned 1 exit status
make[1]: *** [t-event] Error 1
make[1]: Leaving directory `/INSTALL/sendmail-8.12.9/obj.Linux.2.4.20.i686/libsm'
What's missing?
Thanks,
Alexander Newald
libpq is part of the postgresql stuff. You can modify the makefile to remove the reference to -lpq if you're only using the MySQL stuff, and haven't applied the postgresql patch...
I removed -lpq and it works! Thanks