bug-gnulib
[Top][All Lists]
Advanced

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

Re: missing module dependencies for vasnprintf


From: Jarno Rajahalme
Subject: Re: missing module dependencies for vasnprintf
Date: Thu, 8 Apr 2010 15:24:41 -0700

I'm trying to compile octave with GCC 4.4, and thought I have a problem with 
gnulib, so I did make distclean, git pull on gnulib, gnulib-tool --import, 
./configure.

I have now these defined in config.h, after doing the above:

#define NEED_PRINTF_DIRECTIVE_A 1
/* #undef NEED_PRINTF_DIRECTIVE_F */
/* #undef NEED_PRINTF_DIRECTIVE_LS */
/* #undef NEED_PRINTF_DOUBLE */
/* #undef NEED_PRINTF_ENOMEM */
/* #undef NEED_PRINTF_FLAG_GROUPING */
/* #undef NEED_PRINTF_FLAG_LEFTADJUST */
#define NEED_PRINTF_FLAG_ZERO 1
/* #undef NEED_PRINTF_INFINITE_DOUBLE */
#define NEED_PRINTF_INFINITE_LONG_DOUBLE 1
/* #undef NEED_PRINTF_LONG_DOUBLE */
/* #undef NEED_PRINTF_UNBOUNDED_PRECISION */


m4/gnulib-cache looks like this:

gl_LOCAL_DIR([gl])
gl_MODULES([
  c-strcase
  crypto/md5
  fcntl
  fnmatch
  getcwd
  gethostname
  getopt-gnu
  gettimeofday
  glob
  link
  lstat
  mkdir
  mkfifo
  nanosleep
  pathmax
  progname
  readlink
  rename
  rmdir
  round
  roundf
  sigaction
  signal
  sigprocmask
  sleep
  stat
  stdint
  strftime
  strptime
  symlink
  sys_stat
  sys_time
  sys_times
  time
  times
  trunc
  truncf
  unistd
  unlink
  vsnprintf
])
gl_AVOID([])
gl_SOURCE_BASE([libgnu])
gl_M4_BASE([m4])
gl_PO_BASE([])
gl_DOC_BASE([doc])
gl_TESTS_BASE([gltests])
gl_WITH_TESTS
gl_LIB([libgnu])
gl_MAKEFILE_NAME([])
gl_LIBTOOL
gl_MACRO_PREFIX([gl])
gl_PO_DOMAIN([])


