QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Developers Corner > PSP Development, Hacks, and Homebrew > PSP Development Forum
The above video goes away if you are a member and logged in, so log in now!

undefined reference to 'sceNetInetGetsockopt'?

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: ...

Reply
 
LinkBack Thread Tools
Old 08-16-2006, 04:56 AM   #1

AKA Homer
 
Moonchild's Avatar
 
Join Date: Jan 2006
Location: Sweden
Posts: 1,779
Trader Feedback: 0
Default undefined reference to 'sceNetInetGetsockopt'?

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
I have no idea how to fix this. I've tried to reinstall toolchain several times, but it still doesn't work. I haven't tried to reinstall everything though (cygwin). But if that's the only way I'll do it.
__________________


Click Here if you want a Winamp Currently Playing Userbar like the one above.
Moonchild is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-16-2006, 04:59 AM   #2

...in a dream...
 
SG57's Avatar
 
Join Date: Jul 2005
Posts: 4,957
Trader Feedback: 0
Default

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.
__________________
SG57 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-16-2006, 05:07 AM   #3

AKA Homer
 
Moonchild's Avatar
 
Join Date: Jan 2006
Location: Sweden
Posts: 1,779
Trader Feedback: 0
Default

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.
__________________


Click Here if you want a Winamp Currently Playing Userbar like the one above.

Last edited by homer; 08-16-2006 at 05:11 AM.. Reason: Automerged Doublepost
Moonchild is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-16-2006, 05:14 AM   #4

...in a dream...
 
SG57's Avatar
 
Join Date: Jul 2005
Posts: 4,957
Trader Feedback: 0
Default



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 )
__________________
SG57 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-16-2006, 05:25 AM   #5

AKA Homer
 
Moonchild's Avatar
 
Join Date: Jan 2006
Location: Sweden
Posts: 1,779
Trader Feedback: 0
Default

That's the problem.. I'm not. Still, it seems like libc needs it :S
__________________


Click Here if you want a Winamp Currently Playing Userbar like the one above.
Moonchild is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
cenetinetgetsockopt , reference , undefined

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 01:00 AM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us