Lynn's Legacy fails to compile on Linux

Game development specific discussions.
blahboybang
Posts: 385
Joined: Oct 16, 2005 0:15
Location: USA
Contact:

Lynn's Legacy fails to compile on Linux

Postby blahboybang » Jun 28, 2007 2:30

Using fbc v0.17b, I attempted to compile Lynn's Legacy from source.

Code: Select all

fuzzypig@fuzzypig-ubuntu:~/llsrc/ll$ make full=1 linux=1
fbc -d ll_main=-1 -maxerr inf   -lang deprecated -target linux -d ll_audio=-1 -c src/engine--audio.bas -o obj/engine--audio.o
fbc -d ll_main=-1 -maxerr inf   -lang deprecated -target linux -d ll_audio=-1 -c src/engine--controls.bas -o obj/engine--controls.o
fbc -d ll_main=-1 -maxerr inf   -lang deprecated -target linux -d ll_audio=-1 -c src/engine--debug.bas -o obj/engine--debug.o
fbc -d ll_main=-1 -maxerr inf   -lang deprecated -target linux -d ll_audio=-1 -c src/engine--gfx.bas -o obj/engine--gfx.o
fbc -d ll_main=-1 -maxerr inf   -lang deprecated -target linux -d ll_audio=-1 -c src/engine--gfx--box.bas -o obj/engine--gfx--box.o
fbc -d ll_main=-1 -maxerr inf   -lang deprecated -target linux -d ll_audio=-1 -c src/engine--gfx--object.bas -o obj/engine--gfx--object.o
fbc -d ll_main=-1 -maxerr inf   -lang deprecated -target linux -d ll_audio=-1 -c src/engine--ll.bas -o obj/engine--ll.o
fbc -d ll_main=-1 -maxerr inf   -lang deprecated -target linux -d ll_audio=-1 -c src/engine--lynn.bas -o obj/engine--lynn.o
fbc -d ll_main=-1 -maxerr inf   -lang deprecated -target linux -d ll_audio=-1 -c src/engine--obj.bas -o obj/engine--obj.o
fbc -d ll_main=-1 -maxerr inf   -lang deprecated -target linux -d ll_audio=-1 -c src/engine--obj--load.bas -o obj/engine--obj--load.o
fbc -d ll_main=-1 -maxerr inf   -lang deprecated -target linux -d ll_audio=-1 -c src/engine--seq.bas -o obj/engine--seq.o
fbc -d ll_main=-1 -maxerr inf   -lang deprecated -target linux -d ll_audio=-1 -c src/object--boss.bas -o obj/object--boss.o
fbc -d ll_main=-1 -maxerr inf   -lang deprecated -target linux -d ll_audio=-1 -c src/object--etc.bas -o obj/object--etc.o
fbc -d ll_main=-1 -maxerr inf   -lang deprecated -target linux -d ll_audio=-1 -c src/object--gfx.bas -o obj/object--gfx.o
fbc -d ll_main=-1 -maxerr inf   -lang deprecated -target linux -d ll_audio=-1 -c src/object--gfx--animation.bas -o obj/object--gfx--animation.o
fbc -d ll_main=-1 -maxerr inf   -lang deprecated -target linux -d ll_audio=-1 -c src/object--gfx--palette.bas -o obj/object--gfx--palette.o
fbc -d ll_main=-1 -maxerr inf   -lang deprecated -target linux -d ll_audio=-1 -c src/object--modification.bas -o obj/object--modification.o
fbc -d ll_main=-1 -maxerr inf   -lang deprecated -target linux -d ll_audio=-1 -c src/object--move.bas -o obj/object--move.o
fbc -d ll_main=-1 -maxerr inf   -lang deprecated -target linux -d ll_audio=-1 -c src/object--sound.bas -o obj/object--sound.o
fbc -d ll_main=-1 -maxerr inf   -lang deprecated -target linux -d ll_audio=-1 -c src/object--states.bas -o obj/object--states.o
fbc -d ll_main=-1 -maxerr inf   -lang deprecated -target linux -d ll_audio=-1 -c src/object--time.bas -o obj/object--time.o
fbc -d ll_main=-1 -maxerr inf   -lang deprecated -target linux -d ll_audio=-1 -c src/store--image.bas -o obj/store--image.o
fbc -d ll_main=-1 -maxerr inf   -lang deprecated -target linux -d ll_audio=-1 -c src/store--object.bas -o obj/store--object.o
fbc -d ll_main=-1 -maxerr inf   -lang deprecated -target linux -d ll_audio=-1 -c src/struct--box.bas -o obj/struct--box.o
fbc -d ll_main=-1 -maxerr inf   -lang deprecated -target linux -d ll_audio=-1 -c src/struct--engine.bas -o obj/struct--engine.o
fbc -d ll_main=-1 -maxerr inf   -lang deprecated -target linux -d ll_audio=-1 -c src/struct--image.bas -o obj/struct--image.o
fbc -d ll_main=-1 -maxerr inf   -lang deprecated -target linux -d ll_audio=-1 -c src/struct--lynn.bas -o obj/struct--lynn.o
fbc -d ll_main=-1 -maxerr inf   -lang deprecated -target linux -d ll_audio=-1 -c src/struct--map.bas -o obj/struct--map.o
fbc -d ll_main=-1 -maxerr inf   -lang deprecated -target linux -d ll_audio=-1 -c src/struct--object.bas -o obj/struct--object.o
fbc -d ll_main=-1 -maxerr inf   -lang deprecated -target linux -d ll_audio=-1 -c src/struct--seq.bas -o obj/struct--seq.o
fbc -d ll_main=-1 -maxerr inf   -lang deprecated -target linux -d ll_audio=-1 -c ../err/err.bas -o obj/err.o
fbc -d ll_main=-1 -maxerr inf   -lang deprecated -target linux -d ll_audio=-1 -c ../event/event.bas -o obj/event.o
fbc -d ll_main=-1 -maxerr inf   -lang deprecated -target linux -d ll_audio=-1 -c ../global/global.bas -o obj/global.o
fbc -d ll_main=-1 -maxerr inf   -lang deprecated -target linux -d ll_audio=-1 -c ../list/list_mem.bas -o obj/list_mem.o
fbc -d ll_main=-1 -maxerr inf   -lang deprecated -target linux -d ll_audio=-1 -c ../list/list_file.bas -o obj/list_file.o
../list/list_file.bas(105) error 14: Expected identifier, found 'var'
      dim as string var
                    ^
