I am having a problem compiling DOSEMU 0.60.3. Everything is fine until it
tries to compile libdosemu. Here's the error message I get:
gcc -Ttext 0x20000000 -o libdosemu-0.60.3 \
-nostdlib emu.o data.o -Llib -L. \
-lvideo -ldosemu -lpic -ldpmi -lmfs -linit -lserial -lkeyboard
-lmouse -lnet
-ldrivers bios/bios.o -L/lib -lX11 -u _XOpenDisplay -lslang -lc
gcc: 0x20000000: No such file or directory
It appears that gcc is mistaking the hex address of the text segment as
an input file name. I have tried removing the -Ttext option, but then I
get errors about undefined symbols
From what I can tell, all this is doing is creating a library by calling
ld and letting it do the work. So, I tried the following, it didn't work
either:
ld -Ttext 0x20000000 -o libdosemu-0.60.3 -nostdlib emu.o
data.o -Llib -L. -lvideo -ldosemu -lpic -ldpmi -lmfs -linit -lserial
-lkeyboard
-lmouse -lnet -ldrivers bios/bios.o -L/lib -lX11 -u _XOpendDisplay
-lslang -lc
ld: warning: cannot find entry symbol _start; defaulting to 20000000
stdlib: Not enough room for program headers (allocated 5, need 6)
ld: final link failed: Bad value
I have tried both gcc 2.7.0 and 2.7.2.
Can anyone suggest a solution to my problem? I would greatly appreiciate it...
--
/* Daniel */
WWW: http://www.infinet.com/~drk
"Fear is only afraid of the absence of itself." - Mediocrotes