bug-gnulib
[Top][All Lists]
Advanced

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

Re: modules needed and not added into libgnu.a


From: Bruce Korb
Subject: Re: modules needed and not added into libgnu.a
Date: Sat, 14 Nov 2009 11:12:02 -0800
User-agent: Thunderbird 2.0.0.21 (X11/20090310)

Eric Blake wrote:
> According to Bruce Korb on 11/14/2009 11:36 AM:
>> Still trying to build shar (now without "gnits").
>> I see the sources for these in sharutils/lib, but:
> 
> Are you using gnulib-tool --import, the bootstrap script from gnulib, or
> some other means to import gnulib modules?  I'm wondering if it is just a
> case of not importing enough modules.

That was part, but not all, of it:


gcc  -g -Wall   -o shar shar.o encode.o ../lib/libgnu.a  ../lib/libgnu.a
shar.o: In function `shar':
/home/gnu/proj/sharutils-bld/src/shar.c:1576: undefined reference to 
`md5_stream'
shar.o: In function `main':
/home/gnu/proj/sharutils-bld/src/shar.c:2190: undefined reference to 
`get_submitter'
collect2: ld returned 1 exit status

If getting "whoami" and "md5" don't yield these functions, then what?

$ find lib -type f|xargs egrep 'md5_stream|get_submitter'
lib/whoami.c:get_submitter (buffer)
lib/system.h:char *get_submitter __P ((char *));
lib/md5.c:md5_stream (stream, resblock)
lib/md5.h: * the functions `md5_stream' and `md5_buffer'.
lib/md5.h:extern int md5_stream __P ((FILE *stream, void *resblock));

> if test -x ../gnulib/gnulib-tool
> then glib=../gnulib/gnulib-tool
> else glib=$(which gnulib-tool)
> fi
> gnulib_libs="
>         error
>         inttostr
>         malloc
>         md5
>         realloc
>         system
>         whoami
>         xalloc
>         xgetcwd
>         xstrdup
>         xstrtoimax
> "
> ${glib} --import ${gnulib_libs}




reply via email to

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