Comment 1 for bug 287166

Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

There are several compilation errors, so the package is really broken, and it's not only because of example installation:
../../libraries/tools/hsc2hs -D__HUGS__ -Iinclude -DCALLCONV=ccall -o Network/Socket.hs Network/Socket.hsc
Socket.hsc: In function 'main':
Socket.hsc:354: warning: format '%d' expects type 'int', but argument 3 has type 'long unsigned int'
Socket.hsc:1003: error: invalid application of 'sizeof' to incomplete type 'struct ucred'
Socket.hsc:1003: error: invalid application of 'sizeof' to incomplete type 'struct ucred'
Socket.hsc:1003: error: invalid application of 'sizeof' to incomplete type 'struct ucred'
Socket.hsc:1009: error: invalid use of undefined type 'struct ucred'
Socket.hsc:1010: error: invalid use of undefined type 'struct ucred'
Socket.hsc:1011: error: invalid use of undefined type 'struct ucred'
compiling Network/Socket_hsc_make.c failed

Compiling FFI stubs
../../src/ffihugs -98 -P../../hugsdir/packages/OpenGL: -i"HsOpenGL.h" ../../hugsdir/packages/OpenGL/Graphics/Rendering/OpenGL/GL/BeginEnd.hs -Iinclude -DCALLCONV=ccall -D__HUGS__ -Dlinux_HOST_OS -Dlinux_TARGET_OS -Wl -Bsymbolic-functions -lGLU -lGL -lm
cc1: error: unrecognized command line option "-Wl"
runhugs: Error occurred

Compiling FFI stubs
../../src/ffihugs -98 -P../../hugsdir/packages/GLUT: -i"HsGLUT.h" ../../hugsdir/packages/GLUT/Graphics/UI/GLUT/Begin.hs -Iinclude -DCALLCONV=ccall -D__HUGS__ -Dlinux_HOST_OS -Dlinux_TARGET_OS -Wl -Bsymbolic-functions -lglut -lSM -lICE -lXmu -lXi -lGLU -lGL -lm
cc1: error: unrecognized command line option "-Wl"
runhugs: Error occurred
ERROR "../../hugsdir/packages/GLUT/Graphics/UI/GLUT/Begin.hs" - Error while running compilation command 'gcc -Wall -fPIC -Wl,-Bsymbolic-functions -shared -fPIC -D__HUGS__ "-I../../hugsdir/include" -o "../../hugsdir/packages/GLUT/Graphics/UI/GLUT/Begin.so" "../../hugsdir/packages/GLUT/Graphics/UI/GLUT/Begin.c" -Iinclude -DCALLCONV=ccall -D__HUGS__ -Dlinux_HOST_OS -Dlinux_TARGET_OS -Wl -Bsymbolic-functions -lglut -lSM -lICE -lXmu -lXi -lGLU -lGL -lm'