libobjc2 1.0 - a couple of problems

2010-10-05 Thread Pete French
Just playing around with this now on FreeBSD, and came across
a couple of curiosities. Firstly, the code only compiles with
clang, not with gcc. When I try it I get these errors...

selector_table.c: In function 'add_selector_to_table':
selector_table.c:244: warning: passing argument 2 of 'selector_insert' discards 
qualifiers from pointer target type
selector_table.c:246: error: assignment of read-only location
selector_table.c: In function 'register_selector_locked':
selector_table.c:266: error: assignment of read-only location
selector_table.c:267: error: assignment of read-only location
selector_table.c:277: error: assignment of read-only location
selector_table.c: In function 'objc_register_selector':
selector_table.c:309: error: assignment of read-only location
selector_table.c: In function 'objc_register_selector_copy':
selector_table.c:339: error: assignment of read-only location
selector_table.c:340: error: assignment of read-only location
*** Error code 1

Secondly, I use static libraries - this will not link unless -fPIC is
applied to the CFLAGS. There is no problem with the shared libraries,
only the static ones.

Adding -fPIC and compiling with clang works fine however.

cheers,

-pete.

PS: could we have the static library stuff added to the Makefile ? It's
only three additiuonal lines and one change.

___
Gnustep-dev mailing list
Gnustep-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/gnustep-dev


Do we want to apply for a FOSDEM dev room in 2011?

2010-10-05 Thread Lars Sonchocky-Helldorf

Hi 'steppers,

the next Free and Open Source software Developers European Meeting  
2011 - short FOSDEM 2011 - takes place in Brussels on 5 and 6  
February 2011 (a weekend): http://www.fosdem.org/2011/


The deadline for developers room application is the 16th of Oktober  
2010, so thats just 10 days away: http://www.fosdem.org/2011/ 
call_for_mainspeakers_devrooms

http://www.fosdem.org/2011/call_for_devrooms

I'd volunteer for organizing the dev room but for that I need the  
support of our community (because a dev room without developers isn't  
such a thing). To spare me sleepless nights and such like in the  
years before where initial support was lacking I am only going to  
apply for the dev room if I get lets say about five to ten people  
expressing their interest in a dev room. Just reply to this mail.


and yes, since projects are getting a room only for one day (seems to  
be the new policy since last year) we need to decide if we prefer  
Saturday from 12:00 to 18:00 or Sunday from 10:00 to 17:00



thanks,

Lars

___
Gnustep-dev mailing list
Gnustep-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/gnustep-dev


failing GSXML parsing

2010-10-05 Thread David Wetzel
Hi,

HTML code like:



fails:

(gdb) p  key
$3 = (class NSString *) 0x7f7ff9006470
(gdb) po  key
selected
(gdb) p obj  
$4 = (class NSString *) 0x0

[dict setObject: obj forKey: key]; <<-- will raise

My current local fix is:

static void
startElementFunction(void *ctx, const unsigned char *name,
  const unsigned char **atts)
{
  NSMutableDictionary *dict;

  NSCAssert(ctx,@"No Context");
  dict = [NSMutableDictionary dictionary];
  if (atts != NULL)
{
  int i = 0;

  while (atts[i] != NULL)
{
  NSString  *key = UTF8Str(atts[i++]);
  NSString  *obj = UTF8Str(atts[i++]);

// we seem to have a problem with
// 
// which produced an key "selected", but nil value for obj

if (obj) {
  [dict setObject: obj forKey: key];
} else {
  // log warning?
}

}
}
  [HANDLER startElement: UTF8Str(name)
 attributes: dict];
}

Which is probably not what we always want, because the 'selected' information 
is lost.
Probably we could just use NSNull as obj so that we know later that its just a 
dummy.

Cheers,

David


___
Gnustep-dev mailing list
Gnustep-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/gnustep-dev