[uClibc] failed to build mipsel - bz2 related problem

Jun Sun jsun at junsun.net
Thu Oct 30 00:57:40 UTC 2003


I am trying to build a mipsel root fs with the latest buidroot
script.  See the attached patch for my config changes.

The first problem I encountered missing symbol get_header_tar_bz2().
It appears there is a typo in libunarchive/Makefile.in.  See my patch.

However after fixing that, I got another missing symbol, BZ2_bzReadOpen.
I can't find anywhere of its definition.

Is bz2 support not complete?  If so, why don't we disable bzip2 in
the default busybox configration?

Thanks.

Jun
-------------- next part --------------
diff -Nru buildroot/Makefile.orig buildroot/Makefile
--- buildroot/Makefile.orig	2003-10-21 23:44:40.000000000 -0700
+++ buildroot/Makefile	2003-10-29 15:46:48.000000000 -0800
@@ -29,10 +29,11 @@
 #############################################################
 
 # What sortof target system shall we compile this for?
-ARCH:=i386
+#ARCH:=i386
 #ARCH:=arm
 #ARCH:=powerpc
 #ARCH:=whatever
+ARCH:=mipsel
 
 # enable to build a native gcc toolchain with uclibc support
 USE_UCLIBC_TOOLCHAIN:=true
@@ -53,7 +54,7 @@
 USE_BUSYBOX_SNAPSHOT:=true
 
 # Enable large file (files > 2 GB) support
-BUILD_WITH_LARGEFILE:=true
+BUILD_WITH_LARGEFILE:=false
 
 # Command used to download source code
 WGET:=wget --passive-ftp
@@ -65,8 +66,8 @@
 #OPTIMIZE_FOR_CPU=whatever
 
 # Any additional gcc options you may want to include....
-EXTRA_GCC_CONFIG_OPTIONS=
-#EXTRA_GCC_CONFIG_OPTIONS=--without-float
+#EXTRA_GCC_CONFIG_OPTIONS=
+EXTRA_GCC_CONFIG_OPTIONS=--without-float
 
 # Enable the following if you want locale/gettext/i18n support.
 #ENABLE_LOCALE:=true
@@ -76,7 +77,7 @@
 MULTILIB:=--enable-multilib
 
 #Install libstdc++?
-INSTALL_LIBSTDCPP=true
+INSTALL_LIBSTDCPP=false
 
 # For SMP machines some stuff can be run in parallel
 #JLEVEL=-j3
diff -Nru buildroot/build_mipsel/busybox/archival/libunarchive/Makefile.in.orig buildroot/build_mipsel/busybox/archival/libunarchive/Makefile.in
--- buildroot/build_mipsel/busybox/archival/libunarchive/Makefile.in.orig	2003-10-28 02:44:58.000000000 -0800
+++ buildroot/build_mipsel/busybox/archival/libunarchive/Makefile.in	2003-10-29 16:46:42.000000000 -0800
@@ -70,7 +70,7 @@
 LIBUNARCHIVE-$(CONFIG_RPM2CPIO) += $(GUNZIP_FILES) get_header_cpio.o 
 LIBUNARCHIVE-$(CONFIG_RPM) += $(GUNZIP_FILES) get_header_cpio.o
 LIBUNARCHIVE-$(CONFIG_TAR) += get_header_tar.o
-LIBUNARCHIVE-$(CONFIG_FEATURE_TAR_BZ2) += get_header_tar_bz2.o
+LIBUNARCHIVE-$(CONFIG_FEATURE_TAR_BZIP2) += get_header_tar_bz2.o
 LIBUNARCHIVE-$(CONFIG_FEATURE_TAR_GZIP) += $(GUNZIP_FILES) get_header_tar_gz.o
 LIBUNARCHIVE-$(CONFIG_UNCOMPRESS) += uncompress.o
 LIBUNARCHIVE-$(CONFIG_UNZIP) += $(GUNZIP_FILES)


More information about the uClibc mailing list