libmicrohttpd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] Compilation errors under MinGW-64


From: farmdve data.bg
Subject: [libmicrohttpd] Compilation errors under MinGW-64
Date: Wed, 31 Oct 2012 00:22:17 +0200

I am a Windows user. I tried compiling the library under mingw-64, but
I had a lot of issues. First was that the configure script did not
find plibc_init in -lplibc(it exists). After hacking the configure
file, I got a few more problems about libpthread and missing
pthread_create functions.
I fixed this as well, and after doing make, is where bad things happen:

c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.3/../../../../x86_64-w64-mingw3
2/include/errno.h:154:0: note: this is the location of the previous definition..
/../src/include/plibc/plibc.h:226:0: warning: "MAP_SHARED" redefined [enabled by
 default]

../../src/include/plibc/plibc.h:185:0: warning: "ENETDOWN" redefined [enabled by
 default]C:/mingw64/include/sys/mman.h:24:0: note: this is the location of the p
revious definition

c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.3/../../../../x86_64-w64-mingw3
2/include/errno.h:144:0: note: this is the location of the previous definition
../../src/include/plibc/plibc.h:227:0: warning: "MAP_PRIVATE" redefined [enabled
 by default]../../src/include/plibc/plibc.h:190:0: warning: "EHOSTUNREACH" redef
ined [enabled by default]

C:/mingw64/include/sys/mman.h:25:0: note: this is the location of the previous d
efinitionc:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.3/../../../../x86_64-w
64-mingw32/include/errno.h:134:0: note: this is the location of the previous def
inition

../../src/include/plibc/plibc.h:233:0: warning: "MS_INVALIDATE" redefined [enabl
ed by default]../../src/include/plibc/plibc.h:191:0: warning: "EINPROGRESS" rede
fined [enabled by default]

C:/mingw64/include/sys/mman.h:36:0: note: this is the location of the previous d
efinitionc:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.3/../../../../x86_64-w
64-mingw32/include/errno.h:179:0: note: this is the location of the previous def
inition

../../src/include/plibc/plibc.h:234:0: warning: "MS_SYNC" redefined [enabled by
default]../../src/include/plibc/plibc.h:192:0: warning: "EALREADY" redefined [en
abled by default]

C:/mingw64/include/sys/mman.h:35:0: note: this is the location of the previous d
efinitionc:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.3/../../../../x86_64-w
64-mingw32/include/errno.h:114:0: note: this is the location of the previous def
inition

../../src/include/plibc/plibc.h:193:0: warning: "EDESTADDRREQ" redefined [enable
d by default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.3/../../../../x86_64-w64-mingw3
2/include/errno.h:129:0: note: this is the location of the previous definition
../../src/include/plibc/plibc.h:194:0: warning: "EMSGSIZE" redefined [enabled by
 default]
../../src/include/plibc/plibc.h:374:5: error: conflicting types for 'truncate'c:
\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.3/../../../../x86_64-w64-mingw32/
include/errno.h:139:0: note: this is the location of the previous definition

c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.3/../../../../x86_64-w64-mingw3
2/include/unistd.h:31:5: note: previous declaration of 'truncate' was here../../
src/include/plibc/plibc.h:195:0: warning: "EPROTONOSUPPORT" redefined [enabled b
y default]

c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.3/../../../../x86_64-w64-mingw3
2/include/errno.h:204:0: note: this is the location of the previous definition
../../src/include/plibc/plibc.h:197:0: warning: "EADDRNOTAVAIL" redefined [enabl
ed by default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.3/../../../../x86_64-w64-mingw3
2/include/errno.h:94:0: note: this is the location of the previous definition
../../src/include/plibc/plibc.h:198:0: warning: "ENETRESET" redefined [enabled b
y default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.3/../../../../x86_64-w64-mingw3
2/include/errno.h:149:0: note: this is the location of the previous definition
../../src/include/plibc/plibc.h:199:0: warning: "EISCONN" redefined [enabled by
default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.3/../../../../x86_64-w64-mingw3
2/include/errno.h:99:0: note: this is the location of the previous definition
../../src/include/plibc/plibc.h:200:0: warning: "ENOTCONN" redefined [enabled by
 default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.3/../../../../x86_64-w64-mingw3
2/include/errno.h:169:0: note: this is the location of the previous definition
../../src/include/plibc/plibc.h:212:0: warning: "EWOULDBLOCK" redefined [enabled
 by default]
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.3/../../../../x86_64-w64-mingw3
2/include/errno.h:189:0: note: this is the location of the previous definition
../../src/include/plibc/plibc.h:224:0: warning: "PROT_READ" redefined [enabled b
y default]
C:/mingw64/include/sys/mman.h:19:0: note: this is the location of the previous d
efinition
../../src/include/plibc/plibc.h:225:0: warning: "PROT_WRITE" redefined [enabled
by default]
C:/mingw64/include/sys/mman.h:20:0: note: this is the location of the previous d
efinition
../../src/include/plibc/plibc.h:226:0: warning: "MAP_SHARED" redefined [enabled
by default]
C:/mingw64/include/sys/mman.h:24:0: note: this is the location of the previous d
efinition
../../src/include/plibc/plibc.h:227:0: warning: "MAP_PRIVATE" redefined [enabled
 by default]
C:/mingw64/include/sys/mman.h:25:0: note: this is the location of the previous d
efinition
../../src/include/plibc/plibc.h:233:0: warning: "MS_INVALIDATE" redefined [enabl
ed by default]
C:/mingw64/include/sys/mman.h:36:0: note: this is the location of the previous d
efinition
../../src/include/plibc/plibc.h:234:0: warning: "MS_SYNC" redefined [enabled by
default]
C:/mingw64/include/sys/mman.h:35:0: note: this is the location of the previous d
efinition
../../src/include/plibc/plibc.h:374:5: error: conflicting types for 'truncate'
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.3/../../../../x86_64-w64-mingw3
2/include/unistd.h:31:5: note: previous declaration of 'truncate' was here
daemon.c: In function 'MHD_accept_connection':
daemon.c:1159:32: warning: cast to pointer from integer of different size [-Wint
-to-pointer-cast]
daemon.c:1161:32: warning: cast to pointer from integer of different size [-Wint
-to-pointer-cast]
daemon.c: In function 'create_socket':
daemon.c:2018:30: warning: cast to pointer from integer of different size [-Wint
-to-pointer-cast]
daemon.c:2034:30: warning: cast to pointer from integer of different size [-Wint
-to-pointer-cast]
make[3]: *** [connection.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [internal.lo] Error 1
make[3]: *** [daemon.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

And this is just a small part of it. Any ideas why it's not compiling?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]