![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
This is a discussion on undefined reference to 'sceNetInetGetsockopt'? within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Just lately I got this error in cygwin when compiling eboots. Here's the output: Code: /usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libc.a(setsockopt.o): In function `getsockopt': ../../../../../../newlib/libc/sys/psp/socket.c:167: ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
![]() ![]() AKA Homer
|
Just lately I got this error in cygwin when compiling eboots. Here's the output:
Code:
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../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' /usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../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' collect2: ld returned 1 exit status make: *** [out] Error 1 |
|
|
|
|
|
#2 |
![]() ![]() ...in a dream...
|
Hmmm... that isnt in your source... I had hte same concept problem with SDL to non-SDL converting... I just found a blank makefile and added only the priority libraries from scratch...
So yeah, must be your makefile. Try taking the makefile from Peldet's source, add w/e included files as needed, and change the name of hte output around, but try not to touch the LIB section unless needed.... All my speculated thoughts though, nothing you have to try, as im just trying to help.
__________________
...you'll never know what it's like... spending your whole life in a dream...
Launch a Kitten out of a Cannon and win real cash! Checkout my newly updated site for all my projects (Kitten Cannon, BOXHEAD, Light Cycle 3D) |
|
|
|
|
|
#3 |
![]() ![]() AKA Homer
|
I've compiled it with this makefile before though, and it's worked just fine...
-= Double Post =- You might be right though, I tried another makefile and it worked fine. I'll add -lpspnet and -lpspnet_inet to the LIBS and see if it works then. Thanks for your help ![]() Edit: It works when I added -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver. Just incase anyone else gets this problem. Last edited by homer; 08-16-2006 at 05:11 AM.. Reason: Automerged Doublepost |
|
|
|
|
|
#4 |
![]() ![]() ...in a dream...
|
![]() Who'd a thought my little conversion from SDL makefile to regular non-SDL makefile issue would have helped someone ![]() Glad to here its working ![]() (P.S. what are you working that includes networking, you nasty little homer )
__________________
...you'll never know what it's like... spending your whole life in a dream...
Launch a Kitten out of a Cannon and win real cash! Checkout my newly updated site for all my projects (Kitten Cannon, BOXHEAD, Light Cycle 3D) |
|
|
|
|
|
#5 |
![]() ![]() AKA Homer
|
That's the problem.. I'm not. Still, it seems like libc needs it :S
|
|
|
|
![]() |
| Tags |
| cenetinetgetsockopt , reference , undefined |
| Thread Tools | |
|
|