[Serusers] Compile problems on Mac OS X Tiger

Hans Eriksson hans at hecc.se
Sat Sep 3 13:10:13 CEST 2005


Also, I get a lot of warnings like:

msg_translator.c: In function 'build_res_buf_from_sip_req':
msg_translator.c:1599: warning: 'to_tag$len' may be used  
uninitialized in this function
msg_translator.c:1599: warning: 'to_tag$s' may be used uninitialized  
in this function

Did you get those too?
Maybe that is a general issue, not a MacOSX specific (or gcc-4x)

/hans

3 sep 2005 kl. 02.52 skrev Nils Ohlmeier:

> Hi Hans,
>
> I never tried to compile the mysql module on OS X before. In my  
> case it even
> does not compile, because the mysql headers can not be found  
> (because of
> completely different paths then on other OS).
> But after fixing the headers paths the mysql module links fine on  
> my system.
>
> From where, how and to which location did you installed MySQL?
>
> BTW are you running the old gcc compiler version on Tiger by  
> intention?
>
>   Nils
>
> On Friday 02 September 2005 19:16, Hans Eriksson wrote:
>
>> Hi, I am trying to compile ser on my Mac OS X but it fails with:
>>
>>
>> ...
>> gcc -bundle -bundle_loader ../../ser db_con.o db_mod.o dbase.o
>> my_con.o my_id.o my_pool.o res.o row.o utils.o val.o   -L/usr/lib/
>> mysql -L/usr/local/lib -L/usr/local/lib/mysql -L/usr/local/mysql/lib/
>> mysql/ -L/usr/local/mysql/lib -L/usr/lib64/mysql -lmysqlclient -lz -o
>> mysql.so
>> ld: warning -L: directory name (/usr/lib/mysql) does not exist
>> ld: warning -L: directory name (/usr/local/mysql/lib/mysql/) does not
>> exist
>> ld: warning -L: directory name (/usr/lib64/mysql) does not exist
>> ld: Undefined symbols:
>> _fprintf$LDBLStub
>> _sprintf$LDBLStub
>> _printf$LDBLStub
>> _vsprintf$LDBLStub
>> make[1]: *** [mysql.so] Error 1
>> ...
>>
>> All the other modules compile and link fine. Anyone got any ideas?
>>
>> /hans
>>
>> [kuben:~/ser2] hans% gcc -v
>> Reading specs from /usr/libexec/gcc/darwin/ppc/3.3/specs
>> Thread model: posix
>> gcc version 3.3 20030304 (Apple Computer, Inc. build 1495)
>> ...
>> Welcome to the MySQL monitor.  Commands end with ; or \g.
>> Your MySQL connection id is 450 to server version: 4.1.14-standard
>>
>> _______________________________________________
>> Serusers mailing list
>> serusers at lists.iptel.org
>> http://lists.iptel.org/mailman/listinfo/serusers
>




More information about the sr-users mailing list