../list/list_file.bas(134) error 139: Auto variables are only valid in -lang fb, found 'var'
              var += " "
              ^
../list/list_file.bas(135) error 139: Auto variables are only valid in -lang fb, found 'var'
              var[iVar] = fileBuffer[iRead]
              ^
../list/list_file.bas(141) error 9: Expected expression, found 'var'
              chiLib.List.PushBack( node, trim( var ) )
                                                ^
../list/list_file.bas(146) error 139: Auto variables are only valid in -lang fb, found 'var'
              var = ""
              ^
../list/list_file.bas(168) error 9: Expected expression, found 'var'
              chiLib.List.PushBack( node, trim( var ) )
                                                ^
../list/list_file.bas(171) error 139: Auto variables are only valid in -lang fb, found 'var'
              var = ""
              ^
../list/list_file.bas(175) error 139: Auto variables are only valid in -lang fb, found 'var'
              var += " "
              ^
../list/list_file.bas(176) error 139: Auto variables are only valid in -lang fb, found 'var'
              var[iVar] = fileBuffer[iRead]
              ^
make: *** [obj/list_file.o] Error 1
fuzzypig@fuzzypig-ubuntu:~/llsrc/ll$


Everything runs smoothly until the last bit.

On another note, the precompiled config binary for Linux messes up the display and causes a segmentation fault on Ubuntu.
DrV
Site Admin
Posts: 2116
Joined: May 27, 2005 18:39
Location: Midwestern USA
Contact:

