bugGNUstep - Bugs: bug #25026, compilation of gnustep-base fails...

 
 

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

bug #25026: compilation of gnustep-base fails on openbsd 4.4 sparc

Submitted by:  Sebastian Reitenbach <buzzdee>
Submitted on:  Sat 06 Dec 2008 04:27:57 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Sun 07 Dec 2008 01:42:16 PM UTC, comment #5:

Thanks ... added that workaround for the buggy headers.

Richard Frith-Macdonald <CaS>
Project Member
Sun 07 Dec 2008 12:15:16 PM UTC, comment #4:

the fix you added, and removed again, was wrong.
you had a
#undef GSTLSID

instead of a
#undef id

I tested it with #undef id, and that allowed me to compile gnustep-base till the end.

Sebastian Reitenbach <buzzdee>
Project Member
Sat 06 Dec 2008 06:04:37 PM UTC, comment #3:

Now it fails to compile GSSocketStream.m:

cc GSSocketStream.m -c \
-DGNUSTEP_TARGET_DIR=\".\" -DGNUSTEP_TARGET_CPU=\"sparc\" -DGNUSTEP_TARGET_OS=\"openbsd4.4\" -DGNUSTEP_IS_FLATTENED=\"yes\" -DLIBRARY_COMBO=\"gnu-gnu-gnu\" -Wall -Wcast-align -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1 -D_REENTRANT -fPIC -g -Wall -DDEBUG -fno-omit-frame-pointer -DGSWARN -DGSDIAGNOSE -Wno-import -O2 -pipe -fno-strict-aliasing -fgnu-runtime -I../Headers/Additions -I../Headers -I./. -I. -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/gnustep-base-1.16.5_writes_to_HOME/GNUstep/Library/Headers -I/usr/local/include \
-o obj/GSSocketStream.o
In file included from GSSocketStream.m:156:
/usr/local/include/gnutls/gnutls.h:389: syntax error before `id'

gnutls-2.0.4 installed from ports.

I tried to add sth. similar as for the other problem around the include of the gnutls header files, but that did not worked out.

Sebastian Reitenbach <buzzdee>
Project Member
Sat 06 Dec 2008 05:45:46 PM UTC, comment #2:

Hi,

I applied the changes you did in trunk to the -stable sources I have installed, and it compiles now. Many thanks.
Will this also be backported to -stable?

However, I get the following warnings when compiling:
cc GSXML.m -c \
-Wall -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1 -D_REENTRANT -fPIC -g -Wall -DDEBUG -fno-omit-frame-pointer -DGSWARN -DGSDIAGNOSE -Wno-import -O2 -pipe -fno-strict-aliasing -fgnu-runtime -I../../Headers/Additions -I../. -I../ -I../../Headers -I. -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/gnustep-base-1.16.5_writes_to_HOME/GNUstep/Library/Headers -I/usr/local/include \
-o obj/GSXML.o
GSXML.m: In function `loadEntityFunction':
GSXML.m:2420: warning: assignment from incompatible pointer type
GSXML.m: In function `-[GSXMLDocument(XSLT) xsltTransform:params:]':
GSXML.m:3995: warning: variable `newdoc' might be clobbered by `longjmp' or `vfork'
GSXML.m: In function `-[GSXMLRPC initWithURL:certificate:privateKey:password:]':
GSXML.m:5102: warning: argument `self' might be clobbered by `longjmp' or `vfork'
GSXML.m: In function `-[GSXMLRPC parseMethod:params:]':
GSXML.m:5167: warning: variable `ctx' might be clobbered by `longjmp' or `vfork'
GSXML.m:5168: warning: variable `ns' might be clobbered by `longjmp' or `vfork'
GSXML.m:5169: warning: variable `parser' might be clobbered by `longjmp' or `vfork'
GSXML.m: In function `-[GSXMLRPC parseResponse:params:]':
GSXML.m:5237: warning: variable `ctx' might be clobbered by `longjmp' or `vfork'
GSXML.m:5238: warning: variable `ns' might be clobbered by `longjmp' or `vfork'
GSXML.m:5239: warning: variable `parser' might be clobbered by `longjmp' or `vfork'
GSXML.m:5240: warning: variable `fault' might be clobbered by `longjmp' or `vfork'

don't know whether these will be problematic, however, the initial problem is fixed.

Sebastian

Sebastian Reitenbach <buzzdee>
Project Member
Sat 06 Dec 2008 04:53:28 PM UTC, comment #1:

I added a hack in svn trunk to try to work around this ... presumably the issue is the on your system the xslt headers use the objc reserved word 'id', causing problems when the header is included into objc code.

Richard Frith-Macdonald <CaS>
Project Member
Sat 06 Dec 2008 04:27:57 PM UTC, original submission:

