bugGNUstep - Bugs: bug #33022, corebase doesn't compile on OpenBSD

 
 

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

bug #33022: corebase doesn't compile on OpenBSD

Submitted by:  Sebastian Reitenbach <buzzdee>
Submitted on:  Fri 08 Apr 2011 09:16:37 AM UTC  
 
Category: LibrariesSeverity: 3 - Normal
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: Stef <stefanbidi>
Open/Closed: Closed

Sun 05 Jun 2011 04:15:48 PM UTC, comment #3:

Hi,

thanks for fixing it. Now it compiles well on i386, using gcc-4.2.1. I'll test on sparc using gcc-2.95 later this week, in case you may be interested whether it works.

The only warning I still get is the following
cc CFBundle.m -c \
-MMD -MP -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1 -fno-strict-aliasing -fPIC -g -DDEBUG -fno-omit-frame-pointer -Wall -DGSWARN -DGSDIAGNOSE -Wno-import -fno-stack-protector -fgnu-runtime -fconstant-string-class=NSConstantString -I../Headers -I. -I/usr/local/include -I/gnustep-corebase-0.1_writes_to_HOME/GNUstep/Library/Headers -I/usr/local/include \
-o obj/libgnustep-corebase.obj/CFBundle.m.o
CFBundle.m: In function 'CFBundleCopyDebugDesc':
CFBundle.m:60: warning: return from incompatible pointer type
CFBundle.m: In function 'CFBundleGetFunctionPointerForName':
CFBundle.m:112: warning: invalid receiver type 'CFStringRef'
CFBundle.m: In function 'CFBundleGetDataPointerForName':
CFBundle.m:119: warning: invalid receiver type 'CFStringRef'

And the second problem I got now is with linking. It doesn't find -luuid. On OpenBSD, the e2fsprogs libuuid is installed as libe2fs-uuid.so. Its the same problem I have with simpleagenda, which also has this dependency. So switching -luuid to -le2fs-uuid fixed this for me.

cheers,
Sebastian

Sebastian Reitenbach <buzzdee>
Project Member
Tue 31 May 2011 11:13:18 PM UTC, comment #2:

Fixed. Let me know if you have any other problems.

Stef <stefanbidi>
Project MemberIn charge of this item.
Tue 31 May 2011 03:24:26 PM UTC, comment #1:

Thanks for the report. I just saw this, sorry it took so long. I've been meaning to change all the instances of spinlocks to mutexes, anyway. You can expect a fix soon.

Stef <stefanbidi>
Project MemberIn charge of this item.
Fri 08 Apr 2011 09:16:37 AM UTC, original submission:

corebase uses pthread_spinlock_* functions and related types. Those do not exist on OpenBSD and maybe also on other OSs.
I tried to replace them with pthread_rwlock_* functions, but then llvm dumped core when compiling this file. Also don't know whether this would actually be the right solution at all.

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 stefanbidi (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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 31 May 2011 11:13:18 PM UTCstefanbidiStatusIn Progress=>Fixed
      Open/ClosedOpen=>Closed
    Tue 31 May 2011 03:24:26 PM UTCstefanbidiStatusNone=>In Progress
      Assigned toNone=>stefanbidi

    Back to the top


    Powered by Savane 3.1-cleanup1