Ticket #26 (closed defect: fixed)

Opened 8 years ago

Last modified 8 years ago

Doesn't build with GHC >= 6.12 on non-Windows

Reported by: kolmodin Owned by:
Priority: major Milestone:
Component: network Version: 2.0
Keywords: Cc:


Recently released version network- doesn't build on GHC >= 6.12 unless you're using Windows.

This is from a linux machine:

Preprocessing library network-
Building network-
[1 of 5] Compiling Network.URI      ( Network/URI.hs, dist/build/Network/URI.o )
[2 of 5] Compiling Network.Socket.Internal ( dist/build/Network/Socket/Internal.hs, 
dist/build/Network/Socket/Internal.o )
[3 of 5] Compiling Network.Socket   ( dist/build/Network/Socket.hs, dist/build/Netwo
rk/Socket.o )

    `fdIsSocket_' is not a (visible) field of constructor `FD'

The function socket2FD is used conditionally, as it only works on windows.

The attached patch makes sure socket2FD is declared only when on windows.

Change History

Changed 8 years ago by kolmodin

Could not create attachment, se message below. Instead, get it here: http://haskell.org/~kolmodin/fix-building-with-ghc-__-6_11-on-non_windows.dpatch

Traceback (most recent call last):
  File "/var/lib/python-support/python2.4/trac/web/main.py", line 387, in dispatch_request
  File "/var/lib/python-support/python2.4/trac/web/main.py", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "/var/lib/python-support/python2.4/trac/attachment.py", line 361, in process_request
    self._do_save(req, attachment)
  File "/var/lib/python-support/python2.4/trac/attachment.py", line 494, in _do_save
    attachment.insert(filename, upload.file, size)
  File "/var/lib/python-support/python2.4/trac/attachment.py", line 180, in insert
  File "os.py", line 156, in makedirs
    makedirs(head, mode)
  File "os.py", line 159, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/srv/trac/network/attachments/ticket'

Changed 8 years ago by tibbe

  • status changed from new to closed
  • resolution set to fixed

Fixed in

Sat Dec 26 18:24:06 CET 2009  Lennart Kolmodin <kolmodin@gentoo.org>
  * Fix building with GHC >= 6.11 on non-Windows

Changed 8 years ago by tibbe

  • milestone set to
Note: See TracTickets for help on using tickets.