compilation of gnustep-base 1.16.5 fails on sparc:
cc GSMime.m -c \
-Wall -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRA
RY=1 -D_REENTRANT -fPIC -g -Wall -DDEBUG -fno-omit-frame-pointer -DGSWARN -DGSDIAGNOSE -Wno
-import -O2 -pipe -fno-strict-aliasing -fgnu-runtime -I../../Headers/Additions -I../. -I../
-I../../Headers -I. -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/
local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr
/local/include -I/gnustep-base-1.16.5_writes_to_HOME/GNUstep/Library/Headers -I/usr/local/i
nclude \
-o obj/GSMime.o
cc GSXML.m -c \
-Wall -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRA
RY=1 -D_REENTRANT -fPIC -g -Wall -DDEBUG -fno-omit-frame-pointer -DGSWARN -DGSDIAGNOSE -Wno
-import -O2 -pipe -fno-strict-aliasing -fgnu-runtime -I../../Headers/Additions -I../. -I../
-I../../Headers -I. -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/
local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr
/local/include -I/gnustep-base-1.16.5_writes_to_HOME/GNUstep/Library/Headers -I/usr/local/i
nclude \
-o obj/GSXML.o
In file included from GSXML.m:77:
/usr/local/include/libxslt/xsltInternals.h:1906: syntax error before `id'
/usr/local/include/libxslt/xsltInternals.h:1910: syntax error before `id'
GSXML.m: In function `loadEntityFunction':
GSXML.m:2416: warning: assignment from incompatible pointer type
GSXML.m: In function `-[GSXMLDocument(XSLT) xsltTransform:params:]':
GSXML.m:3991: warning: variable `newdoc' might be clobbered by `longjmp' or `vfork'
GSXML.m: In function `-[GSXMLRPC initWithURL:certificate:privateKey:password:]':
GSXML.m:5098: warning: argument `self' might be clobbered by `longjmp' or `vfork'
GSXML.m: In function `-[GSXMLRPC parseMethod:params:]':
GSXML.m:5163: warning: variable `ctx' might be clobbered by `longjmp' or `vfork'
GSXML.m:5164: warning: variable `ns' might be clobbered by `longjmp' or `vfork'
GSXML.m:5165: warning: variable `parser' might be clobbered by `longjmp' or `vfork'
GSXML.m: In function `-[GSXMLRPC parseResponse:params:]':
GSXML.m:5233: warning: variable `ctx' might be clobbered by `longjmp' or `vfork'
GSXML.m:5234: warning: variable `ns' might be clobbered by `longjmp' or `vfork'
GSXML.m:5235: warning: variable `parser' might be clobbered by `longjmp' or `vfork'
GSXML.m:5236: warning: variable `fault' might be clobbered by `longjmp' or `vfork'
gmake[3]: *** [obj/GSXML.o] Error 1
gmake[2]: *** [Additions.all.subproject.variables] Error 2
gmake[2]: Leaving directory `/usr/ports/x11/gnustep/base/w-gnustep-base-1.16.5/gnustep-base -1.16.5/Source/Additions'
gmake[1]: *** [libgnustep-base.all.library.variables] Error 2
gmake[1]: Leaving directory `/usr/ports/x11/gnustep/base/w-gnustep-base-1.16.5/gnustep-base -1.16.5/Source'
gmake: *** [internal-all] Error 2

      • Error code 2

Stop in /usr/ports/x11/gnustep/base (line 2164 of /usr/ports/infrastructure/mk/bsd.port.mk) .

      • Error code 1

Stop in /usr/ports/x11/gnustep/base (line 1422 of /usr/ports/infrastructure/mk/bsd.port.mk) .

      • Error code 1

Stop in /usr/ports/x11/gnustep/base (line 1962 of /usr/ports/infrastructure/mk/bsd.port.mk) .

      • Error code 1

Stop in /usr/ports/x11/gnustep/base (line 1452 of /usr/ports/infrastructure/mk/bsd.port.mk) .

# gcc -v
Reading specs from /usr/lib/gcc-lib/sparc-unknown-openbsd4.4/2.95.3/specs
gcc version 2.95.3 20010125 (prerelease, propolice)

libxslt-1.1.24 package installed

Sebastian Reitenbach <buzzdee>
Project Member

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by CaS (Posted a comment)
  • -unavailable- added by buzzdee (Submitted the item)
  •  

    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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 07 Dec 2008 01:42:16 PM UTCCaSOpen/ClosedIn Test=>Closed
    Sat 06 Dec 2008 04:53:28 PM UTCCaSStatusNone=>Fixed
      Open/ClosedOpen=>In Test

    Back to the top


    Powered by Savane 3.1-cleanup1