Now I'm trying to build sqlbox on Mac OS X and getting "multiple definitions" errors like the following. Anyone know what could be causing this??

gcc -g -O2 -DDARWIN=1 -I/usr/local/include/kannel -g -O2 -DDARWIN=1 -I/Developer/SDKs/MacOSX10.4u.sdk/usr/include -I/sw/include/libxml2 -I/sw/include -I/usr/include/openssl -I/sw/include/mysql -o sqlbox sqlbox.o sqlbox_mysql.o sqlbox_pgsql.o sqlbox_sql.o -L/Developer/ SDKs/MacOSX10.4u.sdk/usr/lib -L/usr/local/lib/kannel -lgw -lwap - lresolv -L/sw/lib -lxml2 -lpthread -liconv -L/usr/lib -lcrypto - lssl -L/sw/lib/mysql /sw/lib/mysql/libmysqlclient.dylib -lz -lm - lgwlib
/usr/bin/ld: multiple definitions of symbol _uuid_clear
/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libpthread.dylib(clear.So) definition of _uuid_clear /usr/local/lib/kannel/libgwlib.a(gw_uuid.o) definition of _uuid_clear in section (__TEXT,__text)
/usr/bin/ld: multiple definitions of symbol _uuid_copy
/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libpthread.dylib(copy.So) definition of _uuid_copy /usr/local/lib/kannel/libgwlib.a(gw_uuid.o) definition of _uuid_copy in section (__TEXT,__text)
/usr/bin/ld: multiple definitions of symbol _uuid_generate
/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libpthread.dylib (gen_uuid.So) definition of _uuid_generate /usr/local/lib/kannel/libgwlib.a(gw_uuid.o) definition of _uuid_generate in section (__TEXT,__text)
/usr/bin/ld: multiple definitions of symbol _uuid_generate_random
/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libpthread.dylib (gen_uuid.So) definition of _uuid_generate_random /usr/local/lib/kannel/libgwlib.a(gw_uuid.o) definition of _uuid_generate_random in section (__TEXT,__text)
/usr/bin/ld: multiple definitions of symbol _uuid_generate_time
/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libpthread.dylib (gen_uuid.So) definition of _uuid_generate_time /usr/local/lib/kannel/libgwlib.a(gw_uuid.o) definition of _uuid_generate_time in section (__TEXT,__text)
/usr/bin/ld: multiple definitions of symbol _uuid_parse
/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libpthread.dylib(parse.So) definition of _uuid_parse /usr/local/lib/kannel/libgwlib.a(gw_uuid.o) definition of _uuid_parse in section (__TEXT,__text)
/usr/bin/ld: multiple definitions of symbol _uuid_unparse
/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libpthread.dylib (unparse.So) definition of _uuid_unparse /usr/local/lib/kannel/libgwlib.a(gw_uuid.o) definition of _uuid_unparse in section (__TEXT,__text)
collect2: ld returned 1 exit status
make[2]: *** [sqlbox] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2



On Nov 5, 2007, at 1:17 PM, Aaron Simmons wrote:

I finally figured out what was wrong with my sqlbox configure on mac os x. Had to dig around in the configure log. The test for whether gwlib works tries to compile a little test program that links to it. The test build was failing, complaining that it couldn't link to gwlib.a because its table of contents "is out of date; rerun ranlib(1) (can't load from it)". So I did
    sudo ranlib /usr/local/lib/kannel/*.a
and now the configure works fine.  :)

Don't know what happened to the libs to make them goof up like that...


On Oct 23, 2007 10:09 PM, Alejandro Guerrieri < [EMAIL PROTECTED]> wrote:
I've built on Mac OSX 10.4 with no problems before.

Check the configure script output, where is it searching for the libs?

Running ./configure --help should print the available switches.

Regards,

Alejandro


On 10/23/07, Aaron Simmons <[EMAIL PROTECTED] > wrote:
I did install kannel. I rebuilt it for mysql and did 'sudo make install' on it before starting on sqlbox. I checked and the built kannel libs are installed to where they're supposed to be.

Perhaps on the mac the libs are being put somewhere different than normal and the sqlbox configure isn't taking that into account. How do you tell the configure script to look in a specific place for the kannel libs?


On 10/23/07, Alejandro Guerrieri < [EMAIL PROTECTED]> wrote: It happened to me before. sqlbox looks for gwlib on it's _installed_ location. If you have installed kannel on that machine, you shouldn't have any problems, otherwise you'll have to point the configure script to an alternate gwlib path.

Hope it helps,

Alejandro


On 10/22/07, info.ubichip < [EMAIL PROTECTED]> wrote:
Hi,


If the « configure » process is not finding the path of kannel, you have to tell it with options like you build kannel before.


Hope that helps


From: Aaron Simmons [mailto:[EMAIL PROTECTED]
Sent: lundi 22 octobre 2007 06:35
To: users@kannel.org
Subject: building sqlbox


I've re-built kannel 1.4.1 by doing a configure with these options

--with-mysql --with-mysql-dir=/usr/local/mysql --with-dlr=mysql -- enable-mysql-dlr --enable-start-stop-daemon

followed by a make and a 'sudo make install'.


Now I'm trying to build sqlbox-standalone. However, the configure is failing on:




checking Kannel version... 1.4.1

checking Kannel libs... -L/usr/local/lib/kannel -lgw -lwap -lgwlib - lssl -lresolv -lm -lpthread -liconv -L/sw/lib

-lxml2 -lz -lpthread -L/sw/lib -liconv -lm -L/usr/lib -lcrypto - lssl -L/usr/local/mysql/lib -lmysqlclient_r -lz -lm

checking Kannel includes... -I/usr/local/include/kannel -g -O2 - DDARWIN=1

-L/Developer/SDKs/MacOSX10.4u.sdk/usr/lib -I/Developer/SDKs/ MacOSX10.4u.sdk/usr/include

-I/sw/include/libxml2 -I/sw/include -I/usr/include/openssl -I/usr/ local/mysql/include

*checking for cfg_create in -lgwlib... no*

*configure: error: Kannel gwlib is required!*


The kannel libs are available at the location configure thinks they are. Further, I checked using 'nm' and "cfg_create" is in libgwlib.a. I don't understand what the problem is.




Thanks,

aaron



Antivirus avast!: message Sortant sain.

Base de donnees virale (VPS) : 000783-0, 21/10/2007
Analyse le : 22/10/2007 09:08:38
avast! - copyright (c) 1988-2007 ALWIL Software.





--
Alejandro Guerrieri
Magicom
http://www.magicom-bcn.net/
LinkedIn: http://www.linkedin.com/in/aguerrieri




--
Alejandro Guerrieri
Magicom
http://www.magicom-bcn.net/
LinkedIn: http://www.linkedin.com/in/aguerrieri


Reply via email to