Forums Archived

The forums are being archived. See this topic for more information.

Howto build Rubygame on Mandriva 2009.*

Get help and support with Rubygame

Howto build Rubygame on Mandriva 2009.*

Postby dhaillant » Wed Feb 11, 2009 8:26 pm

Since Mandriva 2009.0, I could not use Rubygame.

I encountered the following error :
rubygame_core.so: undefined symbol: SDL_FreeSurface

(cf. bug https://qa.mandriva.com/show_bug.cgi?id=47417)

To correct this, I modified the Rakefile (diff) :
Code: Select all
232c232
<       link_command = "#{from_env_or_config('LDSHARED')} #{LINK_FLAGS} #{@lflags} -o #{dynlib_full} #{task.prerequisites.join(' ')}"
---
>       link_command = "#{from_env_or_config('LDSHARED')} #{@lflags} -o #{dynlib_full} #{task.prerequisites.join(' ')} #{LINK_FLAGS}"
dhaillant
 
Posts: 2
Joined: Mon Feb 09, 2009 9:50 pm

Re: Howto build Rubygame on Mandriva 2009.*

Postby dhaillant » Wed Feb 11, 2009 8:36 pm

Previous diff was for 2.1.0
Here is the diff for 2.4.1 version :

Code: Select all
299c299
<       link_command = "#{from_env_or_config('LDSHARED')} #{LINK_FLAGS} #{@lflags} -o #{dynlib_full} #{task.prerequisites.join(' ')}"
---
>       link_command = "#{from_env_or_config('LDSHARED')} #{@lflags} -o #{dynlib_full} #{task.prerequisites.join(' ')} #{LINK_FLAGS}"
dhaillant
 
Posts: 2
Joined: Mon Feb 09, 2009 9:50 pm

Re: Howto build Rubygame on Mandriva 2009.*

Postby jacius » Thu Feb 12, 2009 8:18 am

Ah, I wasn't aware that the order of those flags/libs mattered. I'm curious what changed in Mandriva that revealed the issue. Are you using GCC 4.3, perhaps?

Anyway, I'll apply and test the diff tomorrow. Assuming it doesn't break anything here, it will be in the next release.
User avatar
jacius
Site Admin
 
Posts: 131
Joined: Fri Feb 06, 2009 11:13 pm


Return to Help & Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron