Ticket #26 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

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

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

Description

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

This is from a linux machine:

Preprocessing library network-2.2.1.6...
Building network-2.2.1.6...
[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 )

Network/Socket.hsc:307:15:
    `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 5 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
    dispatcher.dispatch(req)
  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
    os.makedirs(self.path)
  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 5 years ago by tibbe

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

Fixed in 2.2.1.7

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

Changed 5 years ago by tibbe

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