libgnu/*.[ch]:
alignof.h               fnmatch.in.h            mkfifo.c                
strcasecmp.c
alloca.c                fnmatch_loop.c          nanosleep.c             strdup.c
alloca.h                fpucw.h                 open.c                  streq.h
alloca.in.h             frexp.c                 openat-die.c            
strerror.c
arg-nonnull.h           frexpl.c                openat-priv.h           
strftime.c
asnprintf.c             fstatat.c               openat-proc.c           
strftime.h
at-func.c               getcwd.c                openat.c                string.h
basename-lgpl.c         getdtablesize.c         openat.h                
string.in.h
c++defs.h               gethostname.c           pathmax.h               
strings.h
c-ctype.c               getlogin_r.c            pipe-safer.c            
strings.in.h
c-ctype.h               getopt.c                printf-args.c           
stripslash.c
c-strcase.h             getopt.h                printf-args.h           
strncasecmp.c
c-strcasecmp.c          getopt.in.h             printf-frexp.c          
strnlen1.c
c-strncasecmp.c         getopt1.c               printf-frexp.h          
strnlen1.h
canonicalize-lgpl.c     getopt_int.h            printf-frexpl.c         
strptime.c
chdir-long.c            gettext.h               printf-frexpl.h         
symlink.c
chdir-long.h            gettimeofday.c          printf-parse.c          
sys_select.in.h
chown.c                 glob-libc.h             printf-parse.h          
sys_socket.in.h
cloexec.c               glob.c                  progname.c              
sys_stat.in.h
cloexec.h               glob.h                  progname.h              
sys_time.in.h
close-hook.c            glob.in.h               readlink.c              
sys_times.in.h
close-hook.h            intprops.h              realloc.c               time.h
close.c                 isnan.c                 rename.c                
time.in.h
configmake.h            isnand-nolibm.h         rmdir.c                 time_r.c
dirent.h                isnand.c                round.c                 times.c
dirent.in.h             isnanl-nolibm.h         roundf.c                trunc.c
dirfd.c                 isnanl.c                same-inode.h            truncf.c
dirname-lgpl.c          lchown.c                save-cwd.c              
unistd--.h
dirname.h               link.c                  save-cwd.h              
unistd-safer.h
dup-safer.c             localcharset.c          select.c                unistd.h
dup2.c                  localcharset.h          sig-handler.h           
unistd.in.h
errno.in.h              lstat.c                 sigaction.c             unlink.c
error.c                 malloc.c                signal.h                
unlinkat.c
error.h                 malloca.c               signal.in.h             
vasnprintf.c
exitfail.c              malloca.h               sigprocmask.c           
vasnprintf.h
exitfail.h              math.h                  size_max.h              verify.h
fchdir.c                math.in.h               sleep.c                 
vsnprintf.c
fchmodat.c              mbrlen.c                sockets.c               
w32sock.h
fchown-stub.c           mbrtowc.c               sockets.h               
warn-on-use.h
fchownat.c              mbsinit.c               stat.c                  wchar.h
fclose.c                mbsrtowcs-state.c       stdbool.in.h            
wchar.in.h
fcntl.c                 mbsrtowcs.c             stddef.in.h             wctype.h
fcntl.h                 md5.c                   stdint.h                
wctype.in.h
fcntl.in.h              md5.h                   stdint.in.h             
xalloc-die.c
fd-safer.c              memchr.c                stdio-write.c           xalloc.h
fdopendir.c             mempcpy.c               stdio.h                 
xgetcwd.c
float+.h                memrchr.c               stdio.in.h              
xgetcwd.h
float.in.h              mkdir.c                 stdlib.h                
xmalloc.c
fnmatch.c               mkdirat.c               stdlib.in.h             xsize.h


I hope this helps. I can try reproduce this after my currently running 
"gnulib-tool --create-megatestdir --with-tests --dir=..." completes. Yesterday 
it failed to complete, and today it has been running for about 5 hours already, 
is this normal?

Regards,

  Jarno

On Apr 8, 2010, at 2:54 PM, ext Bruno Haible wrote:

> Hi,
> 
> Jarno Rajahalme wrote:
>> modules/vasnprintf is missing dependencies, which results in compile error:
>> 
>> vasnprintf.c:103:28: error: isnanl-nolibm.h: No such file or directory
>> vasnprintf.c:104:20: error: fpucw.h: No such file or directory
>> vasnprintf.c:109:28: error: isnand-nolibm.h: No such file or directory
>> vasnprintf.c:110:27: error: printf-frexp.h: No such file or directory
>> vasnprintf.c:116:28: error: printf-frexpl.h: No such file or directory
>> 
>> I got rid of the errors with this change:
>> *** modules/vasnprintf~      Fri Apr  2 17:41:34 2010
>> --- modules/vasnprintf       Thu Apr  8 12:32:19 2010
>> ***************
>> *** 25,30 ****
>> --- 25,38 ----
>> xsize
>> errno
>> memchr
>> + fpucw
>> + isnand-nolibm
>> + isnanl-nolibm
>> + frexp-nolibm
>> + frexpl-nolibm
>> + printf-frexp
>> + printf-frexpl
>> + 
>> 
>> configure.ac:
>> gl_FUNC_VASNPRINTF
> 
> This should not be needed. The include files that you mention are only
> used when NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_LONG_DOUBLE || 
> NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_DOUBLE,
> and these symbols will only be defined to 1 in <config.h> if a module
> of the family *printf-posix is used, and each of these modules depends
> on 'vasnprintf-posix', and 'vasnprintf-posix' depends on the modules
> that you mention.
> 
> Can you tell us how to reproduce the compilation error that you got?
> I.e.
>  1) Which modules did you ask gnulib-tool to import?
>  2) On which platform are you compiling the tarball?
> 
> Bruno





reply via email to

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