On 2/20/07, Brandon J. Van Every <[EMAIL PROTECTED]> wrote:
It builds successfully on a clean (no Chicken) Cygwin system. However, when doing desultory acceptance testing, I accidentally typed "csc -static foo.scm" (instead of "csc -shared foo.scm") and got this: x.o:x.c:(.text+0x3): undefined reference to `__imp__C_temporary_stack' x.o:x.c:(.text+0x6a): undefined reference to `__imp__C_stack_limit' x.o:x.c:(.text+0x7f): undefined reference to `__imp__C_temporary_stack' x.o:x.c:(.text+0xa4): undefined reference to `__imp__C_fromspace_top' x.o:x.c:(.text+0xab): undefined reference to `__imp__C_fromspace_limit' x.o:x.c:(.text+0xb8): undefined reference to `__imp__C_temporary_stack' x.o:x.c:(.text+0xd7): undefined reference to `__imp__C_temporary_stack' x.o:x.c:(.text+0x12d): undefined reference to `__imp__C_fromspace_top' x.o:x.c:(.text+0x173): undefined reference to `__imp__C_temporary_stack' x.o:x.c:(.text+0x193): undefined reference to `__imp__C_timer_interrupt_counter' x.o:x.c:(.text+0x1b0): undefined reference to `__imp__C_stack_limit' x.o:x.c:(.text+0x209): undefined reference to `__imp__C_timer_interrupt_counter' x.o:x.c:(.text+0x226): undefined reference to `__imp__C_stack_limit' x.o:x.c:(.text+0x280): undefined reference to `__imp__C_timer_interrupt_counter' x.o:x.c:(.text+0x29d): undefined reference to `__imp__C_stack_limit' x.o:x.c:(.text+0x311): undefined reference to `__imp__C_timer_interrupt_counter' x.o:x.c:(.text+0x32e): undefined reference to `__imp__C_stack_limit' collect2: ld returned 1 exit status *** Shell command terminated with exit status 1: gcc x.o /usr/local/lib/libchicken.a -o x -L/usr/local/lib -Wl,-R/usr/local/lib -static -ldl -lffi -lm /usr/local/lib/libchicken.a Is this a bug, or is it simply that Cygwin doesn't support -static? I get essentially the same error with MinGW / MSYS, CMake build.
John, Brandon: does it work when you add "-C -DC_NO_PIC_NO_DLL" to the csc invocation line? cheers, felix _______________________________________________ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users