Jacques,

Your make does not appear to be pulling in all of the objects on the command line. Check the definition of UNIONE_OBJECTS, DIRS and LIB in the Makefile. You need to have run build.sh first to generate the proper Makefile. Its probably better to put the lines I suggested in Makefile.concept, then run build.sh. This will make the changes more permanent.

If it is configured properly, when run the make, you should see a line like this

cc -Wall -O2 -D_BSD_SOURCE -D_SVID_SOURCE mb2db.c -o mb2db list.o \ debug.o mysql/dbmysql.o dbmd5.o md5.o mysql/dbauthmysql.o mime.o config.o \ -L/usr/lib/mysql/ -I/usr/include/mysql/ -lmysqlclient -lcrypto

It may vary slightly depending on where you defined the location of your mysql libraries and includes when you ran build.sh. I am using the dbmail-1.0 source.

John.

Jacques Beaudoin wrote:

Thanks John for mb2db.c

When i do the make i get compiling errors
Any idea where to look

Thanks



[EMAIL PROTECTED] dbmail]# make mb2db
cc -Wall -O2 -D_BSD_SOURCE -D_SVID_SOURCE    mb2db.c   -o mb2db
/tmp/ccb3yJbn.o: In function `main':
/tmp/ccb3yJbn.o(.text+0x3e): undefined reference to `configure_debug'
/tmp/ccb3yJbn.o(.text+0x56): undefined reference to `ReadConfig'
/tmp/ccb3yJbn.o(.text+0x62): undefined reference to `_db_pass'
/tmp/ccb3yJbn.o(.text+0x67): undefined reference to `_db_user'
/tmp/ccb3yJbn.o(.text+0x6c): undefined reference to `_db_db'
/tmp/ccb3yJbn.o(.text+0x71): undefined reference to `_db_host'
/tmp/ccb3yJbn.o(.text+0x76): undefined reference to `GetDBParams'
/tmp/ccb3yJbn.o(.text+0x7e): undefined reference to `db_connect'
/tmp/ccb3yJbn.o: In function `processmbox':
/tmp/ccb3yJbn.o(.text+0x137): undefined reference to `auth_user_exists'
/tmp/ccb3yJbn.o: In function `create_folder':
/tmp/ccb3yJbn.o(.text+0x30e): undefined reference to `db_findmailbox'
/tmp/ccb3yJbn.o(.text+0x330): undefined reference to `db_createmailbox'
/tmp/ccb3yJbn.o: In function `process_mboxfile':
/tmp/ccb3yJbn.o(.text+0x3cd): undefined reference to `trace'
/tmp/ccb3yJbn.o(.text+0x522): undefined reference to `db_insert_message_block' /tmp/ccb3yJbn.o(.text+0x62d): undefined reference to `db_insert_message_block'
/tmp/ccb3yJbn.o(.text+0x6a9): undefined reference to `db_insert_message'
/tmp/ccb3yJbn.o(.text+0x753): undefined reference to `db_insert_message_block'
/tmp/ccb3yJbn.o(.text+0x7da): undefined reference to `db_update_message'
/tmp/ccb3yJbn.o(.text+0x801): undefined reference to `trace'
/tmp/ccb3yJbn.o(.text+0x818): undefined reference to `db_get_mailboxid'
/tmp/ccb3yJbn.o(.text+0x864): undefined reference to `db_set_msgflag'
/tmp/ccb3yJbn.o(.text+0x895): undefined reference to `query'
/tmp/ccb3yJbn.o(.text+0x8a3): undefined reference to `query'
/tmp/ccb3yJbn.o(.text+0x8a8): undefined reference to `db_query'
/tmp/ccb3yJbn.o(.text+0x8bd): undefined reference to `trace'
/tmp/ccb3yJbn.o(.text+0x940): undefined reference to `db_insert_message_block'
/tmp/ccb3yJbn.o(.text+0x9c7): undefined reference to `db_update_message'
/tmp/ccb3yJbn.o(.text+0x9ee): undefined reference to `trace'
/tmp/ccb3yJbn.o(.text+0xa05): undefined reference to `db_get_mailboxid'
/tmp/ccb3yJbn.o(.text+0xa51): undefined reference to `db_set_msgflag'
/tmp/ccb3yJbn.o(.text+0xa88): undefined reference to `query'
/tmp/ccb3yJbn.o(.text+0xa96): undefined reference to `query'
/tmp/ccb3yJbn.o(.text+0xa9b): undefined reference to `db_query'
/tmp/ccb3yJbn.o(.text+0xab0): undefined reference to `trace'
collect2: ld returned 1 exit status


_______________________________________________
Dbmail mailing list
Dbmail@dbmail.org
https://mailman.fastxs.nl/mailman/listinfo/dbmail


Reply via email to