On Wed, Apr 4, 2007, Boey Maun Suang <[EMAIL PROTECTED]> said:

> On 04/04/2007, at 15:49, Aaron Stone wrote:

>> Go ahead and remove the "db_paramt_t _db_params" from dbmailtypes.h,
>> then go into db.c and remove the "extern" from the definition of the
>> same. Then rebuild, and please report back if that gets you up and
>> running!
> 
> ... removing *both* "db_paramt_t _db_params" statements from  
> dbmailtypes.h and the matching "extern" from db.c fixed it!

I committed this change to SVN and marked the original bug closed.

>I've encountered the same error while trying to create  
> other ports (e.g. libsieve), and it seems that the problem only  

Please email any libSieve porting problems to me directly.

> occurs when gcc is called on Mac OS X with the -dynamiclib flag; for 

Interesting.
 
> example the successful build (after making the above patches), also  
> contained this output:
> 
> <snip>
> /usr/bin/gcc-4.0 -g -O2 -I/opt/local/include/glib-2.0 -I/opt/local/ 
> lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/ 
> gmime-2.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/ 
> include -I/opt/local/include -W -Wall -Wpointer-arith -Wstrict- 
> prototypes -o .libs/dbmail-util maintenance.o  -L/opt/local/ 
> lib ./.libs/libdbmail.dylib /opt/local/lib/libgmime-2.0.dylib /opt/ 
> local/lib/libgmodule-2.0.dylib /opt/local/lib/libgthread-2.0.dylib - 
> lz /opt/local/lib/libgobject-2.0.dylib /opt/local/lib/ 
> libglib-2.0.dylib /opt/local/lib/libintl.dylib -lc /opt/local/lib/ 
> libiconv.dylib
> /usr/bin/ld: warning multiple definitions of symbol _quiet
> maintenance.o definition of _quiet in section (__DATA,__data)
> ./.libs/libdbmail.dylib(libdbmail_la-dbmail-user.o) definition of _quiet
> /usr/bin/ld: warning multiple definitions of symbol _verbose
> maintenance.o definition of _verbose in section (__DATA,__data)
> ./.libs/libdbmail.dylib(libdbmail_la-dbmail-user.o) definition of  
> _verbose
> /usr/bin/ld: warning multiple definitions of symbol _yes_to_all
> maintenance.o definition of _yes_to_all in section (__DATA,__data)
> ./.libs/libdbmail.dylib(libdbmail_la-dbmail-user.o) definition of  
> _yes_to_all
> /usr/bin/ld: warning multiple definitions of symbol _no_to_all
> maintenance.o definition of _no_to_all in section (__DATA,__data)
> ./.libs/libdbmail.dylib(libdbmail_la-dbmail-user.o) definition of  
> _no_to_all
> /usr/bin/ld: warning multiple definitions of symbol _reallyquiet
> maintenance.o definition of _reallyquiet in section (__DATA,__data)
> ./.libs/libdbmail.dylib(libdbmail_la-dbmail-user.o) definition of  
> _reallyquiet
> creating dbmail-util
> </snip>

Do you get the same set of errors repeated for export.c and sievecmd.c?

> Since I'm here, I'll also mention one unrelated problem that I  
> noticed after the successful build: libdbmail was built with the  
> extension ".dylib", as appropriate for Mac OS X, but libauth_sql and  
> libsqlite were built with the extension ".so"; I imagine that this  
> should be fixed.

This might actually be correct. The system links libdbmail, but we're
using Glib to open libauth_foo and libsort_bar. If the applications work,
then whatever libtool has chosen to do is probably correct.

> Thank you very much for your help and quick response.

Thank you for helping port to Mac OS X! Will you be maintaining public
packages once everything is building reliably?

Aaron

_______________________________________________
Dbmail-dev mailing list
[email protected]
http://twister.fastxs.net/mailman/listinfo/dbmail-dev

Reply via email to