miniupnp.tuxfamily.org Forum Index miniupnp.tuxfamily.org
The forum about miniupnp and libnatpmp
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Build error in miniupnpc-1.4.20091213 on Mac OS X

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpc Bugs
View previous topic :: View next topic  
Author Message
omid



Joined: 27 Dec 2009
Posts: 3

PostPosted: Sun Dec 27, 2009 6:29 pm    Post subject: Build error in miniupnpc-1.4.20091213 on Mac OS X Reply with quote

Hi,

I've got these errors when I wanted to compile miniupnpc-1.4.20091213 on Mac OS X ver. 10.6.2 :


Code:
xerxes:miniupnpc-1.4.20091213 space$ make
cc -fPIC -O -Wall -DNDEBUG -DMINIUPNPC_SET_SOCKET_TIMEOUT   -c -o miniupnpc.o miniupnpc.c
miniupnpc.c: In function ‘upnpDiscover’:
miniupnpc.c:544: error: ‘IP_MULTICAST_IF’ undeclared (first use in this function)
miniupnpc.c:544: error: (Each undeclared identifier is reported only once
miniupnpc.c:544: error: for each function it appears in.)
make: *** [miniupnpc.o] Error 1


Cheers,
Omid.
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1525

PostPosted: Tue Dec 29, 2009 2:33 pm    Post subject: Reply with quote

please tell me what is the output of
Code:
grep -R IP_MULTICAST_IF /usr/include

_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
omid



Joined: 27 Dec 2009
Posts: 3

PostPosted: Tue Dec 29, 2009 4:30 pm    Post subject: Output of: grep -R IP_MULTICAST_IF /usr/include Reply with quote

Code:

xerxes:~ space$ grep -R IP_MULTICAST_IF /usr/include
grep: /usr/include/c++/4.0.0/powerpc-apple-darwin10/ppc64: No such file or directory
grep: /usr/include/c++/4.0.0/powerpc-apple-darwin8/ppc64: No such file or directory
grep: /usr/include/c++/4.0.0/powerpc-apple-darwin9/ppc64: No such file or directory
grep: /usr/include/c++/4.2.1/powerpc-apple-darwin10/ppc64: No such file or directory
grep: /usr/include/c++/4.2.1/powerpc-apple-darwin8/ppc64: No such file or directory
grep: /usr/include/c++/4.2.1/powerpc-apple-darwin9/ppc64: No such file or directory
/usr/include/netinet/in.h:#define   IP_MULTICAST_IF      9    /* u_char; set/get IP multicast i/f  */


Cheers,
Omid.
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1525

PostPosted: Thu Dec 31, 2009 9:53 am    Post subject: Reply with quote

that is strange because <netinet/in.h> is included in miniupnpc.c !
I don't understand what is going on
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1525

PostPosted: Tue Jan 05, 2010 5:37 pm    Post subject: Reply with quote

http://miniupnp.tuxfamily.org/forum/viewtopic.php?p=1560
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
omid



Joined: 27 Dec 2009
Posts: 3

PostPosted: Thu Jan 07, 2010 12:34 pm    Post subject: Reply with quote

Alright, thanks BTW.

I'll update you on any new result.

Omid.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpc Bugs All times are GMT
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
Protected by Anti-Spam ACP
© 2007 Thomas Bernard, author of MiniUPNP.