Le 08/08/2012 08:36, Sebastian Reitenbach a écrit :
>
>> I have the same problem to build GDL2. This is with GNUstep from SVN and
>> GCC 4.6.1.
> 
> Do you build the plain gdl2 from source, or build the package?
> The Debian packages build the /EOModel and /DBModeler _and_ the 
> /Apps/EOModelEditor, /Apps/EOModel.
> I think you should only build one of them, not both. The plain gdl2 from svn 
> builds the stuff in /Apps,
> which just worked for me, and I think also worked also for Philippe then.

Hmmm, not exactly...

I can now build debian packages with EOModelEditor but I had to disable
the Gorm palette.

I still can't build sources from svn, with the same linking errors. The
two patches from the debian package might help.

Philippe

# Description: added @direntry to have an entry in the DIR file and avoid a warning by
#              install-info's trigger
# Author: Federico Gimenez Nieto <[email protected]>
# Last-update: 2010-03-01


Index: gnustep-dl2-0.12.0/Documentation/GDL2Intro/GDL2Intro.texi
===================================================================
--- gnustep-dl2-0.12.0.orig/Documentation/GDL2Intro/GDL2Intro.texi	2010-03-01 19:01:37.000000000 +0100
+++ gnustep-dl2-0.12.0/Documentation/GDL2Intro/GDL2Intro.texi	2010-03-01 19:03:36.000000000 +0100
@@ -20,6 +20,11 @@
 into another language, under the above conditions for modified versions.
 @end copying
 
+@dircategory Software libraries
+@direntry
+* GDL2: (GDL2Intro).   GNUstep Database Library Introduction.
+@end direntry
+
 @titlepage
 @title GNUstep Database Library Introduction 
 @page
# Description:  (tiny change)
#
#	Avoid undefined symbols.
#	* EOControl/GNUmakefile (EOControl_LIBRARIES_DEPEND_UPON):
#	* EOAccess/GNUmakefile (EOAccess_LIBRARIES_DEPEND_UPON):
#	* EOInterface/GNUmakefile (EOInterface_LIBRARIES_DEPEND_UPON):
#	* EOModeler/GNUmakefile (EOModeler_LIBRARIES_DEPEND_UPON):
#	Define.
#	* EOAdaptors/PostgreSQLAdaptor/config.mak.in
#	(LIBRARIES_DEPEND_UPON): Add -lEOControl, -lEOAccess, $(FND_LIBS)
#	and $(OBJC_LIBS).
#	* EOAdaptors/SQLiteAdaptor/GNUmakefile.in (LIBRARIES_DEPEND_UPON):
#	Add -lEOAccess, $(FND_LIBS) and $(OBJC_LIBS).
# Author:  Yavor Doganov <[email protected]>
# Last-update: 2009-12-25
Index: gnustep-dl2-0.12.0/EOControl/GNUmakefile
===================================================================
--- gnustep-dl2-0.12.0.orig/EOControl/GNUmakefile
+++ gnustep-dl2-0.12.0/EOControl/GNUmakefile
@@ -32,6 +32,8 @@
 
 EOControl_NEEDS_GUI = no
 
+EOControl_LIBRARIES_DEPEND_UPON = $(OBJC_LIBS)
+
 # The C source files to be compiled
 EOControl_C_FILES = 
 
Index: gnustep-dl2-0.12.0/EOAccess/GNUmakefile         
===================================================================
--- gnustep-dl2-0.12.0.orig/EOAccess/GNUmakefile
+++ gnustep-dl2-0.12.0/EOAccess/GNUmakefile
@@ -32,6 +32,8 @@
 
 EOAccess_NEEDS_GUI = no
 
+EOAccess_LIBRARIES_DEPEND_UPON = -lEOControl $(OBJC_LIBS)
+
 # The C source files to be compiled
 EOAccess_C_FILES = 
 
Index: gnustep-dl2-0.12.0/EOInterface/GNUmakefile
===================================================================
--- gnustep-dl2-0.12.0.orig/EOInterface/GNUmakefile
+++ gnustep-dl2-0.12.0/EOInterface/GNUmakefile
@@ -31,6 +31,9 @@
 NATIVE_LIBRARY_NAME=EOInterface
 
 EOInterface_NEEDS_GUI = yes
+
+EOInterface_LIBRARIES_DEPEND_UPON = -lEOControl $(OBJC_LIBS)
+
 # The C source files to be compiled
 EOInterface_C_FILES = 
 
Index: gnustep-dl2-0.12.0/EOModeler/GNUmakefile
===================================================================
--- gnustep-dl2-0.12.0.orig/EOModeler/GNUmakefile
+++ gnustep-dl2-0.12.0/EOModeler/GNUmakefile
@@ -30,6 +30,9 @@
 # The library to be compiled
 NATIVE_LIBRARY_NAME=EOModeler
 
+EOModeler_LIBRARIES_DEPEND_UPON = -lEOControl -lEOAccess $(GUI_LIBS) \
+                                    $(OBJC_LIBS)
+
 EOModeler_NEEDS_GUI = yes
 # The C source files to be compiled
 EOModeler_C_FILES = 

Index: gnustep-dl2-0.12.0/EOAdaptors/PostgreSQLAdaptor/config.mak.in
===================================================================
--- gnustep-dl2-0.12.0.orig/EOAdaptors/PostgreSQLAdaptor/config.mak.in
+++ gnustep-dl2-0.12.0/EOAdaptors/PostgreSQLAdaptor/config.mak.in
@@ -27,7 +27,8 @@
 ADDITIONAL_INCLUDE_DIRS += @POSTGRES_INCLUDES@
 
 # Libraries linked to the framework
-LIBRARIES_DEPEND_UPON += @POSTGRES_LIBS@
+LIBRARIES_DEPEND_UPON += @POSTGRES_LIBS@ -lEOControl -lEOAccess $(FND_LIBS) \
+                           $(OBJC_LIBS)
 
 # Additional library directories the linker should search
 ADDITIONAL_LIB_DIRS += @POSTGRES_LIB_DIRS@

Index: gnustep-dl2-0.12.0/EOAdaptors/SQLiteAdaptor/GNUmakefile.in
===================================================================
--- gnustep-dl2-0.12.0.orig/EOAdaptors/SQLiteAdaptor/GNUmakefile.in
+++ gnustep-dl2-0.12.0/EOAdaptors/SQLiteAdaptor/GNUmakefile.in
@@ -28,7 +28,7 @@
 
 ADDITIONAL_INCLUDE_DIRS+=@SQLITE3_INCLUDES@
 ADDITIONAL_LIB_DIRS+=@SQLITE3_LIB_DIRS@
-LIBRARIES_DEPEND_UPON+=@SQLITE3_LIBS@
+LIBRARIES_DEPEND_UPON+=@SQLITE3_LIBS@ -lEOAccess $(FND_LIBS) $(OBJC_LIBS)
 FRAMEWORK_NAME=SQLite3EOAdaptor
 
 ADDITIONAL_NATIVE_LIB_DIRS+=../../EOControl ../../EOAccess
_______________________________________________
Discuss-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to