undefined reference to `sctrlKernelLoadExecVSHWithApitype

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

Moderators: cheriff, TyRaNiD

Post Reply
coolkehon
Posts: 355
Joined: Mon Oct 20, 2008 5:44 am

undefined reference to `sctrlKernelLoadExecVSHWithApitype

Post by coolkehon »

i get an error that i cant figure out i have all the include i'll also post libs that are in makefile note that not all libs are used but may / will be soon can anyone help me with this

Code: Select all

main.o: In function `evalSelected()':
main.cpp:(.text+0x23d4): undefined reference to `sctrlKernelLoadExecVSHWithApitype(int, char const*, SceKernelLoadExecVSHParam*)'
collect2: ld returned 1 exit status
make: *** [make.elf] Error 1

Code: Select all

STDLIBS = -lpspctrl -lpspumd -lpsprtc -lpsppower 
STDLIBS += -lpspaudio -lpsphprm -lpspgu -lpspgum 
STDLIBS += -lpspmpeg -lpsprtc -lpspsdk -lmikmod 
STDLIBS += -lpspaudiocodec -lpspatrac3 -lpng 
STDLIBS += -lAac -lFLAC -lvorbisidec -lmad 
STDLIBS += -lpspusb -lpspusbstor -lpspkubridge -lpspsystemctrl_user 
STDLIBS += -lc -lm -lz -lstdc++ -ljpeg 

YOURLIBS = -lobjectdraw -losl -lconfig -lconfig++ \
		   -lanytype -lunzip 
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

-lpspkernel maybe?
User avatar
Torch
Posts: 825
Joined: Wed May 28, 2008 2:50 am

Post by Torch »

#include <systemctrl.h> ?
-lpspsystemctrl_kernel ?
coolkehon
Posts: 355
Joined: Mon Oct 20, 2008 5:44 am

Post by coolkehon »

nope an here is full makefile its not that include isnt there its just that at the end it doesnt find i'll also post full output this is for another project so source cant be released is there another way to launch an eboot besides this method that will work without m33 libs

makefile

Code: Select all

PSPSDK=$&#40;shell psp-config --pspsdk-path&#41;
PSPBIN = $&#40;PSPSDK&#41;/../bin
MAKE = $&#40;shell make&#41;

TARGET = make

OBJS = main.o \
	   events/sys_redraw.o \
	   events/callbacks.o \
	   Drawing/ScrollingMenu.o 

INCDIR =
LIBDIR =

CFLAGS = -G4 -Wall -O2 -G0 
CXXFLAGS = $&#40;CFLAGS&#41; -fexceptions -fno-rtti
ASFLAGS = $&#40;CFLAGS&#41;  

LDFLAGS =

INCS = -I/usr/local/pspdev/include \
	   -I/usr/local/pspdev/psp/include \
	   -I/usr/local/pspdev/psp/sdk/include 

CFLAGS &#58;= $&#40;INCS&#41;
  
STDLIBS = -lpspctrl -lpspumd -lpsprtc -lpsppower 
STDLIBS += -lpspaudio -lpsphprm -lpspgu -lpspgum 
STDLIBS += -lpspmpeg -lpsprtc -lpspsdk -lmikmod 
STDLIBS += -lpspaudiocodec -lpspatrac3 -lpng 
STDLIBS += -lAac -lFLAC -lvorbisidec -lmad 
STDLIBS += -lpspusb -lpspusbstor -lpspkubridge -lpspsystemctrl_user 
STDLIBS += -lc -lm -lz -lstdc++ -ljpeg 

YOURLIBS = -lobjectdraw -losl -lconfig -lconfig++ \
		   -lanytype -lunzip 
 
LIBS = $&#40;YOURLIBS&#41; $&#40;STDLIBS&#41; 

PSP_FW_VERSION = 500
BUILD_PRX = 1

EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = pspgrub
PSP_EBOOT_ICON = NULL

#PSP_LOC = /media/KURT\'S\ PSP/PSP/GAME/$&#40;PSP_EBOOT_TITLE&#41;
#PSP_LOC = F&#58;/PSP/GAME/$&#40;PSP_EBOOT_TITLE&#41;

include $&#40;PSPSDK&#41;/lib/build.mak

ifndef PSP_LOC
PSP_LOC = release
endif

install&#58;
	 mkdir -p $&#40;PSP_LOC&#41;
	 cp -f EBOOT.PBP $&#40;PSP_LOC&#41;
	 cp -f menu.cfg $&#40;PSP_LOC&#41;
	 

output

Code: Select all

**** Build of configuration Default for project bootloader ****

