
On Thu, Aug 9, 2012 at 8:50 PM, Kazu Yamamoto
Hello,
The stable branch of the network library includes the following code:
#if !(MIN_VERSION_base(4,6,0))
I cannot compile the stable branch with HP 2011.4.0.0 on Linux 2:
Preprocessing library network-2.3.0.14... BSD.hsc:115:23: error: missing binary operator before token "(" BSD.hsc:115:23: error: missing binary operator before token "(" BSD.hsc:115:23: error: missing binary operator before token "(" compiling dist/build/Network/BSDhsc_make.c failed (exit code 1) command was: /usr/bin/gcc -c dist/build/Network/BSD_hsc_make.c -o dist/build/Network/BSD_hsc_make.o -fno-stack-protector -fno-stack-protector -DGLASGOW_HASKELL_=700 -Dlinux_BUILD_OS -Dlinux_HOST_OS -Di386_BUILD_ARCH -Di386_HOST_ARCH -Iinclude -DCALLCONV=ccall -I/ghc7.0.4/lib/ghc-7.0.4/unix-2.4.2.0/include -I/ghc7.0.4/lib/ghc-7.0.4/bytestring-0.9.1.10/include -I/ghc7.0.4/lib/ghc-7.0.4/base-4.3.1.0/include -I/ghc7.0.4/lib/ghc-7.0.4/include -I/ghc7.0.4/lib/ghc-7.0.4/include -I/ghc7.0.4/lib/ghc-7.0.4/include/
"dist/build/autogen/cabal_macros.h" defines MIN_VERSION_base but "dist/build/Network/BSD_hsc_make.c" does not include it.
If you guys know why this happens, please let me know.
For more information, please refer to: https://github.com/haskell/network/issues/43
I should note that it compiles on GHC 7.0.3 and a bunch of other versions: http://ci.johantibell.com/job/network/ I suspect that it's either a GHC problem (not passing the right arguments to hsc2hs) or a cabal problem. -- Johan