Your message dated Mon, 15 Jan 2007 15:17:34 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#406674: libghc6-time-dev: Undefined references in link time
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--- Begin Message ---
Package: libghc6-time-dev
Version: 1.0-3
Severity: grave
Justification: renders package unusable
This simple script:
import Data.Time.LocalTime
main = do
now <- getZonedTime
putStrLn $ show now
Is getting me the following compile errors:
$ ghc -fglasgow-exts t.hs
t.o: In function `sF1_info':
(.text+0x39): undefined reference to
`timezm1zi0_DataziTimeziLocalTimeziLocalTime_zdf2_closure'
t.o: In function `sF6_info':
(.text+0xc3): undefined reference to
`timezm1zi0_DataziTimeziLocalTimeziLocalTime_getZZonedTime_closure'
t.o: In function `Main_main_srt':
(.rodata+0x0): undefined reference to
`timezm1zi0_DataziTimeziLocalTimeziLocalTime_getZZonedTime_closure'
t.o: In function `Main_main_srt':
(.rodata+0x4): undefined reference to
`timezm1zi0_DataziTimeziLocalTimeziLocalTime_zdf2_closure'
collect2: ld returned 1 exit status
But using the interpreter it is ok:
$ runhaskell t.hs
2007-01-12 19:09:02.890111 BRST
-- System Information:
Debian Release: 4.0
APT prefers testing
APT policy: (900, 'testing'), (700, 'stable'), (400, 'unstable'), (150,
'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18
Locale: LANG=C, LC_CTYPE=C (charmap=ISO-8859-1) (ignored: LC_ALL set to
en_US.iso8859-1)
Versions of packages libghc6-time-dev depends on:
ii ghc6 [libghc6-base-dev] 6.6-3 GHC - the Glasgow Haskell Compilat
ii ghc6-prof [libghc6-base-prof] 6.6-3 Profiling libraries for the Glasgo
libghc6-time-dev recommends no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
Hi Leandro,
On Fri, Jan 12, 2007 at 07:10:02PM -0200, Leandro Penz wrote:
>
> import Data.Time.LocalTime
>
> main = do
> now <- getZonedTime
> putStrLn $ show now
>
> Is getting me the following compile errors:
> $ ghc -fglasgow-exts t.hs
You need to use either the
-package time
flags or the
--make
flag.
Thanks
Ian
--- End Message ---