unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: Mark H Weaver <mhw@netris.org>
To: Marcin Cieslak <saper@saper.info>
Cc: 21285@debbugs.gnu.org
Subject: bug#21285: configure: <uniconv.h> not found despite --with-libunistring-prefix
Date: Sat, 22 Aug 2015 10:22:06 -0400	[thread overview]
Message-ID: <87r3mvs8s1.fsf@netris.org> (raw)
In-Reply-To: <alpine.BSF.2.11.1508180018420.7491@z.fncre.vasb> (Marcin Cieslak's message of "Tue, 18 Aug 2015 00:44:17 +0000")

Marcin Cieslak <saper@saper.info> writes:

> I cannot configure guile on an oldish Solaris SPARC machine
> when giving  --with-libunistring-prefix to the unistring location:
[...]
> I think this is because the -I flag is missing.

[...]

> --- BEGIN fragments of config.log --- full file follows ---
>
> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
>
> It was created by GNU Guile configure 2.0.11, which was
> generated by GNU Autoconf 2.69.  Invocation command line was
>
>   $ ../../src/guile-2.0.11/configure --build=sparc-sun-solaris.2.9 --host=sparc64-sun-solaris.2.9 --target=sparc64-sun-solaris.2.9 --prefix=/home/admini/saper/sparcv9 --with-libgmp-prefix=/home/admini/saper/sparcv9 --with-libintl-prefix=/home/admini/saper/sparcv9 --with-libreadline-prefix=/home/admini/saper/sparcv9 --with-libunistring-prefix=/home/admini/saper/sparcv9 --with-libltdl-prefix=/home/admini/saper/sparcv9 CC=/home/admini/saper/sparcv7/bin/gcc -m64 -mcpu=ultrasparc3 CC_FOR_BUILD=/home/admini/saper/sparcv7/bin/gcc -m64 -mcpu=ultrasparc3 BDW_GC_CFLAGS=-I/home/admini/saper/sparcv9/include BDW_GC_LIBS=-L/home/admini/saper/sparcv9/lib -lgc LIBFFI_CFLAGS=-I/home/admini/saper/sparcv9/include LIBFFI_LIBS=-L/home/admini/saper/sparcv9/lib -lffi AR=/usr/ccs/bin/ar LD=/usr/ccs/bin/ld NM=/u
 sr
>  /ccs/bin/nm STRIP=/usr/ccs/bin/strip

You may find that much of this complexity in the 'configure' command
could be eliminated by taking the following steps:

* export CPATH=/home/admini/saper/sparcv9/include
* export LIBRARY_PATH=/home/admini/saper/sparcv9/lib
* export PKG_CONFIG_PATH=/home/admini/saper/sparcv9/lib/pkgconfig
* install 'pkg-config' and make sure it's in PATH

That should allow you to simplify the command to this, if not further:

../../src/guile-2.0.11/configure --build=sparc-sun-solaris.2.9 --host=sparc64-sun-solaris.2.9 --target=sparc64-sun-solaris.2.9 --prefix=/home/admini/saper/sparcv9 CC="/home/admini/saper/sparcv7/bin/gcc -m64 -mcpu=ultrasparc3" CC_FOR_BUILD="/home/admini/saper/sparcv7/bin/gcc -m64 -mcpu=ultrasparc3" AR=/usr/ccs/bin/ar LD=/usr/ccs/bin/ld NM=/usr/ccs/bin/nm STRIP=/usr/ccs/bin/strip

It should also work around the problem you're having.

There may be additional difficulties related to the fact that you appear
to be cross-compiling.  Did you read the section "Cross building Guile"
in our README?

> /* snip */
>
> configure:14672: checking for libunistring

This doesn't appear to be the same 'configure' script that we distribute
with guile-2.0.11.  The line numbers are different.  Did you regenerate
it?

> configure:14694: /home/admini/saper/sparcv7/bin/gcc -m64 -mcpu=ultrasparc3 -o conftest -g -O2   conftest.c  -lunistring >&5
> conftest.c:123:21: fatal error: uniconv.h: No such file or directory
>  #include <uniconv.h>
>                      ^
> compilation terminated.

I agree that this is likely a problem in the m4 code, which we import
from gnulib, but for now, can you see if the above suggestions work for
you and report back?

     Thanks,
       Mark





  reply	other threads:[~2015-08-22 14:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-18  0:44 bug#21285: configure: <uniconv.h> not found despite --with-libunistring-prefix Marcin Cieslak
2015-08-22 14:22 ` Mark H Weaver [this message]
2015-09-14  9:34   ` Marcin Cieslak

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

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r3mvs8s1.fsf@netris.org \
    --to=mhw@netris.org \
    --cc=21285@debbugs.gnu.org \
    --cc=saper@saper.info \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).