RPM Community Forums

Mailing List Message of <popt-devel>

Re: cross-compilation of popt 1.14 fails

From: Jeff Johnson <n3npq@mac.com>
Date: Thu 09 Oct 2008 - 21:37:35 CEST
Message-id: <6D5668E3-9ED0-495B-B3AC-DB9736CCB794@mac.com>

On Oct 9, 2008, at 2:55 PM, Paul Smith wrote:

> Hi all;
>
> If I try to cross-compile popt 1.14, the configure fails (I'm
> cross-compiling for powerpc):
>
>         checking for string.h... (cached) yes
>         checking for va_copy() function... configure: error: cannot  
> run test program while cross compiling
>         See config.log' for more details.
>
> I worked around this by pre-setting the variable in the environment  
> when
> invoking configure:
>
>         ac_cv_va_copy=C99 ./configure ...
>
> It would be nice if cross-compiling were supported.
>

Fixed a couple of days ago.

Here's the dinky patch:

Index: CHANGES
===================================================================
RCS file: /v/rpm/cvs/popt/CHANGES,v
retrieving revision 1.85
retrieving revision 1.86
diff -u -b -B -w -p -r1.85 -r1.86
--- CHANGES     18 Sep 2008 18:16:28 -0000      1.85
+++ CHANGES     4 Oct 2008 19:23:50 -0000       1.86
@@ -1,4 +1,5 @@
  1.14 -> 1.15:
+    - jbj: fix: remove AC_CHECK_VA_COPY check, va_copy is no longer  
used.
      - jbj: add eo.po and id.po (Translation Project).
      - jbj: updated da.po (Translation Project).
      - jbj: extend coverage to several additional setup routines.
Index: configure.ac
===================================================================
RCS file: /v/rpm/cvs/popt/configure.ac,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -b -B -w -p -r1.43 -r1.44
--- configure.ac        18 Sep 2008 18:16:28 -0000      1.43
+++ configure.ac        4 Oct 2008 19:23:50 -0000       1.44
@@ -43,7 +43,6 @@ AC_SYS_LARGEFILE

  AC_ISC_POSIX
  AM_C_PROTOTYPES
-AC_CHECK_VA_COPY

  AC_CHECK_HEADERS(float.h glob.h langinfo.h libintl.h mcheck.h  
unistd.h)

73 de Jeff
Received on Thu Oct 9 22:38:37 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.