hello all,
I was wondering if someone could be of assitance with my not
so skillfull attempts at making the application.
I have Slakware linux v.9, with mySQL v.4 working well.
(it works fine with Apache/PHP, as well as a MS Access application
I am developing). mySQL was obtained in compiled form, and installed
with the supplied script.
I can configure dbmail after placing the mySQL /bin location in
the PATH environment variable. It compiles fine after adding
#include <time.h> to misc.c
but linking generates lots of errors (relating to not found symobols)
here is a little of the result....
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -W -Wall -Wpointer-arith
-Wstrict-prototypes -O2 -c main.c
gcc -g -O2 -W -Wall -Wpointer-arith -Wstrict-prototypes -O2 -o
dbmail-smtp -L/usr/local/mysql/lib -lmysqlclient -lz -lcrypt -lnsl -lm
-lc -lnss_files -lnss_dns -lresolv -lc -lnss_files -lnss_dns -lresolv
config.o debug.o list.o dbmd5.o md5.o db.o misc.o mime.o header.o pipe.o
bounce.o forward.o main.o mysql/libmysqldbmail.a sort/libsortdbmail.a
auth/libauthdbmail.a
mysql/libmysqldbmail.a(dbmysql.o)(.text+0x13): In function `db_connect':
/usr/local/dbmail-2.0rc1/mysql/dbmysql.c:65: undefined reference to
`mysql_init'
mysql/libmysqldbmail.a(dbmysql.o)(.text+0x94):/usr/local/dbmail-2.0rc1/mysql/dbmysql.c:89:
undefined reference to `mysql_real_connect'
mysql/libmysqldbmail.a(dbmysql.o)(.text+0xae):/usr/local/dbmail-2.0rc1/mysql/dbmysql.c:93:
undefined reference to `mysql_error'
mysql/libmysqldbmail.a(dbmysql.o)(.text+0x13a): In function `db_num_rows':
/usr/local/dbmail-2.0rc1/mysql/dbmysql.c:115: undefined reference to
`mysql_num_rows'
the mySQL file does exist at /usr/local/mysql/lib/mysqlclient.a
and when I rename it so that the linker cant find the file, I get
a simple "file not found" type error from the linker. So the linker
CAN find the file needed - but when it does there is some sort of problem.
Is it a problem relating to improperly setting up the library system
(should I use ldconfig?) after installing mySQL?
Maybe it's something else.
But I am out of ideas at this stage.
gratefull for any help,
Peter.