Error, could not fixup imports, stubs out of order. Help?

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

Moderators: cheriff, TyRaNiD

Post Reply
User avatar
Aura
Posts: 37
Joined: Tue Jul 24, 2007 4:30 am

Error, could not fixup imports, stubs out of order. Help?

Post by Aura »

Whenever I try to compile my work I get that error, I'm not sure why but it generally happens when I've used certain functions, namely sctrlKernelExitVSH(struct SceKernelLoadExecVSHParam *param); (from one of the OE/M33 SDKs), and whilst trying to load the exception handler to test with on this thread.

The full error is:
Error, could not fixup imports, stubs out of order.
Ensure the SDK libraries are linked in last to correct this error

I've tried linking the SDK libraries in last, and I've shifted my source codes and libraries around so much, but it appears to have no effect. I'm guessing someone is likely to have had a similar but I couldn't find any that were of help.

My makefile (excuse the mess):

Code: Select all

TARGET = project4
BUILD_PRX = 1

PSP_FW_VERSION = 352

OBJS =\
../KMode/Impose/imposehandler.o\
../KMode/Filehandler/filehandler.o\
\
../source/setting.o\
\
../source/mp3.o\
../source/OSK.o\
../source/messagebox.o\
../source/filemanager.o\
../source/loadfile.o\
../source/imageviewer.o\
../source/filebrowser.o\
../source/config.o\
../source/busspeed.o\
../source/error.o\
../source/about.o\
../source/system.o\
../source/font.o\
../source/clock.o\
../source/lkmp.o\
../source/hex.o\
../source/volumebar.o\
../source/screensaver.o\
\
../common/exception.o\
../common/graphics.o\
../common/intraFont.o\
../common/framebuffer.o\
\
../source/main.o	


CFLAGS = -O3 -frename-registers -ffast-math -fomit-frame-pointer -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

INCDIR =
LIBDIR =
LIBS =\
-lpspmodulemgr_user2 \
-lmad -lpspaudiolib -lpspaudio\
-lpspsystemctrl_user -lpspumd -lpsppower \
-lpsprtc -lpspdebug -lbetalock -lpspwlan \
-lpspgu -lpng -ljpeg -lpspge -lz -lm -lpspgum -lpspaudiocodec -lpspaudiolib -lpspsystemctrl_user

LDFLAGS += -mno-crt0

PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak
Thanks in advance for any help.
-Aura
Post Reply