I just registered to say that I'm having the same problem at HAVE_INITFINI_ARRAY ( I'm on a Mac OSX 10.4.11 ). I've tried gcc, gcc4.3 , make 3.79 3.8 and 3.81 ...
Then i tried to define it by hand ( with #define HAVE_INITFINI_ARRAY , before the evil #ifdef ). Then it compiled 'til the shl_load part, where it failed.
Googling around, i found a japanese (google-translated to english) blog, saying that this problem is caused by libtool.mp4; edited it, and deleted "configure".
Running the buildscript again, this time the error is at building the nds library. This is the error now:
Code: Select all
/opt/devkitPro/devkitARM/lib/gcc/arm-eabi/4.3.0/../../../../arm-eabi/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
make[2]: *** [/Users/wendel/Desktop/downloads/buildscripts/libnds-20071023/basic.elf] Error 1
make[1]: *** [build] Error 2
make: *** [basic.arm7] Error 2
As i can see, fooling the source by #defining HAVE_INITFINI_ARRAY wasn't enough; whatever "initfini" is, it is needed here (the error says ".init_array" and ".fini_array").
As I don't have even a clue about what those init/fini array things are... Is there some dependence I'm missing, that should provide them ? (so I wouldn't even need to fake that #define)
update: oops, the error message isn't complete... but there was a lot of errors about assembly-like sessions, like ".init_array" and ".fini_array"...