Odd errors since upgrading toolchain

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

Moderators: cheriff, TyRaNiD

Post Reply
jsharrad
Posts: 100
Joined: Thu Oct 20, 2005 3:06 am

Odd errors since upgrading toolchain

Post by jsharrad »

I've been getting alot of strange errors lately after updating my toolchain.

conflicting types errors in alot of stuff eg. pspgl:

Code: Select all

$ make
psp-gcc -std=gnu99 -g -Wall -Wmissing-prototypes -Os -G0 -fsingle-precision-constant -I. -I /usr/local/pspdev/psp/include -I /usr/local/pspdev/psp/sdk/include -funit-at-a-time -MD -MF .deps/eglBindTexImage.d -c eglBindTexImage.c
In file included from /usr/local/pspdev/psp/sdk/include/psptypes.h:22,
                 from pspgl_internal.h:293,
                 from eglBindTexImage.c:1:
/usr/local/pspdev/lib/gcc/psp/4.1.0/../../../../psp/include/stdint.h:84: error: conflicting types for ‘uint32_t’
pspgl_misc.h:6: error: previous declaration of ‘uint32_t’ was here
make: *** [eglBindTexImage.o] Error 1
undefined references while trying to compile SDL libs:

Code: Select all

psp-gcc -g -O2 -I/usr/local/pspdev/psp/include/SDL -Dmain=SDL_main -DUSE_RWOPS -DCMD_MUSIC -DWAV_MUSIC -DMOD_MUSIC -I./mikmod -DMID_MUSIC -DUSE_TIMIDITY_MIDI -I./timidity -DOGG_MUSIC -DUSE_TREMOR -G0 -I/usr/local/pspdev/psp/sdk/include -o playwave playwave.o  -L/usr/local/pspdev/psp/sdk/lib ./.libs/libSDL_mixer.a /usr/local/pspdev/psp/lib/libvorbisidec.a -L/usr/local/pspdev/psp/lib -L/home/justin/psptoolchain/build/gcc-4.1.0/build-psp/psp/libstdc++-v3/src -L/home/justin/psptoolchain/build/gcc-4.1.0/build-psp/psp/libstdc++-v3/src/.libs -L/home/justin/psptoolchain/build/gcc-4.1.0/build-psp/./gcc -L/usr/local/pspdev/psp/bin -L/usr/local/pspdev/lib/gcc/psp/4.1.0 -L/usr/local/pspdev/lib/gcc/psp/4.1.0/../../../../psp/lib -lSDLmain /usr/local/pspdev/psp/lib/libSDL.a /usr/local/pspdev/psp/lib/libstdc++.a -lgcc -lm -lpspdebug -lpspgu -lpspctrl -lpspge -lpspdisplay -lpsphprm -lpspsdk -lpsprtc -lpspaudio -lc -lpspuser -lpsputility -lpspkernel
/usr/local/pspdev/psp/lib/libc.a(setsockopt.o): In function `setsockopt':
../../../../../../newlib/libc/sys/psp/socket.c:293: undefined reference to `sceNetInetSetsockopt'
../../../../../../newlib/libc/sys/psp/socket.c:296: undefined reference to `sceNetInetGetErrno'
/usr/local/pspdev/psp/lib/libc.a(setsockopt.o): In function `getsockopt':
../../../../../../newlib/libc/sys/psp/socket.c:167: undefined reference to `sceNetInetGetsockopt'
../../../../../../newlib/libc/sys/psp/socket.c:170: undefined reference to `sceNetInetGetErrno'
collect2: ld returned 1 exit status
make[1]: *** [playwave] Error 1
make[1]: Leaving directory `/home/justin/backup/justin/stuff/psp/SDL_mixer'
make: *** [all-recursive] Error 1
I have tried it on both a gentoo and an ubuntu system with the same results. If I comment out one of the conflicting types I get pages of errors. Anyone know what's going on?
futaris
Posts: 45
Joined: Wed Dec 28, 2005 7:47 am

Post by futaris »

Yep I get these errors too. NB, the int32 is ok to replace, but I don't know about the SDL ones. Anyone?
futaris
Posts: 45
Joined: Wed Dec 28, 2005 7:47 am

Post by futaris »

See this thread:
http://forums.ps2dev.org/viewtopic.php?t=8427

-lpspnet_inet is not in LIBS
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Re: Odd errors since upgrading toolchain

Post by ooPo »

Code: Select all

$ make
psp-gcc -std=gnu99 -g -Wall -Wmissing-prototypes -Os -G0 -fsingle-precision-constant -I. -I /usr/local/pspdev/psp/include -I /usr/local/pspdev/psp/sdk/include -funit-at-a-time -MD -MF .deps/eglBindTexImage.d -c eglBindTexImage.c
In file included from /usr/local/pspdev/psp/sdk/include/psptypes.h:22,
                 from pspgl_internal.h:293,
                 from eglBindTexImage.c:1:
/usr/local/pspdev/lib/gcc/psp/4.1.0/../../../../psp/include/stdint.h:84: error: conflicting types for ‘uint32_t’
pspgl_misc.h:6: error: previous declaration of ‘uint32_t’ was here
make: *** [eglBindTexImage.o] Error 1
I made a quick fix, try grabbing it again from the repository and giving it a try.

Code: Select all

psp-gcc -g -O2 -I/usr/local/pspdev/psp/include/SDL -Dmain=SDL_main -DUSE_RWOPS -DCMD_MUSIC -DWAV_MUSIC -DMOD_MUSIC -I./mikmod -DMID_MUSIC -DUSE_TIMIDITY_MIDI -I./timidity -DOGG_MUSIC -DUSE_TREMOR -G0 -I/usr/local/pspdev/psp/sdk/include -o playwave playwave.o  -L/usr/local/pspdev/psp/sdk/lib ./.libs/libSDL_mixer.a /usr/local/pspdev/psp/lib/libvorbisidec.a -L/usr/local/pspdev/psp/lib -L/home/justin/psptoolchain/build/gcc-4.1.0/build-psp/psp/libstdc++-v3/src -L/home/justin/psptoolchain/build/gcc-4.1.0/build-psp/psp/libstdc++-v3/src/.libs -L/home/justin/psptoolchain/build/gcc-4.1.0/build-psp/./gcc -L/usr/local/pspdev/psp/bin -L/usr/local/pspdev/lib/gcc/psp/4.1.0 -L/usr/local/pspdev/lib/gcc/psp/4.1.0/../../../../psp/lib -lSDLmain /usr/local/pspdev/psp/lib/libSDL.a /usr/local/pspdev/psp/lib/libstdc++.a -lgcc -lm -lpspdebug -lpspgu -lpspctrl -lpspge -lpspdisplay -lpsphprm -lpspsdk -lpsprtc -lpspaudio -lc -lpspuser -lpsputility -lpspkernel
/usr/local/pspdev/psp/lib/libc.a(setsockopt.o): In function `setsockopt':
../../../../../../newlib/libc/sys/psp/socket.c:293: undefined reference to `sceNetInetSetsockopt'
../../../../../../newlib/libc/sys/psp/socket.c:296: undefined reference to `sceNetInetGetErrno'
/usr/local/pspdev/psp/lib/libc.a(setsockopt.o): In function `getsockopt':
../../../../../../newlib/libc/sys/psp/socket.c:167: undefined reference to `sceNetInetGetsockopt'
../../../../../../newlib/libc/sys/psp/socket.c:170: undefined reference to `sceNetInetGetErrno'
collect2: ld returned 1 exit status
make[1]: *** [playwave] Error 1
make[1]: Leaving directory `/home/justin/backup/justin/stuff/psp/SDL_mixer'
make: *** [all-recursive] Error 1
A fix for this was posted in that other thread and has been added to the repository.
Post Reply