We fixed this problem yesterday, so the next will release will not have the problem anymore :)

Ilja

Roel Rozendaal - IC&S wrote:
Hi Alan,

the problem is in the order of the command-line options given to gcc; the libraries have to be on the end of the line (i know, it doesn't make sense but that's just ld :-). Quoting from an earlier message on this list:

-- quote
I experienced the same problem on my mac; i solved it by replacing the order of the arguments of gcc. The linker options are passed to gcc by means of a variable: $xxx_LDFLAGS where xxx stands for the program to build (dbmail-smtp, dbmail-imapd, etc). Somewhere in your (automake'd-) makefile you can find the dbmail targets on lines like this:

dbmail-smtp: $(dbmail_smtp_OBJECTS) $(dbmail_smtp_DEPENDENCIES)
    @rm -f dbmail-smtp
$(LINK) $(dbmail_smtp_LDFLAGS) $(dbmail_smtp_OBJECTS) $(dbmail_smtp_LDADD) $(LIBS)

moving the _LDFLAGS variable to the end solved the problem on my system.
-- /quote

This problem is fixed in cvs now and will be in the next release candidate.

regards roel



Op 12-feb-04 om 10:54 heeft Alan Lam het volgende geschreven:

This is a multi-part message in MIME format.

------=_NextPart_000_0093_01C3F191.4A400F50
Content-Type: text/plain;
    charset="us-ascii"
Content-Transfer-Encoding: 7bit

Dear all,

I am new to dbmail.  I want to install the dbmail2.0 rc2.  The database
I use is Mysql4.0.X.  Platform is Linux 9.0

When I use configure and make all, the following errors appear:

....
make[2]: Entering directory `/home/wflow/dbmail-2.0rc2'
gcc  -g -O2 -W -Wall -Wpointer-arith -Wstrict-prototypes -O2  -o
dbmail-smtp -L'/vol1/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+0xf): In function `db_connect':
/home/wflow/dbmail-2.0rc2/mysql/dbmysql.c:65: undefined reference to
`mysql_init'
mysql/libmysqldbmail.a(dbmysql.o)(.text+0x72):/home/wflow/dbmail -2.0rc2/
mysql/dbmysql.c:89: undefined reference to `mysql_real_connect'
mysql/libmysqldbmail.a(dbmysql.o)(.text+0x91):/home/wflow/dbmail -2.0rc2/
mysql/dbmysql.c:93: undefined reference to `mysql_error'
mysql/libmysqldbmail.a(dbmysql.o)(.text+0x101): In function
`db_num_rows':
/home/wflow/dbmail-2.0rc2/mysql/dbmysql.c:115: undefined reference to
`mysql_num_rows'
mysql/libmysqldbmail.a(dbmysql.o)(.text+0x121): In function
`db_num_fields':
/home/wflow/dbmail-2.0rc2/mysql/dbmysql.c:123: undefined reference to
`mysql_num_fields'
mysql/libmysqldbmail.a(dbmysql.o)(.text+0x149): In function
`db_free_result':
/home/wflow/dbmail-2.0rc2/mysql/dbmysql.c:129: undefined reference to
`mysql_free_result'
mysql/libmysqldbmail.a(dbmysql.o)(.text+0x1d2): In function
`db_get_result':
/home/wflow/dbmail-2.0rc2/mysql/dbmysql.c:155: undefined reference to
`mysql_data_seek'
mysql/libmysqldbmail.a(dbmysql.o)(.text+0x1de):/home/wflow/dbmail -2.0rc2
/mysql/dbmysql.c:156: undefined reference to `mysql_fetch_row'
mysql/libmysqldbmail.a(dbmysql.o)(.text+0x234): In function
`db_disconnect':
/home/wflow/dbmail-2.0rc2/mysql/dbmysql.c:169: undefined reference to
`mysql_close'
mysql/libmysqldbmail.a(dbmysql.o)(.text+0x248): In function
`db_check_connection':
/home/wflow/dbmail-2.0rc2/mysql/dbmysql.c:175: undefined reference to
`mysql_ping'
mysql/libmysqldbmail.a(dbmysql.o)(.text+0x30b): In function `db_query':
/home/wflow/dbmail-2.0rc2/mysql/dbmysql.c:209: undefined reference to
`mysql_real_query'
mysql/libmysqldbmail.a(dbmysql.o)(.text+0x349):/home/wflow/dbmail -2.0rc2
/mysql/dbmysql.c:235: undefined reference to `mysql_store_result'
mysql/libmysqldbmail.a(dbmysql.o)(.text+0x3a2):/home/wflow/dbmail -2.0rc2
/mysql/dbmysql.c:214: undefined reference to `mysql_error'
mysql/libmysqldbmail.a(dbmysql.o)(.text+0x419): In function
`db_escape_string':
/home/wflow/dbmail-2.0rc2/mysql/dbmysql.c:248: undefined reference to
`mysql_real_escape_string'
mysql/libmysqldbmail.a(dbmysql.o)(.text+0x52a): In function
`db_get_length':
/home/wflow/dbmail-2.0rc2/mysql/dbmysql.c:292: undefined reference to
`mysql_data_seek'
mysql/libmysqldbmail.a(dbmysql.o)(.text+0x536):/home/wflow/dbmail -2.0rc2
/mysql/dbmysql.c:293: undefined reference to `mysql_fetch_row'
mysql/libmysqldbmail.a(dbmysql.o)(.text+0x552):/home/wflow/dbmail -2.0rc2
/mysql/dbmysql.c:296: undefined reference to `mysql_fetch_lengths'
mysql/libmysqldbmail.a(dbmysql.o)(.text+0x574): In function
`db_get_affected_rows':
/home/wflow/dbmail-2.0rc2/mysql/dbmysql.c:301: undefined reference to
`mysql_affected_rows'
mysql/libmysqldbmail.a(dbmysql.o)(.text+0x2a4): In function
`db_insert_result':
/home/wflow/dbmail-2.0rc2/mysql/dbmysql.c:190: undefined reference to
`mysql_insert_id'
collect2: ld returned 1 exit status
make[2]: *** [dbmail-smtp] Error 1
make[2]: Leaving directory `/home/wflow/dbmail-2.0rc2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/wflow/dbmail-2.0rc2'
make: *** [all-recursive-am] Error 2

the following is result of 'ls -l /vol1/mysql/lib/'
total 1856
-rw-r--r--    1 mysql    mysql       10806 Jul 18  2003 libdbug.a
-rw-r--r--    1 mysql    mysql      879270 Oct 25  2001 libmygcc.a
-rw-r--r--    1 mysql    mysql      309596 Jul 18  2003  libmysqlclient.a
-rw-r--r--    1 mysql    mysql      317484 Jul 18  2003
libmysqlclient_r.a
-rw-r--r--    1 mysql    mysql      113614 Jul 18  2003 libmystrings.a
-rw-r--r--    1 mysql    mysql      239190 Jul 18  2003 libmysys.a

the following is result of 'uname -a'
Linux gz2 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST 2003 i686 i686  i386
GNU/Linux

the following is result of 'gcc -v'
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit
--host=i386-redhat-linux
Thread model: posix
gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)

We use gcc coming with the OS.

What is my problem?   Thank you in advance.

Alan


------=_NextPart_000_0093_01C3F191.4A400F50
Content-Type: text/html;
    charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<TITLE>Message</TITLE>

<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D889434909-12022004><FONT size=3D2>Dear =
all,</FONT></SPAN></DIV>
<DIV><SPAN class=3D889434909-12022004><FONT =
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D889434909-12022004><FONT size=3D2>I am new to =
dbmail.&nbsp; I=20
want to install the dbmail2.0 rc2.&nbsp; The database I use is =
Mysql4.0.X.&nbsp;=20
Platform is Linux 9.0</FONT></SPAN></DIV>
<DIV><SPAN class=3D889434909-12022004><FONT =
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D889434909-12022004><FONT size=3D2>When I use =
configure and make=20
all, the following errors appear:</FONT></SPAN></DIV>
<DIV><SPAN class=3D889434909-12022004><FONT =
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D889434909-12022004><FONT =
size=3D2>...</FONT></SPAN></DIV>
<DIV><SPAN class=3D889434909-12022004><FONT size=3D2>make[2]: Entering  =
directory=20
`/home/wflow/dbmail-2.0rc2'<BR>gcc&nbsp; -g -O2 -W -Wall -Wpointer-arith =

-Wstrict-prototypes -O2&nbsp; -o dbmail-smtp -L'/vol1/mysql/lib' =
-lmysqlclient=20
-lz -lcrypt -lnsl -lm -lc -lnss_files -lnss_dns -lresolv -lc -lnss_files =

-lnss_dns -lresolv&nbsp;&nbsp; config.o debug.o list.o dbmd5.o md5.o =
db.o misc.o=20
mime.o header.o pipe.o bounce.o forward.o main.o mysql/libmysqldbmail.a=20
sort/libsortdbmail.a auth/libauthdbmail.a=20
<BR>mysql/libmysqldbmail.a(dbmysql.o)(.text+0xf): In function=20
`db_connect':<BR>/home/wflow/dbmail-2.0rc2/mysql/dbmysql.c:65: undefined =

reference to=20
`mysql_init'<BR>mysql/libmysqldbmail.a(dbmysql.o)(.text+0x72):/home/ wflow=
/dbmail-2.0rc2/mysql/dbmysql.c:89:=20
undefined reference to=20
`mysql_real_connect'<BR>mysql/libmysqldbmail.a(dbmysql.o)(.text+0x91): /ho=
me/wflow/dbmail-2.0rc2/mysql/dbmysql.c:93:=20
undefined reference to=20
`mysql_error'<BR>mysql/libmysqldbmail.a(dbmysql.o)(.text+0x101): In =
function=20
`db_num_rows':<BR>/home/wflow/dbmail-2.0rc2/mysql/dbmysql.c:115: =
undefined=20
reference to =
`mysql_num_rows'<BR>mysql/libmysqldbmail.a(dbmysql.o)(.text+0x121):=20
In function =
`db_num_fields':<BR>/home/wflow/dbmail-2.0rc2/mysql/dbmysql.c:123:=20
undefined reference to=20
`mysql_num_fields'<BR>mysql/libmysqldbmail.a(dbmysql.o)(.text+0x149): In =

function =
`db_free_result':<BR>/home/wflow/dbmail-2.0rc2/mysql/dbmysql.c:129:=20
undefined reference to=20
`mysql_free_result'<BR>mysql/libmysqldbmail.a(dbmysql.o)(.text+0x1d2):  =
In=20
function =
`db_get_result':<BR>/home/wflow/dbmail-2.0rc2/mysql/dbmysql.c:155:=20
undefined reference to=20
`mysql_data_seek'<BR>mysql/libmysqldbmail.a(dbmysql.o)(.text+0x1de):/ home=
/wflow/dbmail-2.0rc2/mysql/dbmysql.c:156:=20
undefined reference to=20
`mysql_fetch_row'<BR>mysql/libmysqldbmail.a(dbmysql.o)(.text+0x234): In =
function=20
`db_disconnect':<BR>/home/wflow/dbmail-2.0rc2/mysql/dbmysql.c:169: =
undefined=20
reference to =
`mysql_close'<BR>mysql/libmysqldbmail.a(dbmysql.o)(.text+0x248): In=20
function=20
`db_check_connection':<BR>/home/wflow/dbmail-2.0rc2/mysql/dbmysql.c: 175: =

undefined reference to=20
`mysql_ping'<BR>mysql/libmysqldbmail.a(dbmysql.o)(.text+0x30b): In =
function=20
`db_query':<BR>/home/wflow/dbmail-2.0rc2/mysql/dbmysql.c:209: undefined=20
reference to=20
`mysql_real_query'<BR>mysql/libmysqldbmail.a(dbmysql.o)(.text+0x349):/ hom=
e/wflow/dbmail-2.0rc2/mysql/dbmysql.c:235:=20
undefined reference to=20
`mysql_store_result'<BR>mysql/ libmysqldbmail.a(dbmysql.o)(.text+0x3a2):/h=
ome/wflow/dbmail-2.0rc2/mysql/dbmysql.c:214:=20
undefined reference to=20
`mysql_error'<BR>mysql/libmysqldbmail.a(dbmysql.o)(.text+0x419): In =
function=20
`db_escape_string':<BR>/home/wflow/dbmail-2.0rc2/mysql/dbmysql.c:248: =
undefined=20
reference to=20
`mysql_real_escape_string'<BR>mysql/ libmysqldbmail.a(dbmysql.o)(.text+0x5=
2a): In=20
function =
`db_get_length':<BR>/home/wflow/dbmail-2.0rc2/mysql/dbmysql.c:292:=20
undefined reference to=20
`mysql_data_seek'<BR>mysql/libmysqldbmail.a(dbmysql.o)(.text+0x536):/ home=
/wflow/dbmail-2.0rc2/mysql/dbmysql.c:293:=20
undefined reference to=20
`mysql_fetch_row'<BR>mysql/libmysqldbmail.a(dbmysql.o)(.text+0x552):/ home=
/wflow/dbmail-2.0rc2/mysql/dbmysql.c:296:=20
undefined reference to=20
`mysql_fetch_lengths'<BR>mysql/ libmysqldbmail.a(dbmysql.o)(.text+0x574): =
In=20
function=20
`db_get_affected_rows':<BR>/home/wflow/dbmail-2.0rc2/mysql/dbmysql.c: 301:=
=20
undefined reference to=20
`mysql_affected_rows'<BR>mysql/ libmysqldbmail.a(dbmysql.o)(.text+0x2a4): =
In=20
function =
`db_insert_result':<BR>/home/wflow/dbmail-2.0rc2/mysql/dbmysql.c:190: =20
undefined reference to `mysql_insert_id'<BR>collect2: ld returned 1 exit =

status<BR>make[2]: *** [dbmail-smtp] Error 1<BR>make[2]: Leaving =
directory=20
`/home/wflow/dbmail-2.0rc2'<BR>make[1]: *** [all-recursive] Error =
1<BR>make[1]:=20
Leaving directory `/home/wflow/dbmail-2.0rc2'<BR>make: *** =
[all-recursive-am]=20
Error 2<BR></FONT></SPAN></DIV>
<DIV><SPAN class=3D889434909-12022004><FONT size=3D2>the following is =
result of 'ls=20
-l /vol1/mysql/lib/'<BR>total 1856<BR>-rw-r--r--&nbsp;&nbsp;&nbsp; 1=20
mysql&nbsp;&nbsp;&nbsp; mysql&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 10806 =
Jul=20
18&nbsp; 2003 libdbug.a<BR>-rw-r--r--&nbsp;&nbsp;&nbsp; 1=20
mysql&nbsp;&nbsp;&nbsp; mysql&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 879270 Oct  =
25&nbsp;=20
2001 libmygcc.a<BR>-rw-r--r--&nbsp;&nbsp;&nbsp; 1 =
mysql&nbsp;&nbsp;&nbsp;=20
mysql&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 309596 Jul 18&nbsp; 2003=20
libmysqlclient.a<BR>-rw-r--r--&nbsp;&nbsp;&nbsp; 1 =
mysql&nbsp;&nbsp;&nbsp;=20
mysql&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 317484 Jul 18&nbsp; 2003=20
libmysqlclient_r.a<BR>-rw-r--r--&nbsp;&nbsp;&nbsp; 1 =
mysql&nbsp;&nbsp;&nbsp;=20
mysql&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 113614 Jul 18&nbsp; 2003=20
libmystrings.a<BR>-rw-r--r--&nbsp;&nbsp;&nbsp; 1 mysql&nbsp;&nbsp;&nbsp; =

mysql&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 239190 Jul 18&nbsp; 2003=20
libmysys.a</FONT></SPAN></DIV>
<DIV><SPAN class=3D889434909-12022004><FONT =
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D889434909-12022004><FONT size=3D2>the following is =
result of=20
'uname -a'<BR>Linux gz2 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST 2003 =
i686=20
i686 i386 GNU/Linux</FONT></SPAN></DIV>
<DIV><SPAN class=3D889434909-12022004><FONT =
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D889434909-12022004><FONT size=3D2><SPAN=20
class=3D889434909-12022004><FONT size=3D2>the following is result of=20
'</FONT></SPAN>gcc -v'<BR>Reading specs from=20
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/specs<BR>Configured with: =
.../configure=20
--prefix=3D/usr --mandir=3D/usr/share/man --infodir=3D/usr/share/info =
--enable-shared=20
--enable-threads=3Dposix --disable-checking --with-system-zlib=20
--enable-__cxa_atexit --host=3Di386-redhat-linux<BR>Thread model: =
posix<BR>gcc=20
version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)</FONT></SPAN></DIV>
<DIV><SPAN class=3D889434909-12022004><FONT =
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D889434909-12022004><FONT size=3D2>We use gcc coming  =
with the=20
OS.</FONT></SPAN></DIV>
<DIV><SPAN class=3D889434909-12022004><FONT =
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D889434909-12022004><FONT size=3D2>What is my =
problem?&nbsp;&nbsp;=20
Thank you in advance.</FONT></SPAN></DIV>
<DIV><SPAN class=3D889434909-12022004><FONT =
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D889434909-12022004><FONT size=3D2><FONT=20
face=3D&#23435;&#20307;>Alan</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=3D889434909-12022004><FONT size=3D2><FONT=20
face=3D&#23435;&#20307;></FONT>&nbsp;</DIV></FONT></SPAN></BODY></HTML>

------=_NextPart_000_0093_01C3F191.4A400F50--


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


_________________________
R.A. Rozendaal
IC&S
T: +31 30 63 55 736
F: +31 30 63 55 731
www.ic-s.nl



_________________________
R.A. Rozendaal
IC&S
T: +31 30 63 55 736
F: +31 30 63 55 731
www.ic-s.nl



_________________________
R.A. Rozendaal
IC&S
T: +31 30 63 55 736
F: +31 30 63 55 731
www.ic-s.nl

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

Reply via email to