Author Topic: Undefined reference to 'in6addr_any'  (Read 12789 times)

googles

  • Posts: 219
  • Turrets: +30/-19
Undefined reference to 'in6addr_any'
« on: December 07, 2008, 09:38:04 pm »
Hi..Im having some problems compiling..When i try to compile i get the following error:

Code: [Select]
DED_CC src/qcommon/net_ip.c
LD build/release-mingw32-x86/tremded.x86.exe
build/release-mingw32-x86/ded/net_ip.o(.text+0x1309):net_ip.c: undefined reference to `in6addr_any'
build/release-mingw32-x86/ded/net_ip.o(.text+0x130f):net_ip.c: undefined reference to `in6addr_any'
build/release-mingw32-x86/ded/net_ip.o(.text+0x1318):net_ip.c: undefined reference to `in6addr_any'
build/release-mingw32-x86/ded/net_ip.o(.text+0x131e):net_ip.c: undefined reference to `in6addr_any'
make[2]: *** [build/release-mingw32-x86/tremded.x86.exe] Error 1

in6addr_any is a reference to ws2tcpip.h..Even thought i have the header file...any ideas?

Lakitu7

  • Tremulous Developers
  • *
  • Posts: 1002
  • Turrets: +120/-73
Re: Undefined reference to 'in6addr_any'
« Reply #1 on: December 07, 2008, 09:59:19 pm »
You know you're going to need to give more information, like what SVN revision you're trying to compile, if you have modified it, and information about your build environment.

Bissig

  • Posts: 1309
  • Turrets: +103/-131
Re: Undefined reference to 'in6addr_any'
« Reply #2 on: December 08, 2008, 01:48:25 am »
I didn't know Trem had IPv6 support...

Lakitu7

  • Tremulous Developers
  • *
  • Posts: 1002
  • Turrets: +120/-73
Re: Undefined reference to 'in6addr_any'
« Reply #3 on: December 08, 2008, 01:56:25 am »
It does when compiled from later revisions. 1.1 does not.

googles

  • Posts: 219
  • Turrets: +30/-19
Re: Undefined reference to 'in6addr_any'
« Reply #4 on: December 08, 2008, 03:42:58 am »
I followed http://tremulous.net/forum/index.php?topic=3408.0 to the word...Im compiling a 32 bit FSM build...It worked fine for frak...Also, i can compile if i comment out the line, but then im stuck without IPv6 support...

Edit:

Forgot to add that I am using Windows to compile...
« Last Edit: December 08, 2008, 03:45:08 am by googles »

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Re: Undefined reference to 'in6addr_any'
« Reply #5 on: December 08, 2008, 05:38:45 am »
for those who find this thread with the search: you need mingw 4.x to compile trem with ipv6 support, upgrading will fix the issue.
Quote from: Asvarox link=topic=8622.msg169333#msg169333
Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----