bugGNUstep - Bugs: bug #10816, Can't build palettes on win32

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #10816: Can't build palettes on win32

Submitted by:  Gregory John Casamento <gcasa>
Submitted on:  Thu 28 Oct 2004 03:28:31 AM UTC  
 
Category: MakefilesSeverity: 4 - Important
Item Group: BugStatus: None
Privacy: PublicAssigned to: Nicola Pero <nico>
Open/Closed: Closed

Tue 29 Mar 2005 10:05:40 AM UTC, comment #5:

This works now.

Thanks

Nicola Pero <nico>
Project MemberIn charge of this item.
Thu 10 Mar 2005 06:15:21 PM UTC, comment #4:

Just hijacked this bug -- I'll be looking at that. :-)

Having Gorm (including palettes etc) build on Windows is my next task (when I get another evening/night for this, probably next week).

Thanks

Nicola Pero <nico>
Project MemberIn charge of this item.
Mon 08 Nov 2004 10:41:52 AM UTC, comment #3:

Could somebody review all the standard makefiles for Win32?

I've tried to build all sorts of stuff on WinXP sp1 using the 1.10.0 and 1.10.1 installers, and builds generally fail as described. by GJC. gnustep-gui and gnustep-back build; they have makefiles with special magic to create and use .DEF files and import libraries.

Simple apps that link only against standard libraries such as Foundation and AppKit do build.
gnustep-gui and gnustep-back build, and apparently have special magic in their makefiles to enable this.
Any other library, framework, aggregate or loadable bundle (eg: palette) appears not to build.

Part of the problem appears to be that import libraries for the DLLs exporting symbols referenced in the object being linked don't get seen, which generates the list of 'undefined reference' messages.
Another part seems to be that a .DEF file isn't generated automatically.
Another part seems to be that a .A file (import library) isn't generated automatically from the .DEF file.

[tip: loadable bundles will be .DLLs, but don't need matching .DEF or .A files]
[tip: On NeXT's OPENSTEP/Windows, you couldn't refer to symbols from one loadable bundle in another; the obvious thing to do is to move the commone code to a framework or other shared library, which is a nuisance; the subtler thing to do is weak-link, by using NSClassFromString() and lots and lots of casts.]

Patrick Middleton <patrickx>
Thu 28 Oct 2004 04:14:23 AM UTC, comment #2:

It's definitely compiled. It's probably not being exported properly. I'd forgotten about this requirement on win32. Thanks.

Gregory John Casamento <gcasa>
Project Administrator
Thu 28 Oct 2004 03:38:33 AM UTC, comment #1:

__objc_class_name_IBInspector usually means the the class IBInspector was not compiled at all or it is not being exported or we are not linking against all the libraries

Anonymous
Thu 28 Oct 2004 03:28:31 AM UTC, original submission:

Compiling file TestPalette.m ...
Compiling file TestNonUIObject.m ...
Compiling file TestView.m ...
Linking palette Test ...
./shared_obj/TestInspector.o(.data+0x47c):TestInspector.m: undefined reference to `__objc_class_name_IBInspector'
./shared_obj/TestPalette.o(.text+0x3f4):TestPalette.m: undefined reference to `IBObjectPboardType'
./shared_obj/TestPalette.o(.data+0x564):TestPalette.m: undefined reference to `__objc_class_name_IBPalette'
collect2: ld returned 1 exit status
c:\GNUstep\Development\msys\1.0\mingw\bin\dllwrap.exe: no export definition file provided.
Creating one, but that may not be what you want
c:\GNUstep\Development\msys\1.0\mingw\bin\dllwrap.exe: gcc exited with status 1
make[1]: *** [Test.palette/./Test.dll] Error 1
make: *** [Test.all.palette.variables] Error 2

Gregory John Casamento <gcasa>
Project Administrator

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 5 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Tue 29 Mar 2005 10:05:40 AM UTCnicoOpen/ClosedOpen=>Closed
Sat 19 Mar 2005 06:06:52 PM UTCkkerleCarbon-Copy-=>Added kkerle
Thu 10 Mar 2005 06:15:21 PM UTCnicoItem GroupChange Request=>Bug
  Assigned togcasa=>nico
Fri 14 Jan 2005 01:36:38 AM UTCgcasaAssigned toNone=>gcasa

Back to the top


Powered by Savane 3.1-cleanup1