|
From: James T. <jim...@ad...> - 2001-10-02 04:36:20
|
Okay,
I found _alloca in lib/crtdll/stdlib/malloc.c and added it to
lib/msvcrt/stdlib/malloc.c. It worked! But I do not think this
was the right fix. I'm not sure if it is needed in kernel32.a
or any other lib files. It just failed compiling in apps/files.
Maybe my tool lib directories are not set up right? My other apps
worked, cpp and c window apps.
make -C apps/file
make[1]: Entering directory `/scsi/reactos/apps/file'
i386-mingw32-gcc -I./ -I../../include -pipe -march=i386 -c file.c -o file.o
i386-mingw32-gcc -Wl,--subsystem,console \
-Wl,--entry,_mainCRTStartup \
-o file.nostrip.exe \
file.o
file.o(.text+0x111):file.c: undefined reference to `_alloca'
make[1]: *** [file.nostrip.exe] Error 1
make[1]: Leaving directory `/scsi/reactos/apps/file'
make: *** [file] Error 2
Let me know, thanks,
James
On Tue, 2 Oct 2001, James Tabor wrote:
> Hi,
> I DL the CVS and ported all the gcc stuff to linux. Not bad,
> my programs compiled and they ran on my Win 98 2e with out
> any problems. :)
>
> Now I compiles ROS I ran into this. The only lines I changed
> in rules.mak was the HOST = mingw32-linux and PREFIX = i386-mingw32-.
>
> So the error I get is this:
>
> make -C lib/msvcrt
> make[1]: Entering directory `/scsi/reactos/lib/msvcrt'
> i386-mingw32-dlltool --as=i386-mingw32-as --dllname msvcrt.dll \
> --def ./msvcrt.def \
> --output-lib ../../dk/w32/lib/msvcrt.a \
> --kill-at
> i386-mingw32-gcc -Wl,--base-file,base.tmp \
> -Wl,--entry,_DllMain@12 \
> -nostartfiles -mdll -Wl,--image-base,0x78000000 \
> -o junk.tmp -lgcc \
> ./msvcrt.coff msvcrt.o ../../dk/w32/lib/kernel32.a
> msvcrt.o(.text+0xc57a):sscanf.c: undefined reference to `_alloca'
> msvcrt.o(.text+0xd1bb):vfprintf.c: undefined reference to `_alloca'
> msvcrt.o(.text+0xd7ef):vfprintf.c: undefined reference to `_alloca'
> msvcrt.o(.text+0x105bc):vfscanf.c: undefined reference to `_alloca'
> msvcrt.o(.text+0x117b4):vfwprint.c: undefined reference to `_alloca'
> msvcrt.o(.text+0x11e08):vfwprint.c: more undefined references to `_alloca' follow
> make[1]: *** [msvcrt.nostrip.dll] Error 1
> make[1]: Leaving directory `/scsi/reactos/lib/msvcrt'
> make: *** [msvcrt] Error 2
>
> I hope this helps, Please let me know.
> James
>
>
====================================================
= To remove yourself from this mailing list, go to =
= http://www.reactos.com/home/mailing.html =
====================================================
|