A NOTE has been added to this issue. 
====================================================================== 
http://www.dbmail.org/mantis/view.php?id=489 
====================================================================== 
Reported By:                metalchaos
Assigned To:                
====================================================================== 
Project:                    DBMail
Issue ID:                   489
Category:                   General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
target:                      
====================================================================== 
Date Submitted:             10-Jan-07 20:50 CET
Last Modified:              22-Jan-07 11:52 CET
====================================================================== 
Summary:                    inet_aton fix for Solaris
Description: 
Hi,

I was trying to compile dbmail on Solaris 10 and I got the following
error:

Undefined                       first referenced
 symbol                             in file
inet_aton                           ./.libs/libdbmail.so
ld: fatal: Symbol referencing errors. No output written to
.libs/dbmail-smtp


After searching in the mailing lists I've found out that the workaround is
to add -lresolv in LIBS variable in Makefile.
Could be possible to add this in a future release?
====================================================================== 

---------------------------------------------------------------------- 
 aaron - 18-Jan-07 21:26  
---------------------------------------------------------------------- 
I'm looking for an autoconf macro that'll take care of figuring out these
additional LDFLAGS for Solaris. I will get it into SVN as soon as I find a
good one. 

---------------------------------------------------------------------- 
 aaron - 19-Jan-07 01:31  
---------------------------------------------------------------------- 
Please check out current SVN, run 'autoreconf -f -i', and then run
./configure with your favorite options. Please post the output of the
SOCKETS: line.

I am expecting that you will see -lresolv and maybe some other libraries
listed there. I haven't connected this into the build process yet, just
collecting information right now. Thanks! 

---------------------------------------------------------------------- 
 metalchaos - 19-Jan-07 18:36  
---------------------------------------------------------------------- 
-bash-3.00# autoreconf -f -i
/opt/csw/share/aclocal/libmcrypt.m4:17: warning: underquoted definition of
AM_PATH_LIBMCRYPT
  run info '(automake)Extending aclocal'
  or see
http://sources.redhat.com/automake/automake.html#Extending-aclocal
Putting files in AC_CONFIG_AUX_DIR, `buildtools'.
/opt/csw/share/aclocal/libmcrypt.m4:17: warning: underquoted definition of
AM_PATH_LIBMCRYPT
  run info '(automake)Extending aclocal'
  or see
http://sources.redhat.com/automake/automake.html#Extending-aclocal
configure.in: installing `buildtools/install-sh'
configure.in: installing `buildtools/missing'
modules/Makefile.am:22: bad characters in variable name `'
modules/Makefile.am:23: AM_CFLAGS multiply defined in condition TRUE ...
modules/Makefile.am:21: ... `AM_CFLAGS' previously defined here
modules/Makefile.am: installing `buildtools/depcomp'
Makefile.am: installing `buildtools/compile'
autoreconf: automake failed with exit status: 1 

---------------------------------------------------------------------- 
 aaron - 19-Jan-07 19:44  
---------------------------------------------------------------------- 
Try newer autotools? Otherwise, Paul could update the autotools files in
SVN so that you can just do a fresh checkout. 

---------------------------------------------------------------------- 
 metalchaos - 20-Jan-07 07:52  
---------------------------------------------------------------------- 
I've had autotools 2.59. Now I've compiled version 2.61 and it still gives
me the same error. 

---------------------------------------------------------------------- 
 aaron - 20-Jan-07 18:59  
---------------------------------------------------------------------- 
Did you make any local chances to the autoconf scripts, like configure.in,
any Makefile.am, etc? 

---------------------------------------------------------------------- 
 metalchaos - 21-Jan-07 18:45  
---------------------------------------------------------------------- 
Nothing was changed and the same thing happened in linux too. 

---------------------------------------------------------------------- 
 paul - 21-Jan-07 19:45  
---------------------------------------------------------------------- 
autoconf 2.59 is OK, but what automake version are you using? Please use
automake-1.9 

---------------------------------------------------------------------- 
 metalchaos - 21-Jan-07 21:03  
---------------------------------------------------------------------- 
1.9.6 both in solaris and linux:

-bash-3.00# automake --version
automake (GNU automake) 1.9.6
Written by Tom Tromey <[EMAIL PROTECTED]>.

 

---------------------------------------------------------------------- 
 aaron - 22-Jan-07 08:36  
---------------------------------------------------------------------- 
Automake files have been updated in SVN. Please check out and try again! 

---------------------------------------------------------------------- 
 metalchaos - 22-Jan-07 10:02  
---------------------------------------------------------------------- 
Nothing changed... I checked out the svn from this address:
https://svn.ic-s.nl/svn/dbmail/trunk/dbmail

I hope is the right one. 

---------------------------------------------------------------------- 
 paul - 22-Jan-07 10:10  
---------------------------------------------------------------------- 
eh no! Use https://svn.ic-s.nl/svn/dbmail/branches/dbmail_2_2_branch/ 

---------------------------------------------------------------------- 
 metalchaos - 22-Jan-07 10:23  
---------------------------------------------------------------------- 
Sorry about that... but I've taken that link from the wiki
(http://www.dbmail.org/dokuwiki/doku.php?id=compile_svn ).

autoreconf runs and the sockests line is:

SOCKETS:       -lresolv

 

---------------------------------------------------------------------- 
 lkneschke - 22-Jan-07 11:52  
---------------------------------------------------------------------- 
Hello!

Just a short note.

I always compile the solaris packages using this CFLAGS:

export CFLAGS="-lresolv"; ./configure; make; ...

This works on sparc and intel architecture. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
10-Jan-07 20:50 metalchaos     New Issue                                    
18-Jan-07 21:26 aaron          Note Added: 0001726                          
19-Jan-07 01:31 aaron          Note Added: 0001734                          
19-Jan-07 18:36 metalchaos     Note Added: 0001737                          
19-Jan-07 19:44 aaron          Note Added: 0001738                          
20-Jan-07 07:52 metalchaos     Note Added: 0001739                          
20-Jan-07 18:59 aaron          Note Added: 0001740                          
21-Jan-07 18:45 metalchaos     Note Added: 0001743                          
21-Jan-07 19:45 paul           Note Added: 0001744                          
21-Jan-07 21:03 metalchaos     Note Added: 0001745                          
21-Jan-07 21:03 metalchaos     Note Edited: 0001745                         
22-Jan-07 08:36 aaron          Note Added: 0001746                          
22-Jan-07 10:02 metalchaos     Note Added: 0001748                          
22-Jan-07 10:10 paul           Note Added: 0001749                          
22-Jan-07 10:23 metalchaos     Note Added: 0001750                          
22-Jan-07 10:23 metalchaos     Note Edited: 0001750                         
22-Jan-07 11:52 lkneschke      Note Added: 0001751                          
======================================================================

_______________________________________________
Dbmail-dev mailing list
Dbmail-dev@dbmail.org
http://twister.fastxs.net/mailman/listinfo/dbmail-dev

Reply via email to