darcs

Issue 322 Linking error on darcs-1.0.9rc1 source code build with ghc-6.6

Title Linking error on darcs-1.0.9rc1 source code build with ghc-6.6
Priority bug Status resolved
Milestone Resolved in
Superseder Nosy List darcs-devel, dmitry.kurochkin, kowey, mvanier, thorkilnaur, tommy
Assigned To
Topics

Created on 2006-10-24.16:37:28 by mvanier, last changed 2009-08-27.13:49:08 by admin.

Messages
msg1142 (view) Author: mvanier Date: 2006-10-24.16:37:22
Hi,

I tried building darcs-1.0.9rc1 from source using ghc-6.6 and I get a slew of 
link-time errors:

External.o: In function `External_zdwcopyFileOrUrl_info':
ghc11833_0.hc:(.text+0xcdb2): undefined reference to 
`regexzmcompatzm0zi71_TextziRegex_a1_info'
External.o: In function `External_zdwfetchFilePS_info':
ghc11833_0.hc:(.text+0xd0ee): undefined reference to 
`regexzmcompatzm0zi71_TextziRegex_a1_info'
External.o: In function `External_zdwgzzFetchFilePS_info':
ghc11833_0.hc:(.text+0xd1fe): undefined reference to 
`regexzmcompatzm0zi71_TextziRegex_a1_info'
External.o: In function `External_copyFilesOrUrls_info':
ghc11833_0.hc:(.text+0xf8f6): undefined reference to 
`regexzmcompatzm0zi71_TextziRegex_a1_info'
External.o: In function `s9r9_1_alt':
ghc11833_0.hc:(.text+0xd086): undefined reference to 
`regexzmcompatzm0zi71_TextziRegex_a1_info'
External.o:ghc11833_0.hc:(.text+0x10f86): more undefined references to 
`regexzmcompatzm0zi71_TextziRegex_a1_info'
follow
External.o:(.rodata+0xe58): undefined reference to 
`regexzmcompatzm0zi71_TextziRegex_a1_closure'
External.o:(.rodata+0xe7c): undefined reference to 
`regexzmcompatzm0zi71_TextziRegex_a1_closure'
External.o:(.rodata+0xe94): undefined reference to 
`regexzmcompatzm0zi71_TextziRegex_a1_closure'
External.o:(.rodata+0xf8c): undefined reference to 
`regexzmcompatzm0zi71_TextziRegex_a1_closure'
FilePathUtils.o: In function `FilePathUtils_unfixzumaybezuabsolute_info':

[etc. etc. etc.]

It looks like a library problem of some kind.  Is Darcs known to compile with 
GHC-6.6?  My version of GHC-6.6 is the full version, also compiled from source, 
and includes the Text.Regex library.

Thanks,

Mike
msg1143 (view) Author: kowey Date: 2006-10-24.17:46:52
Hi,

Thanks for the report!  You have four options, if I understand
correctly:

1. Wait - there is a patch that is currently in unstable that
   will be making its way into stable and 1.0.9rc2 shortly.

2. Add the following line to configure.ac, line 113
GHC_CHECK_MODULE(Text.Regex( mkRegex, matchRegex, Regex ), regex-compat, mkRegex undefined)

3. If you have obtained darcs stable via darcs,
   darcs pull http://abridgegame.org/repos/darcs-unstable --match="author Josef"

4. If you have a working darcs and are willing to play with unstable code,
   darcs get http://abridgegame.org/repos/darcs-unstable

Please let us know if one of these works for you.

On Tue, Oct 24, 2006 at 16:37:28 +0000, mvanier wrote:
> It looks like a library problem of some kind.  Is Darcs known to compile with 
> GHC-6.6?  My version of GHC-6.6 is the full version, also compiled from source, 
> and includes the Text.Regex library.
msg1155 (view) Author: mvanier Date: 2006-10-28.08:35:56
Eric,

Thanks for the suggestions.  I pulled the unstable sources and they compiled fine.

Mike
msg1157 (view) Author: kowey Date: 2006-10-29.06:15:24
-- 
Eric Kow                     http://www.loria.fr/~kow
PGP Key ID: 08AC04F9         Merci de corriger mon français.
msg1763 (view) Author: tommy Date: 2007-06-29.19:40:18
fixed in 1.0.9
History
Date User Action Args
2006-10-24 16:37:28mvaniercreate
2006-10-24 17:46:58koweysetstatus: unread -> unknown
nosy: droundy, tommy, kowey, mvanier
messages: + msg1143
2006-10-28 08:36:04mvaniersetnosy: droundy, tommy, kowey, mvanier
messages: + msg1155
2006-10-29 06:15:35koweysetstatus: unknown -> resolved-in-stable
nosy: droundy, tommy, kowey, mvanier
messages: + msg1157
2007-06-29 19:40:18tommysetstatus: resolved-in-stable -> resolved
nosy: + beschmi
messages: + msg1763
2009-08-06 17:38:00adminsetnosy: + markstos, jast, Serware, dmitry.kurochkin, darcs-devel, zooko, dagit, mornfall, simon, thorkilnaur, - droundy, mvanier
2009-08-06 20:34:46adminsetnosy: - beschmi
2009-08-10 21:57:51adminsetnosy: + mvanier, - markstos, darcs-devel, zooko, jast, dagit, Serware, mornfall
2009-08-25 17:51:36adminsetnosy: + darcs-devel, - simon
2009-08-27 13:49:08adminsetnosy: tommy, kowey, darcs-devel, mvanier, thorkilnaur, dmitry.kurochkin