ralphjzhang / openpgm

Automatically exported from code.google.com/p/openpgm
0 stars 0 forks source link

mingw-x64 compiling error: 'AI_ADDRCONFIG' undeclared #33

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Env: Win7 + MinGW64(gcc4.8.2)

Reproducing Steps:
1. open a MSYS shell, cd into pgm folder(libpgm-5.2.122/openpgm/pgm)
2. run "./configure"
3. run "make"

The detailed compilation output:

$ make
  CC     libpgm_noinst_la-thread.lo
  CC     libpgm_noinst_la-mem.lo
  CC     libpgm_noinst_la-string.lo
  CC     libpgm_noinst_la-list.lo
  CC     libpgm_noinst_la-slist.lo
  CC     libpgm_noinst_la-queue.lo
  CC     libpgm_noinst_la-hashtable.lo
  CC     libpgm_noinst_la-messages.lo
  CC     libpgm_noinst_la-error.lo
  CC     libpgm_noinst_la-math.lo
  CC     libpgm_noinst_la-packet_parse.lo
  CC     libpgm_noinst_la-packet_test.lo
  CC     libpgm_noinst_la-sockaddr.lo
  CC     libpgm_noinst_la-time.lo
  CC     libpgm_noinst_la-if.lo
if.c: In function 'parse_interface':
if.c:380:16: error: 'AI_ADDRCONFIG' undeclared (first use in this function)
    .ai_flags = AI_ADDRCONFIG | AI_NUMERICHOST /* AI_V4MAPPED is unhelpful */
                ^
if.c:380:16: note: each undeclared identifier is reported only once for each 
function it appears in
if.c: In function 'parse_group':
if.c:974:15: error: 'AI_ADDRCONFIG' undeclared (first use in this function)
   .ai_flags = AI_ADDRCONFIG, /* AI_V4MAPPED is unhelpful */
               ^
make: *** [libpgm_noinst_la-if.lo] Error 1

Original issue reported on code.google.com by douyongw...@gmail.com on 14 Jan 2014 at 12:27

GoogleCodeExporter commented 9 years ago
An outstanding defect of the Win32 kit in Mingw64, see the Win64 directory for 
a patch:

https://code.google.com/p/openpgm/source/browse/trunk/openpgm/pgm/win64/mingw-w6
4-bin_x86-64-linux_4.4.1-1openpgm1.diff

Original comment by fnjo...@gmail.com on 14 Jan 2014 at 2:30