make clean all 
rm -f make.prx make.elf main.o events/sys_redraw.o events/callbacks.o Drawing/ScrollingMenu.o  PARAM.SFO EBOOT.PBP EBOOT.PBP
psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -I/usr/local/pspdev/include -I/usr/local/pspdev/psp/include -I/usr/local/pspdev/psp/sdk/include  -I. -I/usr/local/pspdev/psp/sdk/include -I/usr/local/pspdev/include -I/usr/local/pspdev/psp/include -I/usr/local/pspdev/psp/sdk/include  -fexceptions -fno-rtti -D_PSP_FW_VERSION=500   -c -o main.o main.cpp
main.cpp&#58; In function ‘void evalSelected&#40;&#41;’&#58;
main.cpp&#58;168&#58; warning&#58; deprecated conversion from string constant to ‘char*’
main.cpp&#58;169&#58; warning&#58; deprecated conversion from string constant to ‘char*’
psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -I/usr/local/pspdev/include -I/usr/local/pspdev/psp/include -I/usr/local/pspdev/psp/sdk/include  -I. -I/usr/local/pspdev/psp/sdk/include -I/usr/local/pspdev/include -I/usr/local/pspdev/psp/include -I/usr/local/pspdev/psp/sdk/include  -fexceptions -fno-rtti -D_PSP_FW_VERSION=500   -c -o events/sys_redraw.o events/sys_redraw.cpp
psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -I/usr/local/pspdev/include -I/usr/local/pspdev/psp/include -I/usr/local/pspdev/psp/sdk/include  -I. -I/usr/local/pspdev/psp/sdk/include -I/usr/local/pspdev/include -I/usr/local/pspdev/psp/include -I/usr/local/pspdev/psp/sdk/include  -fexceptions -fno-rtti -D_PSP_FW_VERSION=500   -c -o events/callbacks.o events/callbacks.cpp
psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -I/usr/local/pspdev/include -I/usr/local/pspdev/psp/include -I/usr/local/pspdev/psp/sdk/include  -I. -I/usr/local/pspdev/psp/sdk/include -I/usr/local/pspdev/include -I/usr/local/pspdev/psp/include -I/usr/local/pspdev/psp/sdk/include  -fexceptions -fno-rtti -D_PSP_FW_VERSION=500   -c -o Drawing/ScrollingMenu.o Drawing/ScrollingMenu.cpp
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -I/usr/local/pspdev/include -I/usr/local/pspdev/psp/include -I/usr/local/pspdev/psp/sdk/include  -D_PSP_FW_VERSION=500  -L. -L/usr/local/pspdev/psp/sdk/lib -specs=/usr/local/pspdev/psp/sdk/lib/prxspecs -Wl,-q,-T/usr/local/pspdev/psp/sdk/lib/linkfile.prx   main.o events/sys_redraw.o events/callbacks.o Drawing/ScrollingMenu.o /usr/local/pspdev/psp/sdk/lib/prxexports.o -lobjectdraw -losl -lconfig -lconfig++ -lanytype -lunzip  -lpspctrl -lpspumd -lpsprtc -lpsppower  -lpspaudio -lpsphprm -lpspgu -lpspgum  -lpspmpeg -lpsprtc -lpspsdk -lmikmod  -lpspaudiocodec -lpspatrac3 -lpng  -lAac -lFLAC -lvorbisidec -lmad  -lpspusb -lpspusbstor -lpspkernel -lpspsystemctrl_kernel -lpspkubridge -lpspsystemctrl_user  -lc -lm -lz -lstdc++ -ljpeg   -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -o make.elf
/usr/local/pspdev/lib/gcc/psp/4.3.2/../../../../psp/lib/libc.a&#40;lib_a-strtoul.o&#41;&#58; In function `strtoul'&#58;
../../../../../newlib/libc/stdlib/strtoul.c&#58;202&#58; multiple definition of `strtoul'
/usr/local/pspdev/psp/sdk/lib/libpspkernel.a&#40;SysclibForKernel_0013.o&#41;&#58;SysclibForKernel.S&#58;&#40;.sceStub.text+0x0&#41;&#58; first defined here
main.o&#58; In function `evalSelected&#40;&#41;'&#58;
main.cpp&#58;&#40;.text+0x23d4&#41;&#58; undefined reference to `sctrlKernelLoadExecVSHWithApitype&#40;int, char const*, SceKernelLoadExecVSHParam*&#41;'
collect2&#58; ld returned 1 exit status
make&#58; *** &#91;make.elf&#93; Error 1
[/b]
TyRaNiD
Posts: 907
Joined: Sun Jan 18, 2004 12:23 am

Post by TyRaNiD »

The fact that it has type info means it is not externed propery as a C export and so it can't find the mangled name in the libraries
coolkehon
Posts: 355
Joined: Mon Oct 20, 2008 5:44 am

Post by coolkehon »

so with that said how do i fix it because doing this through a prx worked but makes the app a little bloated wanted to have in one eboot
Post Reply