Prof A Olowofoyeku (The African Chief) wrote:
Differences in the sources. You might try to make the changes manually, or someone who knows more about patch and stuff may be able to explain the differences.
Okay, I manually applied the changes now, and I'm back to the linker problems:
make[2]: Entering directory `/home/gerwinsk/mysoftware/gcc-3.2.3/gcc/p/utils' ../.././xgpc -B../.././ -L../.. -I../rts --automake --executable-file-name -W -Wall -Wmissing-prototypes -Wmissing-declarations -g -O2 --executable-path=. --unit-path=/home/gerwinsk/mysoftware/gcc-3.2.3/gcc/p/rts --unit-path=/home/gerwinsk/mysoftware/gcc-3.2.3/gcc/p/units `cat needed-options` "binobj.pas" ../../libgpc.a(rts.o)(.text+0xfdd): In function `p_CStringReadDir': C:/msys/1.0/home/gerwinsk/mysoftware/gcc-3.2.3/gcc/p/rts/rts.c:1546: undefined reference to `readdir' ../../libgpc.a(rts.o)(.text+0xfc1): In function `p_CStringOpenDir': C:/msys/1.0/home/gerwinsk/mysoftware/gcc-3.2.3/gcc/p/rts/rts.c:1541: undefined reference to `opendir' ../../libgpc.a(rts.o)(.text+0x100c): In function `p_CStringCloseDir': C:/msys/1.0/home/gerwinsk/mysoftware/gcc-3.2.3/gcc/p/rts/rts.c:1552: undefined reference to `closedir' make[2]: *** [binobj.exe] Error 1 make[1]: *** [pascal.utils] Error 2 make: *** [all-gcc] Error 2
I have /mingw/lib in my LIBRARY_PATH and LD_LIBRARY_PATH. What could prevent gcc from finding the libs?
______________________________________________________________ Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
On 15 Feb 2005 at 12:07, Markus Gerwinski wrote:
Prof A Olowofoyeku (The African Chief) wrote:
Differences in the sources. You might try to make the changes manually, or someone who knows more about patch and stuff may be able to explain the differences.
Okay, I manually applied the changes now, and I'm back to the linker problems:
make[2]: Entering directory `/home/gerwinsk/mysoftware/gcc-3.2.3/gcc/p/utils' ../.././xgpc -B../.././ -L../.. -I../rts --automake --executable-file-name -W -Wall -Wmissing-prototypes -Wmissing-declarations -g -O2 --executable-path=. --unit-path=/home/gerwinsk/mysoftware/gcc-3.2.3/gcc/p/rts --unit-path=/home/gerwinsk/mysoftware/gcc-3.2.3/gcc/p/units `cat needed-options` "binobj.pas" ../../libgpc.a(rts.o)(.text+0xfdd): In function `p_CStringReadDir': C:/msys/1.0/home/gerwinsk/mysoftware/gcc-3.2.3/gcc/p/rts/rts.c:1546: undefined reference to `readdir' ../../libgpc.a(rts.o)(.text+0xfc1): In function `p_CStringOpenDir': C:/msys/1.0/home/gerwinsk/mysoftware/gcc-3.2.3/gcc/p/rts/rts.c:1541: undefined reference to `opendir' ../../libgpc.a(rts.o)(.text+0x100c): In function `p_CStringCloseDir': C:/msys/1.0/home/gerwinsk/mysoftware/gcc-3.2.3/gcc/p/rts/rts.c:1552: undefined reference to `closedir' make[2]: *** [binobj.exe] Error 1 make[1]: *** [pascal.utils] Error 2 make: *** [all-gcc] Error 2
I remember seeing this problem before. You're nearly there :) The problem (IIRC) is solved either by having os-hacks.h (http://www.gnu-pascal.de/contrib/chief/win32/os-hacks.h) in your "/mingw/include" directory when configuring and building the compiler, or (more likely), in having libmingwex.a linked to your program. This however should be happening automatically (i.e., linking libmingwex.a).
What is the output of "gcc -print-file-name=libmingwex.a"?
Best regards, The Chief --------- Prof. Abimbola Olowofoyeku (The African Chief) Web: http://www.greatchief.plus.com/