forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Odd errors since upgrading toolchain

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
jsharrad



Joined: 20 Oct 2005
Posts: 102

PostPosted: Mon Jun 04, 2007 5:32 pm    Post subject: Odd errors since upgrading toolchain Reply with quote

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

conflicting types errors in alot of stuff eg. pspgl:
Code:
$ 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:
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?
Back to top
View user's profile Send private message
futaris



Joined: 28 Dec 2005
Posts: 45

PostPosted: Mon Jun 04, 2007 6:37 pm    Post subject: Reply with quote

Yep I get these errors too. NB, the int32 is ok to replace, but I don't know about the SDL ones. Anyone?
Back to top
View user's profile Send private message
futaris



Joined: 28 Dec 2005
Posts: 45

PostPosted: Mon Jun 04, 2007 8:13 pm    Post subject: Reply with quote

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

-lpspnet_inet is not in LIBS
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Tue Jun 05, 2007 6:51 am    Post subject: Re: Odd errors since upgrading toolchain Reply with quote

Code:
$ 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:
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.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group