forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

psp-fix-imports

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Sun Oct 07, 2007 5:15 am    Post subject: psp-fix-imports Reply with quote

Here's an interesting problem - music_prx was just updated to 3.71. I wanted to add ogg support to it, so I first got it compiling on my system, then started to add some code for ogg. Compiling it the way it is works, but making any changes makes it fail with the error:

Code:
Error, could not fixup imports, stubs out of order.


The issue is the makefile - here's what it normally is.

Code:
LIBS = -lpspaudiocodec -lpspkernel -lpsplibc -lpspsysmem_user -lpspsystemctrl_kernel


That works. If you try to add the tremor libs to it, you get the error message. You have to move -lpspkernel to the end before you no longer get the error message. But then it no longer works. For example, with no changes for ogg at all, just moving the -lpspkernel to the end, as so, fails.

Code:
LIBS = -lpspaudiocodec -lpsplibc -lpspsysmem_user -lpspsystemctrl_kernel -lpspkernel


But it works fine with pspkernel NOT at the end. So you can either have it work, or have it at the end, not both. This is really freaky.
Back to top
View user's profile Send private message AIM Address
TyRaNiD



Joined: 18 Jan 2004
Posts: 918

PostPosted: Mon Oct 08, 2007 12:35 am    Post subject: Reply with quote

Not especially considering the link order.
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Mon Oct 08, 2007 1:55 am    Post subject: Reply with quote

Considering libs are supposed to be in order of dependencies, psp-fix-imports clearly needs improvement. How can it require that certain libs be LAST when dependencies require them to be placed earlier (the problem here)? If someone can explain psp-fix-imports, I'll take a shot at fixing it. Otherwise, I'll have to spend some time trying to learn how it works on my own. :(
Back to top
View user's profile Send private message AIM Address
TyRaNiD



Joined: 18 Jan 2004
Posts: 918

PostPosted: Mon Oct 08, 2007 1:59 am    Post subject: Reply with quote

All you need to do is put the import libraries last in the library order, That will satisfy psp-fixup-imports and those libraries do not have any other dependencies so I don't know what you are talking about.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group