gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GNUmakefile and a strange case


From: José Pablo Fernández
Subject: Re: GNUmakefile and a strange case
Date: Mon, 18 Dec 2006 19:55:18 -0300
User-agent: KMail/1.9.5

I thought maybe it was usefull to see how I was compiling it with SCons:

$ scons
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
gcc -o 
Account.os -c -D_GNU_SOURCE -std=gnu99 -pipe -Wall -ggdb 
-I/usr/include/GNUstep/Headers/ -fconstant-string-class="NSConstantString" 
-fPIC 
Account.m
gcc -o 
cli.os -c -D_GNU_SOURCE -std=gnu99 -pipe -Wall -ggdb 
-I/usr/include/GNUstep/Headers/ -fconstant-string-class="NSConstantString" 
-fPIC 
cli.m
gcc -o 
man.os -c -D_GNU_SOURCE -std=gnu99 -pipe -Wall -ggdb 
-I/usr/include/GNUstep/Headers/ -fconstant-string-class="NSConstantString" 
-fPIC 
man.m
gcc -o 
User.os -c -D_GNU_SOURCE -std=gnu99 -pipe -Wall -ggdb 
-I/usr/include/GNUstep/Headers/ -fconstant-string-class="NSConstantString" 
-fPIC 
User.m
gcc -o 
Group.os -c -D_GNU_SOURCE -std=gnu99 -pipe -Wall -ggdb 
-I/usr/include/GNUstep/Headers/ -fconstant-string-class="NSConstantString" 
-fPIC 
Group.m
gcc -o 
LoggedUser.os -c -D_GNU_SOURCE -std=gnu99 -pipe -Wall -ggdb 
-I/usr/include/GNUstep/Headers/ -fconstant-string-class="NSConstantString" 
-fPIC 
LoggedUser.m
gcc -o account.so -shared Account.os cli.os man.os User.os Group.os 
LoggedUser.os -L/usr/lib/GNUstep/System/Library/Libraries -lobjc -lgnustep-base
scons: done building targets.


Thanks.
On Monday 18 December 2006 19:49, José Pablo Fernández wrote:
> Hello,
> I have a strange situation here, it used to be a C library compiled with
> SCons, but now I am using ObjC and GNUstep and I was recommended to use
> GNUmakefiles because of the added goodies.
> Now, I need to create a library, the library should be called account.so
> (note, not libaccount.so, account.so) and it should be installed
> on /usr/lib/account/modules/ not on /whatever/Library/whatever. How can I
> do this ?
> Now, this library is dlopened, when I compile it with SCons it is loaded
> succesfully, when I compile it with GNUmakefile (and copy the file by hand
> renaming it in the process) I get this error:
>
> Error loading module 'account.so': /usr/lib/asterisk/modules/account.so:
> undefined symbol: __objc_class_name_NSString
>
> Evidently there's something different in how it was linked with the gnustep
> libraries.
>
> And as a last detail, I get this warnings, what do they mean:
>
> User.m:108: warning: ‘_OBJC_INSTANCE_0’ defined but not used
> User.m:185: warning: ‘_OBJC_INSTANCE_1’ defined but not used
> User.m:194: warning: ‘_OBJC_INSTANCE_2’ defined but not used
>
> ?
>
> Any help in any of these problems is appreciated.
>
> Thank you.

-- 
José Pablo Fernández
address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]