[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AC_CHECK_SIZEOF: cannot compute sizeof (int)
From: |
Harald Servat |
Subject: |
Re: AC_CHECK_SIZEOF: cannot compute sizeof (int) |
Date: |
Thu, 05 Apr 2007 08:36:49 +0200 |
User-agent: |
Thunderbird 1.5.0.7 (X11/20061027) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Stephane Bortzmeyer wrote:
> I have a configure.ac which calls:
>
> AC_CHECK_SIZEOF(int)
>
> This fails on a machine (a FreeBSD 6.1-RELEASE / Itanium) with:
>
> checking size of int... configure: error: cannot compute sizeof (int)
>
> And config.log contains:
>
> configure:22234: cc -o conftest -g -O2 -I/house/bortz/include
> -L/house/bortz/lib conftest.c -lpopt -lm >&5
> configure:22237: $? = 0
> configure:22243: ./conftest
> /libexec/ld-elf.so.1: Shared object "libpopt.so.0" not found, required by
> "conftest"
>
> [libpopt.so.0 is in /house/bortz/lib]
>
> Indeed, I need popt so I passed --with-popt=$HOME to configure. The
> code compiled through libtool seems fine with it but autoconf's tests
> like SIZEOF does not go through libtool and are not executable unless
> I manually set LD_LIBRARY_PATH, which is inconvenient.
>
> Any idea?
>
>
> _______________________________________________
> Autoconf mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/autoconf
Hi again,
two more things:
* maybe a faster solution (and check), is run AC_CHECK_SIZEOF(int)
before setting anything related with libpopt?
* if this doesn't work, maybe you could add -rpath in your LIBS so as
to have a default lib path for popt
cc -o conftest -g -O2 -I/house/bortz/include conftest.c
- -L/house/bortz/lib -Wl,-rpath,/house/bortz/lib -lpopt -lm
Regards,
PS sorry for the other top-posting.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (FreeBSD)
iD8DBQFGFJkBwMPeuqUCg9wRApROAJ9CLk/FNddvvYKVDtbbbB0GytJnCACfbC5o
1q+aLHTrIba1g965kdDEiP8=
=wpwa
-----END PGP SIGNATURE-----