problems compiling ghc-5.00.2 on Solaris 2.6

I am trying to build ghc-5.00.2 on one of our systems by a user request. I have successfully compiled ghc-4.08.2. Now I am trying to build ghc-5.00.2 but compilation fails in the following way after I issue the following commands: MAKE=gmake ./configure --prefix=/local/sol/2.6/depot/ghc-5.00.2 <works fine> gmake ... ../../../../glafp-utils/mkdependC/mkdependC -f .depend -- -O -Wall -DCOMPILING_STDLIB -I../../../includes -I../../../rts -- closeFile.c echoAux.c errno.c fileEOF.c fileGetc.c fileLookAhead.c fileObject.c filePosn.c filePutc.c fileSize.c flushFile.c freeFile.c getBufferMode.c getCPUTime.c getLock.c inputReady.c openFile.c progargs.c readFile.c seekFile.c setBinaryMode.c setBuffering.c system.c tcSetAttr.c writeError.c writeFile.c ------------------------------------------------------------------------ ===fptools== Finished making `boot' in cbits ... PWD = /home/src/akopps/ghc-5.00.2/ghc/lib/std ------------------------------------------------------------------------ ../../../ghc/utils/hsc2hs/hsc2hs-inplace Directory.hsc ld.so.1: /home/src/akopps/ghc-5.00.2/ghc/utils/hsc2hs/hsc2hs-bin: fatal: libncurses.so.5: open failed: No such file or directory Killed gmake[3]: *** [Directory.hs] Error 137 gmake[2]: *** [boot] Error 1 gmake[1]: *** [boot] Error 1 gmake[1]: Leaving directory `/home/src/akopps/ghc-5.00.2/ghc' gmake: *** [all] Error 1 hsc2hs-bin does not work because the system can't find ncurses although ncurses is installed. Our convention is to install all third-party software is /opt/local. Ncurses is present in /opt/local/lib but the runtime linker can't find it. I could solve this problem by adding /opt/local/lib to LD_LIBRARY_PATH but I'd rather not do that. I prefer to compile programs in such was that they find the needed libraries on their own. I use ld's -R flag to accomplish that. However, I don't know how to do it in the case of hsc2hs-bin. Does anyone know how to build ghc in such way that the binaries can find the libaries on their own without needing to use LD_LIBRARY_PATH? Thanks. -akop
participants (1)
-
Akop Pogosian