psp-fix-imports

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

psp-fix-imports

Post by J.F. »

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: Select all

Error, could not fixup imports, stubs out of order.
The issue is the makefile - here's what it normally is.

Code: Select all

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: Select all

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.
TyRaNiD
Posts: 907
Joined: Sun Jan 18, 2004 12:23 am

Post by TyRaNiD »

Not especially considering the link order.
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

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. :(
TyRaNiD
Posts: 907
Joined: Sun Jan 18, 2004 12:23 am

Post by TyRaNiD »

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.
Post Reply