Postby DrV » Jun 28, 2007 2:36

You could probably just do a global search and replace on 'var' to some other appropriate variable name - 'var' is a keyword in 0.17b.
blahboybang
Posts: 385
Joined: Oct 16, 2005 0:15
Location: USA
Contact:

Postby blahboybang » Jun 28, 2007 16:40

I got it compiled, but ll dies on the fox image. Debugging output:

Code: Select all

(gdb) run
Starting program: /home/fuzzypig/llsrc/ll/ll
[Thread debugging using libthread_db enabled]
[New Thread -1212176704 (LWP 7259)]
[New Thread -1212179568 (LWP 7260)]
[New Thread -1220572272 (LWP 7262)]
*** glibc detected *** /home/fuzzypig/llsrc/ll/ll: free(): invalid next size (normal): 0x081a2fe8 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb7cda7cd]
/lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb7cdde30]
/usr/lib/libfmod.so(FSOUND_Memory_Pool_Free+0x40)[0xb7df4c4e]
======= Memory map: ========
08048000-08134000 r-xp 00000000 08:01 7094875    /home/fuzzypig/llsrc/ll/ll
08134000-08136000 rwxp 000ec000 08:01 7094875    /home/fuzzypig/llsrc/ll/ll
08136000-081c3000 rwxp 08136000 00:00 0          [heap]
b6a00000-b6a21000 rwxp b6a00000 00:00 0
b6a21000-b6b00000 ---p b6a21000 00:00 0
b6b8e000-b6b99000 r-xp 00000000 08:01 10567743   /lib/libgcc_s.so.1
b6b99000-b6b9a000 rwxp 0000a000 08:01 10567743   /lib/libgcc_s.so.1
b6bb9000-b6bf8000 rwxs 00000000 00:08 1015824    /SYSV00000000 (deleted)
b6bf8000-b6bf9000 ---p b6bf8000 00:00 0
b6bf9000-b73f9000 rwxp b6bf9000 00:00 0
b73f9000-b73fa000 ---p b73f9000 00:00 0
b73fa000-b7bfc000 rwxp b73fa000 00:00 0
b7bfc000-b7c00000 r-xp 00000000 08:01 10797349   /usr/lib/libXdmcp.so.6.0.0
b7c00000-b7c01000 rwxp 00003000 08:01 10797349   /usr/lib/libXdmcp.so.6.0.0
b7c01000-b7c03000 r-xp 00000000 08:01 10797318   /usr/lib/libXau.so.6.0.0
b7c03000-b7c04000 rwxp 00001000 08:01 10797318   /usr/lib/libXau.so.6.0.0
b7c04000-b7c3e000 r-xp 00000000 08:01 10567701   /lib/libncurses.so.5.5
b7c3e000-b7c47000 rwxp 00039000 08:01 10567701   /lib/libncurses.so.5.5
b7c47000-b7c49000 r-xp 00000000 08:01 10601005   /lib/tls/i686/cmov/libdl-2.5.so
b7c49000-b7c4b000 rwxp 00001000 08:01 10601005   /lib/tls/i686/cmov/libdl-2.5.so
b7c4b000-b7c70000 r-xp 00000000 08:01 10601007   /lib/tls/i686/cmov/libm-2.5.so
b7c70000-b7c72000 rwxp 00024000 08:01 10601007   /lib/tls/i686/cmov/libm-2.5.so
b7c72000-b7c73000 rwxp b7c72000 00:00 0
b7c73000-b7dae000 r-xp 00000000 08:01 10600999   /lib/tls/i686/cmov/libc-2.5.so
b7dae000-b7daf000 r-xp 0013b000 08:01 10600999   /lib/tls/i686/cmov/libc-2.5.so
b7daf000-b7db1000 rwxp 0013c000 08:01 10600999   /lib/tls/i686/cmov/libc-2.5.so
b7db1000-b7db4000 rwxp b7db1000 00:00 0
b7db4000-b7e12000 r-xp 00000000 08:01 4784162    /usr/lib/libfmod.so
b7e12000-b7e21000 rwxp 0005d000 08:01 4784162    /usr/lib/libfmod.so
b7e21000-b7e4f000 rwxp b7e21000 00:00 0
b7e4f000-b7e62000 r-xp 00000000 08:01 10601027   /lib/tls/i686/cmov/libpthread-2.5.so
b7e62000-b7e64000 rwxp 00013000 08:01 10601027   /lib/tls/i686/cmov/libpthread-2.5.so
b7e64000-b7e66000 rwxp b7e64000 00:00 0
b7e66000-b7e6d000 r-xp 00000000 08:01 10797644   /usr/lib/libXrender.so.1.3.0
b7e6d000-b7e6e000 rwxp 00006000 08:01 10797644   /usr/lib/libXrender.so.1.3.0
b7e6e000-b7e73000 r-xp 00000000 08:01 6848717    /usr/lib/libXrandr.so.2.1.0
b7e73000-b7e74000 rwxp 00005000 08:01 6848717    /usr/lib/libXrandr.so.2.1.0
b7e74000-b7e83000 r-xp 00000000 08:01 10799843   /usr/lib/libXpm.so.4.11.0
b7e83000-b7e84000 rwxp 0000f000 08:01 10799843   /usr/lib/libXpm.so.4.11.0
b7e84000-b7e85000 rwxp b7e84000 00:00 0
b7e85000-b7e92000 r-xp 00000000 08:01 10798016   /usr/lib/libXext.so.6.4.0
b7e92000-b7e93000 rwxp 0000d000 08:01 10798016   /usr/lib/libXext.so.6.4.0
b7e93000-b7f80000 r-xp 00000000 08:01 10797582   /usr/lib/libX11.so.6.2.0
b7f80000-b7f84000 rwxp 000ed000 08:01 10797582   /usr/lib/libX11.so.6.2.0
b7f84000-b7f97000 r-xp 00000000 08:01 10799825   /usr/lib/libz.so.1.2.3
b7f97000-b7f98000 rwxp 00012000 08:01 10799825   /usr/lib/libz.so.1.2.3
b7fa7000-b7fab000 r-xp 00000000 08:01 6848721    /usr/lib/libXfixes.so.3.1.0
b7fab000-b7fac000 rwxp 00003000 08:01 6848721    /usr/lib/libXfixes.so.3.1.0
b7fac000-b7fb4000 r-xp 00000000 08:01 6848725    /usr/lib/libXcursor.so.1.0.2
b7fb4000-b7fb5000 rwxp 00007000 08:01 6848725    /usr/lib/libXcursor.so.1.0.2
b7fb5000-b7fb9000 rwxp b7fb5000 00:00 0
b7fb9000-b7fd2000 r-xp 00000000 08:01 10568445   /lib/ld-2.5.so
b7fd2000-b7fd4000 rwxp 00019000 08:01 10568445   /lib/ld-2.5.so
bfca7000-bfcbc000 rwxp bfca7000 00:00 0          [stack]
ffffe000-fffff000 r-xp 00000000 00:00 0          [vdso]

Program received signal SIGABRT, Aborted.
[Switching to Thread -1212176704 (LWP 7259)]
0xffffe410 in __kernel_vsyscall ()


The config program still dies with a segmentation fault.

However, the precompiled binary of ll works fine.
cha0s
Site Admin
Posts: 5317
Joined: May 27, 2005 6:42
Location: Illinois
Contact:

Postby cha0s » Jun 28, 2007 19:40

Dunno, it's not being maintained anymore.

Return to “Game Dev”

Who is online

Users browsing this forum: No registered users and 1 guest