I have the following modules listed in the bootstrap.conf file for
Octave:

  # gnulib modules used by this package.
  gnulib_modules="
    c-strcase   crypto/md5    fcntl      fnmatch      getcwd    gethostname
    getopt-gnu  gettimeofday  glob       link         lstat     mkdir
    mkfifo      sleep         nanosleep  pathmax      readlink  rename
    rmdir       sigaction     signal     sigprocmask  sleep     stat
    stdint      strftime      strptime   symlink      sys_stat  sys_time
    sys_times   time          times      unistd       unlink    vsnprintf
    round
  "

and I've received reports about the following undefined references
when linking:

  .libs/liboctave_la-lo-cutils.o:lo-cutils.c:(.text+0x4f): undefined reference 
to
  `gethostname_used_without_requesting_gnulib_module_gethostn...@8'
  ../libgnu/.libs/libgnu.a(error.o):error.c:(.text+0x181): undefined reference 
to `program_name'
  ../libgnu/.libs/libgnu.a(error.o):error.c:(.text+0x1e5): undefined reference 
to `program_name'
  ../libgnu/.libs/libgnu.a(fcntl.o):fcntl.c:(.text+0x53): undefined reference 
to `getdtablesize

Adding the progname and gtdtablesize modules to the gnulib_modules
list in the bootstrap.conf file avoids the problem, but it seems to me
tat it would be better to only list the modules I use directly and let
gnulib's dependency tracking handle the rest.  Is there a reasonably
easy way to track down which modules are missing these dependencies?
Or am I incorrect in thinking that I should only list the modules I
use directly?

Thanks,

jwe


Reply via email to