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

Group
 
 

bug #33022: corebase doesn't compile on OpenBSD

Submitter:  Sebastian Reitenbach <buzzdee>
Submitted:  Fri 08 Apr 2011 09:16:37 AM UTC
   
 
Category:  Libraries Severity:  3 - Normal
Item Group:  Bug Status:  Fixed
Privacy:  Public Assigned to:  stefanbidi
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group Member
Tue 31 May 2011 11:13:18 PM UTC, comment #2: 

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

Stef <stefanbidi>
Group Member
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>
Group Member
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>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-05-31 stefanbidi StatusIn Progress Fixed
        Open/ClosedOpen Closed
    2011-05-31 stefanbidi StatusNone In Progress
        Assigned toNone stefanbidi

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code