Hi Kazu,

That might be the same as the issue[1] I saw before. If so,
you can use __GLASGOW_HASKELL__ instead.

Cheers,

[1]: https://github.com/hesselink/flock/pull/1
On 2012/08/10, at 12:50, Kazu Yamamoto (山本和彦) wrote:

> 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
> 
> --Kazu
> 
> _______________________________________________
> Haskell-Cafe mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/haskell-cafe

-- 
Mitsutoshi Aoe (青江光敏)
[email protected]


_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to