| View previous topic :: View next topic |
| Author |
Message |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Sun Oct 07, 2007 5:15 am Post subject: psp-fix-imports |
|
|
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 |
|
 |
TyRaNiD
Joined: 18 Jan 2004 Posts: 918
|
Posted: Mon Oct 08, 2007 12:35 am Post subject: |
|
|
| Not especially considering the link order. |
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Mon Oct 08, 2007 1:55 am Post subject: |
|
|
| 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 |
|
 |
TyRaNiD
Joined: 18 Jan 2004 Posts: 918
|
Posted: Mon Oct 08, 2007 1:59 am Post subject: |
|
|
| 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 |
|
 |
|