Re: Building GNUstep on Solaris 10 (x86)

Adam Fedor <[email protected]>
Newsgroups gmane.comp.lib.gnustep.user
Message-ID <[email protected]>
On Aug 7, 2005, at 6:56 PM, Laszlo Kiss wrote:
>    to implicit
>       dependency 
> /opt/common/lib/gcc/i386-pc-solaris2.10/3.4.2/libobjc.so.1)
> __objc_exec_class                   ./shared_obj/autogsdoc.o  (symbol 
> belongs
>    to implicit
>       dependency 
> /opt/common/lib/gcc/i386-pc-solaris2.10/3.4.2/libobjc.so.1)
> ld: fatal: Symbol referencing errors. No output written to 
> shared_obj/autogsdoc
> collect2: ld returned 1 exit status
> make[2]: *** [shared_obj/autogsdoc] Error 1
> make[1]: *** [autogsdoc.all.tool.variables] Error 2
> make[1]: Leaving directory 
> `/opt/common/src/GNUstep/gnustep-base-1.11.0/Tools'
> make: *** [internal-all] Error 2
>
>

Probably do to a fix I made in gnustep-make, which I'll probably 
reverse now. You could apply the following patch (actually reverse 
patch "patch -R -p0 < lobjc-make.patch") to gnustep-make and rebuild or 
wait until I release a new version ....

_______________________________________________
Help-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gnustep
lobjc-make.patch (application/octet-stream, 4.6 KB)
2005-06-03  Adam Fedor  <[email protected]>

	* Instance/application.make (ALL_GUI_LIBS): Remove OBJC_LIBS,
	AUXILIARY_OBJC_LIBS, and TARGET_SYSTEM_LIBS
	* Instance/gswapp.make (ALL_GSW_LIBS): Idem.
	* Instance/service.make (ALL_SERVICE_LIBS): Idem.
	* Instance/tool.make (ALL_TOOL_LIBS): Idem.
	Fixes bug #9920.

Index: Instance/application.make
===================================================================
RCS file: /cvsroot/gnustep/gnustep/core/make/Instance/application.make,v
retrieving revision 1.39
diff -u -r1.39 application.make
--- Instance/application.make	22 May 2005 03:20:14 -0000	1.39
+++ Instance/application.make	4 Jun 2005 02:16:55 -0000
@@ -58,13 +58,17 @@
   APP_INSTALL_DIR = $(GNUSTEP_APPS)
 endif
 
+# On windows, this is unfortunately required.
+ifeq ($(BUILD_DLL), yes)
+  DUP_OBJC_LIBS = $(AUXILIARY_OBJC_LIBS) $(OBJC_LIBS) 
+endif
+
 ALL_GUI_LIBS =								     \
     $(shell $(WHICH_LIB_SCRIPT)						     \
      $(ALL_LIB_DIRS)							     \
      $(ADDITIONAL_GUI_LIBS) $(AUXILIARY_GUI_LIBS) $(GUI_LIBS)		     \
      $(BACKEND_LIBS) $(ADDITIONAL_TOOL_LIBS) $(AUXILIARY_TOOL_LIBS)	     \
-     $(FND_LIBS) $(ADDITIONAL_OBJC_LIBS) $(AUXILIARY_OBJC_LIBS) $(OBJC_LIBS) \
-     $(SYSTEM_LIBS) $(TARGET_SYSTEM_LIBS)				     \
+     $(FND_LIBS) $(ADDITIONAL_OBJC_LIBS) $(DUP_OBJC_LIBS) $(SYSTEM_LIBS)     \
         debug=$(debug) profile=$(profile) shared=$(shared)		     \
 	libext=$(LIBEXT) shared_libext=$(SHARED_LIBEXT))
 
Index: Instance/gswapp.make
===================================================================
RCS file: /cvsroot/gnustep/gnustep/core/make/Instance/gswapp.make,v
retrieving revision 1.24
diff -u -r1.24 gswapp.make
--- Instance/gswapp.make	22 May 2005 03:20:14 -0000	1.24
+++ Instance/gswapp.make	4 Jun 2005 02:16:55 -0000
@@ -73,14 +73,18 @@
   GSWAPP_INSTALL_DIR = $(GNUSTEP_GSWAPPS)
 endif
 
+# On windows, this is unfortunately required.
+ifeq ($(BUILD_DLL), yes)
+  DUP_OBJC_LIBS = $(AUXILIARY_OBJC_LIBS) $(OBJC_LIBS) 
+endif
+
 # Libraries that go before the WO libraries
 ALL_GSW_LIBS =								\
     $(shell $(WHICH_LIB_SCRIPT)						\
 	$(ALL_LIB_DIRS)							\
 	$(ADDITIONAL_GSW_LIBS) $(AUXILIARY_GSW_LIBS) $(GSW_LIBS)	\
 	$(ADDITIONAL_TOOL_LIBS) $(AUXILIARY_TOOL_LIBS)			\
-	$(FND_LIBS) $(ADDITIONAL_OBJC_LIBS) $(AUXILIARY_OBJC_LIBS)	\
-        $(OBJC_LIBS) $(SYSTEM_LIBS) $(TARGET_SYSTEM_LIBS)		\
+	$(FND_LIBS) $(ADDITIONAL_OBJC_LIBS) $(DUP_OBJC_LIBS) $(SYSTEM_LIBS) \
 	debug=$(debug) profile=$(profile) shared=$(shared)		\
 	libext=$(LIBEXT) shared_libext=$(SHARED_LIBEXT))
 
Index: Instance/service.make
===================================================================
RCS file: /cvsroot/gnustep/gnustep/core/make/Instance/service.make,v
retrieving revision 1.20
diff -u -r1.20 service.make
--- Instance/service.make	22 May 2005 03:20:14 -0000	1.20
+++ Instance/service.make	4 Jun 2005 02:16:55 -0000
@@ -39,14 +39,19 @@
         internal-service-copy_into_dir \
         service-resource-files
 
+# On windows, this is unfortunately required.
+ifeq ($(BUILD_DLL), yes)
+  DUP_OBJC_LIBS = $(AUXILIARY_OBJC_LIBS) $(OBJC_LIBS) 
+endif
+
 # Libraries that go before the GUI libraries
 ALL_SERVICE_LIBS =							\
     $(shell $(WHICH_LIB_SCRIPT)						\
 	$(ALL_LIB_DIRS)							\
 	$(ADDITIONAL_GUI_LIBS) $(AUXILIARY_GUI_LIBS)			\
 	$(GUI_LIBS) $(ADDITIONAL_TOOL_LIBS) $(AUXILIARY_TOOL_LIBS)	\
-	$(FND_LIBS) $(ADDITIONAL_OBJC_LIBS) $(AUXILIARY_OBJC_LIBS)	\
-	$(OBJC_LIBS) $(SYSTEM_LIBS) $(TARGET_SYSTEM_LIBS)		\
+	$(FND_LIBS) $(ADDITIONAL_OBJC_LIBS) $(DUP_OBJC_LIBS)            \
+	$(SYSTEM_LIBS) 	    	                                        \
 	debug=$(debug) profile=$(profile) shared=$(shared)		\
 	libext=$(LIBEXT) shared_libext=$(SHARED_LIBEXT))
 
Index: Instance/tool.make
===================================================================
RCS file: /cvsroot/gnustep/gnustep/core/make/Instance/tool.make,v
retrieving revision 1.19
diff -u -r1.19 tool.make
--- Instance/tool.make	22 May 2005 03:20:14 -0000	1.19
+++ Instance/tool.make	4 Jun 2005 02:16:56 -0000
@@ -52,12 +52,16 @@
   FINAL_TOOL_INSTALL_DIR = $(TOOL_INSTALL_DIR)/$(GNUSTEP_TARGET_LDIR)
 endif
 
+# On windows, this is unfortunately required.
+ifeq ($(BUILD_DLL), yes)
+  DUP_OBJC_LIBS = $(AUXILIARY_OBJC_LIBS) $(OBJC_LIBS) 
+endif
+
 ALL_TOOL_LIBS =								\
     $(shell $(WHICH_LIB_SCRIPT)						\
        $(ALL_LIB_DIRS)							\
        $(ADDITIONAL_TOOL_LIBS) $(AUXILIARY_TOOL_LIBS) $(FND_LIBS)	\
-       $(ADDITIONAL_OBJC_LIBS) $(AUXILIARY_OBJC_LIBS) $(OBJC_LIBS)	\
-       $(TARGET_SYSTEM_LIBS)						\
+	$(ADDITIONAL_OBJC_LIBS) $(DUP_OBJC_LIBS)			\
 	debug=$(debug) profile=$(profile) shared=$(shared)		\
 	libext=$(LIBEXT) shared_libext=$(SHARED_LIBEXT))
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.