bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #28900] GDL2 fails to build due to GSLazyRecursiveLock


From: Tim Kack
Subject: [bug #28900] GDL2 fails to build due to GSLazyRecursiveLock
Date: Mon, 15 Feb 2010 11:39:13 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.7) Gecko/20100106 Ubuntu/9.10 (karmic) Firefox/3.5.7

URL:
  <http://savannah.gnu.org/bugs/?28900>

                 Summary: GDL2 fails to build due to GSLazyRecursiveLock
                 Project: GNUstep
            Submitted by: tkack
            Submitted on: Mon 15 Feb 2010 12:39:13 PM CET
                Category: gdl2
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Not sure if this has to do with the reorg of gnustep currently.
The problem seems to stem from:

  [GS_INITIALIZED_LOCK(local_lock, GSLazyRecursiveLock) lock];

Error (removing stuff since it is compining in parallel, single mode produces
same result)

 Compiling file EONSAddOns.m ...
EONSAddOns.m: In function ‘GSUseStrictWO451Compatibility’:
EONSAddOns.m:77: error: expected expression before ‘GSLazyRecursiveLock’
EONSAddOns.m:77: warning: invalid receiver type ‘int’
EONSAddOns.m:77: confused by earlier errors, bailing out
 Compiling file EOArrayDataSource.m ...
Preprocessed source stored into /tmp/ccbVAozx.out file, please attach this to
your bugreport.

The macro that fails look like this:

#define GS_INITIALIZED_LOCK(IDENT,CLASSNAME) \
           (IDENT != nil ? IDENT : [CLASSNAME newLockAt: &IDENT])

and is defined in base/Headers/Additions/GNUstepBase/GSCategories.h

I workaround it by doing:

if (local_lock == nil) {
 local_lock = [GSLazyRecursiveLock new];
}

Probably not optimal since GSLazyRecursiveLock does not implement newLockAt:
(or its super class NSRecursiveLock)
What is the best way to solve this?

Let me know if you need the preprocessed file.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?28900>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]