I get the following error when compiling network, which I checked out
separately for development, using 6.8:
P.S. Is it only possible to build network under the ghc/ tree?
$ runhaskell Setup.hs configure --user --prefix $HOME
Configuring network-2.0.1...
$ runhaskell Setup.hs build
Preprocessing library network-2.0.1...
In file included from BSD.hsc:17:0:
include/HsNet.h:10:29:
error: HsNetworkConfig.h: No such file or directory
In file included from BSD.hsc:17:0:
include/HsNet.h: In function 'my_inet_ntoa':
include/HsNet.h:136:0:
error: storage size of 'a' isn't known
include/HsNet.h:138:0:
warning: implicit declaration of function 'inet_ntoa'
include/HsNet.h:138:0:
warning: return makes pointer from integer without a cast
BSD.hsc: In function 'main':
BSD.hsc:144:0:
error: invalid application of 'sizeof' to incomplete type 'struct servent'
BSD.hsc:144:0:
error: invalid application of 'sizeof' to incomplete type 'struct servent'
BSD.hsc:144:0:
error: invalid application of 'sizeof' to incomplete type 'struct servent'
BSD.hsc:148:0:
error: invalid use of undefined type 'struct servent'
BSD.hsc:149:0:
error: invalid use of undefined type 'struct servent'
BSD.hsc:152:0:
error: invalid use of undefined type 'struct servent'
BSD.hsc:153:0:
error: invalid use of undefined type 'struct servent'
BSD.hsc:248:0:
error: invalid application of 'sizeof' to incomplete type 'struct
protoent'
BSD.hsc:248:0:
error: invalid application of 'sizeof' to incomplete type 'struct
protoent'
BSD.hsc:248:0:
error: invalid application of 'sizeof' to incomplete type 'struct
protoent'
BSD.hsc:252:0:
error: invalid use of undefined type 'struct protoent'
BSD.hsc:253:0:
error: invalid use of undefined type 'struct protoent'
BSD.hsc:263:0:
error: invalid use of undefined type 'struct protoent'
BSD.hsc:338:0:
error: invalid application of 'sizeof' to incomplete type 'struct hostent'
BSD.hsc:338:0:
error: invalid application of 'sizeof' to incomplete type 'struct hostent'
BSD.hsc:338:0:
error: invalid application of 'sizeof' to incomplete type 'struct hostent'
BSD.hsc:342:0:
error: invalid use of undefined type 'struct hostent'
BSD.hsc:343:0:
error: invalid use of undefined type 'struct hostent'
BSD.hsc:346:0:
error: invalid use of undefined type 'struct hostent'
BSD.hsc:348:0:
error: invalid use of undefined type 'struct hostent'
BSD.hsc:443:0:
error: invalid application of 'sizeof' to incomplete type 'struct hostent'
BSD.hsc:443:0:
error: invalid application of 'sizeof' to incomplete type 'struct hostent'
BSD.hsc:443:0:
error: invalid application of 'sizeof' to incomplete type 'struct hostent'
BSD.hsc:447:0:
error: invalid use of undefined type 'struct netent'
BSD.hsc:448:0:
error: invalid use of undefined type 'struct netent'
BSD.hsc:451:0:
error: invalid use of undefined type 'struct netent'
BSD.hsc:452:0:
error: invalid use of undefined type 'struct netent'
compiling dist/build/Network/BSD_hsc_make.c failed
command was: ghc -c -Iinclude dist/build/Network/BSD_hsc_make.c -o
dist/build/Network/BSD_hsc_make.o
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc