GHC 4.08.2 on OpenBSD 2.9, almost

Donald Bruce Stewart dons@cse.unsw.edu.au
Sat, 16 Mar 2002 22:32:14 +1100


Hi,
    I'm trying to port any recent version of ghc to OpenBSD 2.9.
   
    I have, with a little bit of work, been able to compile 4.08.2
    from .hc sources.
   
    I now get the following kind of undefined symbol errors:

        Main.o: Undefined symbol `__init_Prelude' referenced from text
        segment
        Main.o: Undefined symbol `PrelBase_unpackCStringzh_closure'
        referenced from text segment
        Main.o: Undefined symbol `PrelIO_putStr_closure' referenced from
        text segment

            [ ... ]

        PrelMain__1.o: Undefined symbol `___init_Main' referenced from text
        segment
        .o::PrelMain(void): Undefined symbol `_Main_main_closure' referenced
        from text segment
        .o::PrelMain(void): Undefined symbol `_Main_main_closure' referenced
        from text segment

    My guess is that this kind of thing has happened before ... is there
    an area in the source I should be looking at?

Thanks,

Don Stewart
dons@cse.unsw.edu.au