View previous topic :: View next topic |
Author |
Message |
omid
Joined: 27 Dec 2009 Posts: 3
|
Posted: Sun Dec 27, 2009 6:29 pm Post subject: Build error in miniupnpc-1.4.20091213 on Mac OS X |
|
|
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 |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1589
|
Posted: Tue Dec 29, 2009 2:33 pm Post subject: |
|
|
please tell me what is the output of Code: | grep -R IP_MULTICAST_IF /usr/include |
_________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
|
omid
Joined: 27 Dec 2009 Posts: 3
|
Posted: Tue Dec 29, 2009 4:30 pm Post subject: Output of: grep -R IP_MULTICAST_IF /usr/include |
|
|
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 |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1589
|
Posted: Thu Dec 31, 2009 9:53 am Post subject: |
|
|
that is strange because <netinet/in.h> is included in miniupnpc.c !
I don't understand what is going on _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1589
|
|
Back to top |
|
|
omid
Joined: 27 Dec 2009 Posts: 3
|
Posted: Thu Jan 07, 2010 12:34 pm Post subject: |
|
|
Alright, thanks BTW.
I'll update you on any new result.
Omid. |
|
Back to top |
|
|
|