[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re[2]: Frameworks, derived_src and allClasses
From: |
Manuel Guesdon |
Subject: |
Re[2]: Frameworks, derived_src and allClasses |
Date: |
Mon, 12 Feb 2001 00:05:22 +0100 (CET) |
Hi Mirko,
On Sun, 11 Feb 2001 23:35:25 +0000 <address@hidden> wrote:
>| You wrote:
>|
>| > It seems that allClasses array is not well generated in derived_src file.
>| >
>| > For exemple, in gsweb/GSWeb.framework/derived_src/NSFramework_GSWeb.m, we
>get:
>| > static NSString *allClasses[] = {,NULL};
>|
>| Which system ?
>| I know that the current code does not work on NetBSD.
On Linux kernel 2.2.17
>| > Any idea ?
>|
>| You have to check in which section gcc put the class code.
>|
>| The current code which need to be changed to support various systems (in
>| framework.make):
>|
>| for f in $$objcfiles; do \
>| sym=`nm -Pg $$f | awk '/__objc_class_name_/ {if($$2 == "R") print
>$$1}' |
>| sed 's/__objc_class_name_//'`; \
>| classes="$$classes $$sym"; \
>| done; \
Manually, I've tried this kind code without result.
With this one, it seems to work:
nm -Pg
/dvlp/gnustep/gsweb/GSWExtensionsGSW.framework/shared_debug_obj/ix86/linux-gnu/gnu-gnu-gnu-xgps/*.o
| grep "__objc_class_name_.* R" | sed 's/__objc_class_name_//' | sed 's/
.*$//'
I don't know awk :-(
Does someone else have this problem (may be it's only on my system) ?
Could cou give me different steps result (nm -Pg, awk result on it and sed
result on it) so I can try to see where is
the problem ?
Manuel
--
______________________________________________________________________
Manuel Guesdon - Software Builders <address@hidden>
14 rue Jean-Baptiste Clement - 93200 Saint-Denis - France
Tel: +33 1 4940 0999 - Fax: +33 1 4940 0998