discuss-gnustep
[Top][All Lists]
Advanced

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

GNUmakefile.preamble for a library


From: Andreas Hoeschler
Subject: GNUmakefile.preamble for a library
Date: Tue, 7 May 2002 21:21:20 +0200

Hi,

I am trying to build a library, that depends on another library. I read that in order to link a tool against an external library the preamble file should like as follows.

ADDITIONAL_OBJCFLAGS += -Wall
LogTest_TOOL_LIBS += -lFBCAccess
LogTest_INCLUDE_DIRS += -I/opt/FrontBase/include/
LogTest_LIB_DIRS += -L/opt/FrontBase/lib/

..._TOOL_LIBS is to be replaced with _GUI_LIBS if Logtest is an application versus a tool. However, what if LogTest itself is a library that depends on FBCAccess? I tried

ADDITIONAL_OBJCFLAGS += -Wall
FBAcces_LIB_LIBS += -lFBCAccess
FBAccess_INCLUDE_DIRS += -I/opt/FrontBase/include/
FBAccess_LIB_DIRS += -L/opt/FrontBase/lib/

Does this make sense? Is ..._LIB_LIBS a valid key? When I try to build library FBAccess I get

Making all for library libFBAccess...
gcc FBExecHandler.m -c \
-MMD -MP -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1 -fpic -fPIC -DGSWARN -DGSDIAGNOSE -O2 -Wno-import -fgnu-runtime -Wall -I. -fgnu-runtime -I/opt/GNUstep/System/Headers -I/usr/local/include/libxml2/libxml -I/usr/local/include/libxml2 -fconstant-string-class=NSConstantString -I/home/ahoesch/GNUstep/Headers/gnustep -I/opt/GNUstep/Local/Headers/gnustep -I/opt/GNUstep/Network/Headers/gnustep -I/opt/GNUstep/System/Headers/gnustep -I/home/ahoesch/GNUstep/Headers/sparc/solaris2.8 -I/home/ahoesch/GNUstep/Headers -I/opt/GNUstep/Local/Headers/sparc/solaris2.8 -I/opt/GNUstep/Local/Headers -I/opt/GNUstep/Network/Headers/sparc/solaris2.8 -I/opt/GNUstep/Network/Headers -I/opt/GNUstep/System/Headers/sparc/solaris2.8 -I/opt/GNUstep/System/Headers \
-o shared_obj/sparc/solaris2.8/gnu-gnu-gnu/FBExecHandler.o
In file included from FBExecHandler.m:3:
FBExecHandler.h:4:37: warning: FBCAccess/FBDatabaseDefs.h: No such file or directory
In file included from FBExecHandler.m:3:
FBExecHandler.h:77: parse error before "FBDatabaseStatus"
In file included from /opt/GNUstep/System/Headers/Foundation/Foundation.h:39,
from FBExecHandler.m:4:
/opt/GNUstep/System/Headers/Foundation/NSByteOrder.h: In function `GSSwapI16':
/opt/GNUstep/System/Headers/Foundation/NSByteOrder.h:99: parameter name omitted
/opt/GNUstep/System/Headers/Foundation/NSByteOrder.h:105: parse error before "in"
/opt/GNUstep/System/Headers/Foundation/NSByteOrder.h:104: warning: unused variable `dst'
/opt/GNUstep/System/Headers/Foundation/NSByteOrder.h:105: warning: unused variable `src'
/opt/GNUstep/System/Headers/Foundation/NSByteOrder.h:116: warning: unused variable `byt'
/opt/GNUstep/System/Headers/Foundation/NSByteOrder.h: At top level:
/opt/GNUstep/System/Headers/Foundation/NSByteOrder.h:117: warning: type defaults to `int' in declaration of `dst'
/opt/GNUstep/System/Headers/Foundation/NSByteOrder.h:117: warning: data definition has no type or storage class
...

All these warnings refer to foundation. What do they mean? How can I avoid them? then I get

FBExecHandler.m:5:33: warning: FBCAccess/FBExecDefs.h: No such file or directory
In file included from FBExecHandler.m:6:
FBClientSocket.h:3:37: warning: FBAccess/FBCAccessExtras.h: No such file or directory
In file included from FBExecHandler.m:6:
FBClientSocket.h: At top level:
FBClientSocket.h:16: parse error before "FSSecureSocket"

The dir /opt/FrontBase/include/FBCAccess definitely contains a file FBExecDefs.h. Finally I get

FBExecHandler.m:913: warning: implicit declaration of function `fsipIsAlive'
FBExecHandler.m: In function `-[FBExecHandler(Private) registerWithDaemon]':
FBExecHandler.m:944: `ECMD_REGISTER' undeclared (first use in this function)
FBExecHandler.m: At top level:
/opt/GNUstep/System/Headers/Foundation/NSByteOrder.h:55: warning: `GSSwapI32' declared `static' but never defined
/opt/GNUstep/System/Headers/Foundation/NSByteOrder.h:57: warning: `GSSwapI64' declared `static' but never defined
/opt/GNUstep/System/Headers/Foundation/NSByteOrder.h:59: warning: `GSSwapI128' declared `static' but never defined
make[1]: *** [shared_obj/sparc/solaris2.8/gnu-gnu-gnu/FBExecHandler.o] Error 1
make: *** [libFBAccess.all.library.variables] Error 2

Any idea what that means? Thanks a lot for any hint!

Regards,

Andreas


reply via email to

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