OESF Portables Forum

Everything Else => Zaurus - Everything Development => Distros, Development, and Model Specific Forums => Archived Forums => Qt/Qtopia => Topic started by: cmisip on July 05, 2004, 02:46:59 am

Title: running duke3d : "undefined symbol: __muldi3"
Post by: cmisip on July 05, 2004, 02:46:59 am
Anybody know what this means and how to fix it?

Tried to cross compile duke3d for the zaurus.

Thanks.
Title: running duke3d : "undefined symbol: __muldi3"
Post by: Zazz on July 05, 2004, 10:26:12 am
It is part of libgcc. Try adding -lgcc_s to the LIBS.
Title: running duke3d : "undefined symbol: __muldi3"
Post by: cmisip on July 05, 2004, 02:46:15 pm
It cannot find -lgcc_s



/usr/local/arm-linux/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status
make: *** [build] Error 1
Title: running duke3d : "undefined symbol: __muldi3"
Post by: Zazz on July 05, 2004, 03:07:21 pm
If there is a libgcc_s.so.1 somewhere in your arm devel tree, make a symlink to libgcc_s.so and try linking with -lgcc_s again. Otherwise try linking with -lgcc .
Title: running duke3d : "undefined symbol: __muldi3"
Post by: cmisip on July 05, 2004, 07:43:17 pm
It seems I dont have this anywhere.  I have libgcc.a.

Do I need to build libgcc_s.so ?

I came upon these instructions :

http://festvox.org/docs/speech_tools-1.2.0/x17375.htm (http://festvox.org/docs/speech_tools-1.2.0/x17375.htm)

Is libgcc_s.so simply the shared version of libgcc.a.

It seems I could build libgcc.so this way.  


Thanks
Title: running duke3d : "undefined symbol: __muldi3"
Post by: Zazz on July 05, 2004, 08:07:50 pm
No need to build libgcc_s.so. Does the linking step find the muldi3 thing with -lgcc ?
Title: running duke3d : "undefined symbol: __muldi3"
Post by: cmisip on July 05, 2004, 08:45:46 pm
Compile does not complain when I add -lgcc.  However, when the binary is transferred to the zaurus and run, it complains of not finding muldi3.  I dont see any libgcc.so in the zaurus.  Maybe I need to transfer the libgcc.so I compiled to the Z?
Title: running duke3d : "undefined symbol: __muldi3"
Post by: cmisip on July 05, 2004, 10:10:02 pm
I created libgcc.so.2.95.3 and created a symlink to it with libgcc_s.so . I copied it over to the lib directory in my laptop arm-linux toolchain.  Recompiled duke3d and transferred duke3d to the zaurus along with the shared libgcc_s.  

Duke3d is now RUNNING on the Z!
I am using the shareware demo.

Music and sound is a little garbled though.  It was also garbled on the laptop with the x86 binary.  Maybe I need to tweak the cfg file.  

Loading time is a little long but seems to be playable.
Title: running duke3d : "undefined symbol: __muldi3"
Post by: cmisip on July 05, 2004, 10:20:35 pm
Thanks Zazz
Title: running duke3d : "undefined symbol: __muldi3"
Post by: scoutme on July 06, 2004, 12:05:37 pm
can you post a download link? or package it and put it into a feed? thx
Title: running duke3d : "undefined symbol: __muldi3"
Post by: omega on July 06, 2004, 12:28:49 pm
yeah we need to try this! ;-)
Title: running duke3d : "undefined symbol: __muldi3"
Post by: _Psycho on July 06, 2004, 02:42:56 pm
I really need to put more time for zports
Title: running duke3d : "undefined symbol: __muldi3"
Post by: cmisip on July 06, 2004, 05:55:04 pm
Its up on my website.  

http://cmisip.home.insightbb.com/zaurus.htm (http://cmisip.home.insightbb.com/zaurus.htm)

Scroll all the way to the bottom. Instructions are there too.

I wish somebody can figure out how to fix the sound effects.

By the way, you need sdl and sdl-mixer.

Have fun.
Title: running duke3d : "undefined symbol: __muldi3"
Post by: padishah_emperor on July 06, 2004, 06:15:22 pm
NICE  
Title: running duke3d : "undefined symbol: __muldi3"
Post by: cmisip on July 24, 2004, 12:03:20 am
Has anybody tried it yet?

Poking around at the source, It seems by only loading the smaller sound samples in  memory, the problem with the sound samples all playing at the start of the game goes away.  I wonder how it works in a machine with 64 MB memory.
Title: running duke3d : "undefined symbol: __muldi3"
Post by: Corona_B on July 27, 2004, 01:17:44 am
any chance that will make it into ipk form anytime soon?  I'm certain that the community would really like it
Title: running duke3d : "undefined symbol: __muldi3"
Post by: cmisip on August 07, 2004, 06:20:32 pm
Still working on it.  Got sidetracked with Sarien, Freesci and Heretic.

I wish somebody with a 64 M machine will try it out though.  I am running into a problem with the function that allocates memory for the sound samples.   I am wondering if this is because the Z 5600 only has 32 MB of RAM.
Title: running duke3d : "undefined symbol: __muldi3"
Post by: Foxdie on August 07, 2004, 07:08:41 pm
I'll quite happily test it on a C760
Title: running duke3d : "undefined symbol: __muldi3"
Post by: nyar on October 17, 2004, 08:54:25 am
& I'll happily test it on my SL860.
Title: running duke3d : "undefined symbol: __muldi3"
Post by: anunakin on December 02, 2004, 02:23:41 pm
I use Gentoo linux on PC, and on install process of Duck3D this requieres

timidity                                  and
timidity-eawpatches

   I think the sounds inssues can have a soluiton when install timidity!