newbie questions - porting dgen (Genesis EMU) /w MIPSpro unresolved test symbol "pow
#1
newbie questions - porting dgen (Genesis EMU) /w MIPSpro unresolved test symbol "pow
so I have been working on compiling dgen 1.23 for IRIX with MIPSpro. I'm sort of stuck and wondering if someone with a bit more expertise can give me a pointer.

here is the error:

Code:
bash-4.2$ CC  -g -lm -I/usr/nekoware/include/SDL -D_GNU_SOURCE=1 -D_SGI_MP_SOURCE -lm -o dgen  rc.o romload.o md.o mdfr.o md-joe.o decod
e.o vdp.o save.o graph.o myfm.o fm.o sn76496.o ras.o main.o mem.o -Lsdl -lpd  -Lmusa -lmusa68  -L/usr/nekoware/lib -Wl,-rpath,/usr/nekowa
re/lib -lSDL -lpthread  md-phil.o zz80.o
ld32: WARNING 84 : /usr/lib32/mips4/libm.so is not used for resolving any symbol.
ld32: ERROR   33 : Unresolved text symbol "pow" -- 1st referenced by fm.o.
        Use linker option -v to see when and which objects, archives and dsos are loaded.  
ld32: ERROR   33 : Unresolved text symbol "sin" -- 1st referenced by fm.o.
        Use linker option -v to see when and which objects, archives and dsos are loaded.  
ld32: ERROR   33 : Unresolved text symbol "log" -- 1st referenced by fm.o.
        Use linker option -v to see when and which objects, archives and dsos are loaded.  
ld32: INFO    152: Output file removed because of error.
-bash-4.2$

I researched this and I found that I need to link the math library via "-lm", so I did that. The "fm.c" file has the <Math.h> header, it is compiled with -lm, and get when I do "nm fm.o" it show these math library symbols as unresolved..

Anyone have any insight? I included the dir with source and the makefiles I used.

BTW I compiled this with gcc, it loads, shows the sega screen, then segmentation faults - so It might not work anyway (endian issue?), but its a good learning experience for me.

also BTW2 I tackled 1.33, after many hours (and some IRC help) got it to compile with gcc, but then I made a fatal mistake and didn't save everything right then and there - I started making changes to the source again to compile it with MIPSpro and really hit some serious gcc-isms I have no clue how to work around - but I'm currently trying to redo the work I did to get gcc to compile.

ps: anyone have a copy of the wiki from nekochan about guide to porting stuff?


Attached Files
.gz dgen-sdl-1.23.MIPSpro.Makefiles.tar.gz Size: 402.18 KB  Downloads: 330
gijoe77
Tezro

Trade Count: (1)
Posts: 644
Threads: 34
Joined: Jun 2018
Find Reply
06-28-2018, 02:42 PM


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)