bug-gnulib
[Top][All Lists]
Advanced

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

Re: Building strtoull on HP-UX 10.20 requires stdint which is not includ


From: Simon Josefsson
Subject: Re: Building strtoull on HP-UX 10.20 requires stdint which is not included
Date: Tue, 24 Mar 2009 08:48:58 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.90 (gnu/linux)

Albert Chin <address@hidden> writes:

> With latest gnulib on HP-UX 10.20:
>   $ ./gnulib-tool --create-testdir --dir=t strtoull
>   $ cd t
>   $ ./configure
>   ...
>   $ gmake
>   ...
>   source='dummy.c' object='dummy.o' libtool=no \
>   DEPDIR=.deps depmode=hp /bin/sh ../build-aux/depcomp \
>   cc -Ae -DHAVE_CONFIG_H -I. -I..     -g -c dummy.c
>   source='strtoull.c' object='strtoull.o' libtool=no \
>   DEPDIR=.deps depmode=hp /bin/sh ../build-aux/depcomp \
>   cc -Ae -DHAVE_CONFIG_H -I. -I..     -g -c strtoull.c
>   cpp: "stdlib.h", line 52: error 4036: Can't open include file 'stdint.h'.
>   gmake[4]: *** [strtoull.o] Error 1

stdlib.in.h needs stdint.h for struct random_data:

struct random_data
{
  int32_t *fptr;                /* Front pointer.  */
...

So either we do:

--- a/modules/stdlib
+++ b/modules/stdlib
@@ -9,6 +9,7 @@ Depends-on:
 include_next
 link-warning
 unistd
+stdint

Or we add a new module 'random_data' that depends on stdlib+stdint, and
makes stdlib.h include stdint.h and define struct random_data.

I can see the advantages in the second alternative, to avoid having
gnulib's stdlib.h depend on stdint.h, but in the long run I'm not sure
if it is worth it.

Thoughts?

/Simon




reply via email to

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