home *** CD-ROM | disk | FTP | other *** search
-
- I am having great difficulty compiling Objective-C programs using the
- GNU Objective-C Library classes under NetBSD.
- (Anonymous ftp at iesd.auc.dk:pub/ObjC/libcoll-930531.tar.z)
-
- The libcoll.a library compiles fine (after fixing two bugs in the file
- Time.m and making sure the Objective-C includes are in the proper
- include paths for cpp), but when I try to compile and link the test
- programs, I get an error message similar to:
-
- ld: bad magic number in libcoll.a (#1)
-
- It will compile, link, and run fine under AmigaDOS. It doesn't work
- under NetBSD.
-
- After a bit of snooping around, I believe the ld program is screwed up
- and needs to be fixed.
-
- To verify that ld is the culprit, I copied the libcoll.a and libobjc.a
- (which I had to compile manually, as mtw forgot to include it...oops.
- :-) ) libraries from the NetBSD filesystem and LINKED them under
- AmigaDOS.
-
- No errors, the test programs worked perfectly!
-
- My guess is that Markus forgot to update ld (and as...) when he ported
- gcc 2.4.5.
-
-
- gcc, after test1.o is generated, is invoked under AmigaDOS as:
-
- >gcc -v -g -I. test1.o -o test1 -L.. -lcoll -lobjc
- Reading specs from gcc:compilers/amigados/2.4.5/specs
- gcc version 2.4.5
- gcc:compilers/amigados/2.4.5/ld -amiga-debug-hunk -o test1 gcc:lib/crt0.o -L..
- -Lgcc:compilers/amigados/2.4.5 -Lgcc:lib test1.o -lcoll -lobjc -lgcc -lc -lgcc
-
- Under NetBSD, the output is similar, yet the bad magic number error shows up.
-
- Does anyone have a solution? I REALLY need to get this working for my
- UNIX project at school. It can't be done under AmigaDOS. :-(
-
- Thanks.
- ---------------------------------------------
- Max Leung mleung@eigen.ee.ualberta.ca
-
-