Re: compile on Solaris 8 with gcc 3.2.2
On Fri, Oct 31, 2003 at 04:32:01PM +0900, henry nelson wrote:
> Months later, still trying to compile mutt[-1.5.4] on Solaris 8. No luck.
> Anyone out there who can provide me with a "howto?" Compiler is gcc3.2.2.
>
> Actually, some progress has been made. By using libiconv.a in my private
> directory, I was able to get to the very last linker step. Unfortunately,
> even without the "-static" option to gcc the linker tries to link statically,
> but fails with the following. (Words between [] are translated.)
> ...
> packet.o smime.o resize.o dotlock.o -lslang -lm -lintl
> -L/home/kyoin/nelson
> he/.usr/lib -liconv -ldl -lc
> [Undefined] [File first referenced]
> [symbol] [from]
> _dlopen
> /home/kyoin/nelsonhe/.usr/lib/libc.a(nss_def
> finder.o) ([Symbol is silently dependent on] /usr/lib/libdl.so.1 )
> _dlclose
> /home/kyoin/nelsonhe/.usr/lib/libc.a(nss_def
> finder.o) ([Symbol is silently dependent on] /usr/lib/libdl.so.1 )
> _dlsym
> /home/kyoin/nelsonhe/.usr/lib/libc.a(nss_def
> finder.o) ([Symbol is silently dependent on] /usr/lib/libdl.so.1 )
> ld: [fatal error: Symbol referencing error. Cannot write to mutt.]
> collect2: ld returned 1 exit status
>
> This shows up immediately on a Google search, but I couldn't get any of the
> suggested solutions to work. The most promising seemed to be to compile
> dummy routines for dlopen, dlclose and dlsym and put them in a static library
> "libdl.a", but while -liconv and -lc are obviously being picked up, -ldl
> doesn't seem to.
>
> The mutt configure script cannot seem to handle any LDFLAGS, so I really
> have no other ideas. It's the end of the trail unless someone has more
> suggestions. TIA
>
Is compiling it on Solaris 8 an end in itself or are you just trying
to get a working copy of mutt? I can compile mutt on my Solaris 2.6
system (Solaris 8 == Solaris 2.8) so could compile a mutt for you if
you wanted.
--
Chris Green (chris@xxxxxxxxxxx)