[BusyBox] Compiling dpkg-deb

Glenn McGrath bug1 at optushome.com.au
Sat Jun 23 01:35:35 UTC 2001


Erik Andersen wrote:

>On Fri Jun 22, 2001 at 01:36:23PM +1000, Glenn McGrath wrote:
>
>>hmm, you should have put emphasis on the *magic*...
>>
>>Actually i think i see it now, the "-DL_$(patsubst libbb/%,%,$*)" 
>>compiler option is what i previously didnt understand, that is whats 
>>allowign you to define out the unwanted bits for each function.
>>
>
>The idea is for each item listed in LIBBB_ARCOBJ, it will compile LIBBB_ARCSRC
>to produce the proper .o, and it will pass in a -DL_<func_name> define
>appropriate to the .o we are building.  So then I just sprinked in a bunch os
>#ifdef L_<func_name> lines in your file and everything was set.
>
> -Erik
>
If i try and compile busybox with dmalloc i get

libbb.a(deb_extract.o): In function `deb_extract':
deb_extract.o(.text+0x2e): undefined reference to `xstrdup'
deb_extract.o(.text+0x61): undefined reference to `xstrdup'
libbb.a(get_header_ar.o): In function `get_header_ar':
get_header_ar.o(.text+0x9b): undefined reference to `xcalloc'
get_header_ar.o(.text+0xcd): undefined reference to `xrealloc'
get_header_ar.o(.text+0x12a): undefined reference to `xstrdup'
get_header_ar.o(.text+0x13a): undefined reference to `xcalloc'
libbb.a(get_header_tar.o): In function `get_header_tar':
get_header_tar.o(.text+0x109): undefined reference to `xcalloc'
get_header_tar.o(.text+0x114): undefined reference to `xstrdup'
get_header_tar.o(.text+0x1b3): undefined reference to `xstrdup'
libbb.a(extract_archive.o): In function `extract_archive':
extract_archive.o(.text+0x47): undefined reference to `xmalloc'
extract_archive.o(.text+0xe8): undefined reference to `xmalloc'
collect2: ld returned 1 exit status
make: *** [busybox] Error 1

I cant see what the source of the problem is.


Glenn






More information about the busybox mailing list