From: Joel Brobecker <brobecker@adacore.com>
To: gdb@sourceware.org
Subject: is --with-libexpat-prefix broken?
Date: Thu, 28 Feb 2008 00:32:00 -0000 [thread overview]
Message-ID: <20080227234911.GC19729@adacore.com> (raw)
It looks like it:
I tried configuring GDB on sparc-solaris using:
--with-libexpat-prefix=/nile.build/brobecke/exp/libexpat, where
/nile.build/brobecke/exp/libexpat is the prefix where I have
previously installed libexpat.
With gdb-6.7.1, configuring GDB with this --with-libexpat-prefix
was sufficient. The config.log showed:
> configure:6327: checking for libexpat
> configure:6351: gcc -o conftest -g -I/nile.build/brobecke/exp/libexpat/include conftest.c -lncurses -lsocket -lnsl -lm /nile.build/brobecke/exp/libexpat/lib/libexpat.a >&5
> configure:6357: $? = 0
So as you can see, the path to libexpat was automatically provided
to the GCC command. (the command also shows that I only built the
libexpat archive, but that's just a detail)
With the latest sources, I don't see the -I switch anymore, and
I don't see the path to the archive either. All I see is that configure
tries to build using -lexpat without specifying where the includes
or the library might be found:
> configure:7028: checking for libexpat
> configure:7052: gcc -o conftest -g conftest.c -lncurses -lsocket -lnsl -lm -lexpat >&5
> ld: fatal: library -lexpat: not found
> ld: fatal: File processing errors. No output written to conftest
> collect2: ld returned 1 exit status
I'm looking into it, but it's really puzzling. It looks like this
part is taken care of by config/lib-link.m4:AC_LIB_HAVE_LINKFLAGS.
And yet, I don't see a change since 6.7.1 that could likely be
responsible for this change of behavior.
Am I the only who sees this? Perhaps it's pilot error on my end,
although I seem to be following the documentation says I need
to do.
Thanks,
--
Joel
next reply other threads:[~2008-02-27 23:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-28 0:32 Joel Brobecker [this message]
2008-02-28 18:29 ` Daniel Jacobowitz
2008-02-28 18:36 ` Joel Brobecker
2008-02-28 19:29 ` Daniel Jacobowitz
2008-02-29 4:38 ` is --with-libexpat-prefix broken? NOT! Joel Brobecker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080227234911.GC19729@adacore.com \
--to=brobecker@adacore.com \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox