bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Link error on Solaris 11.3 sun4v sparc


From: Rees Machtemes
Subject: Re: Link error on Solaris 11.3 sun4v sparc
Date: Tue, 5 Oct 2021 10:45:12 -0600

For others that might find this message, I wanted to say that I have
solved my compilation problem.
First, let me apologize for misspelling the libltdl library. It's not
'libtdl' as I wrote in my OP.

Second, it seems that I was able to get as far as I did even though I
did not have libtool installed. I guess I expected `./configure` to
fail if I did not have it installed! So to compile the package I did:

# pkg install libtool
$ ./configure && make

Note that some Solaris/Oracle docs suggest that you should be adding
to following to your ./configure line for FOSS software:
CFLAGS="-m64" CXXFLAGS="-m64"
Or even set the environment var:
PKG_CONFIG_PATH=/usr/lib/64/pkgconfig
Do not do this! Compilation will break for GNU global. Just let
./configure do its thing the basic way!

Cheers,
Rees

On Fri, Sep 17, 2021 at 10:12 PM Rees Machtemes <reeskm@gmail.com> wrote:
>
> I'm trying to build Global on Solaris 11.3 on SPARC. It fails with
> this link error, but appears to be using built-in libtdl, not the
> installed libtdl from Solaris. I have some experience porting and
> building packages on Linux and BSD, but not this OS. Am I the first to
> try on 11.3?
>
> /bin/sh ../libtool  --tag=CC    --mode=link gcc  -g -O2    -o global
> global.o literal.o ../libparser/libgloparser.a ../libutil/libgloutil.a
> ../libdb/libglodb.a ../libglibc/libgloglibc.a ../libltdl/libltdlc.la
> libtool: link: gcc -g -O2 -o global global.o literal.o
> /tank/global-6.6.7/libltdl/./.libs/dlopen.a
> ../libparser/libgloparser.a ../libutil/libgloutil.a
> ../libdb/libglodb.a ../libglibc/libgloglibc.a
> ../libltdl/.libs/libltdlc.a
> Undefined                       first referenced
>  symbol                             in file
> lt_libltdlc_LTX_preloaded_symbols
> ../libltdl/.libs/libltdlc.a(libltdlc_la-ltdl.o)
> ld: fatal: symbol referencing errors



reply via email to

[Prev in Thread] Current Thread [Next in Thread]