Menu

ldconfig error with -lpq

2003-07-08
2003-07-12
  • Alexander Newald

    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

     
    • Kev Green

      Kev Green - 2003-07-09

      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...

       
    • Alexander Newald

      I removed -lpq and it works! Thanks

       

Log in to post a comment.