tobiaswaldvogel / openwrt-addpack

Additional packages for OpenWRT, mainly NAS devices
71 stars 61 forks source link

issue with libattr. #1

Open lionsant opened 11 years ago

lionsant commented 11 years ago

Hi iam trying to compile attr package and i have this error:

gmake[5]: Entering directory /Volumes/openwrt/trunk/build_dir/target-arm_v4_uClibc-0.9.33.2_eabi/attr-2.4.46/attr' /bin/bash ../libtool --mode=link arm-openwrt-linux-uclibcgnueabi-gcc -o attr -L/Volumes/openwrt/trunk/staging_dir/target-arm_v4_uClibc-0.9.33.2_eabi/usr/lib -L/Volumes/openwrt/trunk/staging_dir/target-arm_v4_uClibc-0.9.33.2_eabi/lib -L/Volumes/openwrt/trunk/staging_dir/toolchain-arm_v4_gcc-4.6-linaro_uClibc-0.9.33.2_eabi/usr/lib -L/Volumes/openwrt/trunk/staging_dir/toolchain-arm_v4_gcc-4.6-linaro_uClibc-0.9.33.2_eabi/lib -Wl,-rpath-link=/Volumes/openwrt/trunk/staging_dir/target-arm_v4_uClibc-0.9.33.2_eabi/usr/lib -L/Volumes/openwrt/trunk/staging_dir/target-arm_v4_uClibc-0.9.33.2_eabi/usr/lib -L/Volumes/openwrt/trunk/staging_dir/target-arm_v4_uClibc-0.9.33.2_eabi/lib -L/Volumes/openwrt/trunk/staging_dir/toolchain-arm_v4_gcc-4.6-linaro_uClibc-0.9.33.2_eabi/usr/lib -L/Volumes/openwrt/trunk/staging_dir/toolchain-arm_v4_gcc-4.6-linaro_uClibc-0.9.33.2_eabi/lib -Wl,-rpath-link=/Volumes/openwrt/trunk/staging_dir/target-arm_v4_uClibc-0.9.33.2_eabi/usr/lib -L/Volumes/openwrt/trunk/staging_dir/target-arm_v4_uClibc-0.9.33.2_eabi/usr/lib -L/Volumes/openwrt/trunk/staging_dir/target-arm_v4_uClibc-0.9.33.2_eabi/lib -L/Volumes/openwrt/trunk/staging_dir/toolchain-arm_v4_gcc-4.6-linaro_uClibc-0.9.33.2_eabi/usr/lib -L/Volumes/openwrt/trunk/staging_dir/toolchain-arm_v4_gcc-4.6-linaro_uClibc-0.9.33.2_eabi/lib -Wl,-rpath-link=/Volumes/openwrt/trunk/staging_dir/target-arm_v4_uClibc-0.9.33.2_eabi/usr/lib -L/Volumes/openwrt/trunk/staging_dir/target-arm_v4_uClibc-0.9.33.2_eabi/usr/lib -L/Volumes/openwrt/trunk/staging_dir/target-arm_v4_uClibc-0.9.33.2_eabi/lib -L/Volumes/openwrt/trunk/staging_dir/toolchain-arm_v4_gcc-4.6-linaro_uClibc-0.9.33.2_eabi/usr/lib -L/Volumes/openwrt/trunk/staging_dir/toolchain-arm_v4_gcc-4.6-linaro_uClibc-0.9.33.2_eabi/lib -Wl,-rpath-link=/Volumes/openwrt/trunk/staging_dir/target-arm_v4_uClibc-0.9.33.2_eabi/usr/lib attr.o ../libattr/libattr.la libtool: link: arm-openwrt-linux-uclibcgnueabi-gcc -o .libs/attr -Wl,-rpath-link=/Volumes/openwrt/trunk/staging_dir/target-arm_v4_uClibc-0.9.33.2_eabi/usr/lib -Wl,-rpath-link=/Volumes/openwrt/trunk/staging_dir/target-arm_v4_uClibc-0.9.33.2_eabi/usr/lib -Wl,-rpath-link=/Volumes/openwrt/trunk/staging_dir/target-arm_v4_uClibc-0.9.33.2_eabi/usr/lib -Wl,-rpath-link=/Volumes/openwrt/trunk/staging_dir/target-arm_v4_uClibc-0.9.33.2_eabi/usr/lib attr.o -L/Volumes/openwrt/trunk/staging_dir/target-arm_v4_uClibc-0.9.33.2_eabi/usr/lib -L/Volumes/openwrt/trunk/staging_dir/target-arm_v4_uClibc-0.9.33.2_eabi/lib -L/Volumes/openwrt/trunk/staging_dir/toolchain-arm_v4_gcc-4.6-linaro_uClibc-0.9.33.2_eabi/usr/lib -L/Volumes/openwrt/trunk/staging_dir/toolchain-arm_v4_gcc-4.6-linaro_uClibc-0.9.33.2_eabi/lib ../libattr/.libs/libattr.so ../libattr/.libs/libattr.so: undefined reference tollistxattr' ../libattr/.libs/libattr.so: undefined reference to lsetxattr' ../libattr/.libs/libattr.so: undefined reference tofgetxattr' ../libattr/.libs/libattr.so: undefined reference to lremovexattr' ../libattr/.libs/libattr.so: undefined reference toremovexattr' ../libattr/.libs/libattr.so: undefined reference to listxattr' ../libattr/.libs/libattr.so: undefined reference tofremovexattr' ../libattr/.libs/libattr.so: undefined reference to lgetxattr' ../libattr/.libs/libattr.so: undefined reference tosetxattr' ../libattr/.libs/libattr.so: undefined reference to flistxattr' ../libattr/.libs/libattr.so: undefined reference tofsetxattr' ../libattr/.libs/libattr.so: undefined reference to getxattr' collect2: ld returned 1 exit status gmake[5]: *** [attr] Error 1 gmake[5]: Leaving directory/Volumes/openwrt/trunk/build_dir/target-arm_v4_uClibc-0.9.33.2_eabi/attr-2.4.46/attr' gmake[4]: * [attr] Error 2 gmake[4]: Leaving directory `/Volumes/openwrt/trunk/build_dir/target-arm_v4_uClibc-0.9.33.2_eabi/attr-2.4.46' make[3]: ** [default] Error 2 make[2]: [/Volumes/openwrt/trunk/build_dir/target-arm_v4_uClibc-0.9.33.2_eabi/attr-2.4.46/.built] Error 2 make[2]: Leaving directory/Volumes/openwrt/trunk/feeds/addpack/attr' make[1]: **\* [package/feeds/addpack/attr/compile] Error 2 make[1]: Leaving directory/Volumes/openwrt/trunk' make: *\ [package/feeds/addpack/attr/compile] Error 2

I'm using a mac ports on Mac OS Mountain lion with last version of openwrt source(svn 36638 revision) and feeds are updated.

Someone could help me?

tobiaswaldvogel commented 11 years ago

You seem to use uclibc. I never tried it with uclibc, please use eglibc.

A good starting point is copy the defconfig to .config as outlined in the readme:

cp default-config .config

Best regards, Tobias

lionsant commented 11 years ago

Tnks for the answer.

I've changed from uclibc to eglibc as you suggest. I tried first with some default packages and after with some packages of addpack repository.

With the addpack repository, i sucessfully compile attr. Thanks a lot. But i have a new problem, with the package acl.

This is the complete output;

" geonosis:trunk lsantoro$ make package/feeds/addpack/acl/compile V=s make[1]: Entering directory /Volumes/openwrt_ds/trunk' make[2]: Entering directory/Volumes/openwrt_ds/trunk/package/toolchain' if [ -f /Volumes/openwrt_ds/trunk/staging_dir/target-arm_v4_eglibc-2.17_eabi/pkginfo/toolchain.default.install.clean ]; then rm -f /Volumes/openwrt_ds/trunk/staging_dir/target-arm_v4_eglibc-2.17_eabi/pkginfo/toolchain.default.install /Volumes/openwrt_ds/trunk/staging_dir/target-arm_v4_eglibc-2.17_eabi/pkginfo/toolchain.default.install.clean; fi; echo "libc" >> /Volumes/openwrt_ds/trunk/staging_dir/target-arm_v4_eglibc-2.17_eabi/pkginfo/toolchain.default.install if [ -f /Volumes/openwrt_ds/trunk/staging_dir/target-arm_v4_eglibc-2.17_eabi/pkginfo/toolchain.default.install.clean ]; then rm -f /Volumes/openwrt_ds/trunk/staging_dir/target-arm_v4_eglibc-2.17_eabi/pkginfo/toolchain.default.install /Volumes/openwrt_ds/trunk/staging_dir/target-arm_v4_eglibc-2.17_eabi/pkginfo/toolchain.default.install.clean; fi; echo "libgcc" >> /Volumes/openwrt_ds/trunk/staging_dir/target-arm_v4_eglibc-2.17_eabi/pkginfo/toolchain.default.install WARNING: skipping libssp -- package not selected if [ -f /Volumes/openwrt_ds/trunk/staging_dir/target-arm_v4_eglibc-2.17_eabi/pkginfo/toolchain.default.install.clean ]; then rm -f /Volumes/openwrt_ds/trunk/staging_dir/target-arm_v4_eglibc-2.17_eabi/pkginfo/toolchain.default.install /Volumes/openwrt_ds/trunk/staging_dir/target-arm_v4_eglibc-2.17_eabi/pkginfo/toolchain.default.install.clean; fi; echo "libpthread" >> /Volumes/openwrt_ds/trunk/staging_dir/target-arm_v4_eglibc-2.17_eabi/pkginfo/toolchain.default.install WARNING: skipping libthread-db -- package not selected if [ -f /Volumes/openwrt_ds/trunk/staging_dir/target-arm_v4_eglibc-2.17_eabi/pkginfo/toolchain.default.install.clean ]; then rm -f /Volumes/openwrt_ds/trunk/staging_dir/target-arm_v4_eglibc-2.17_eabi/pkginfo/toolchain.default.install /Volumes/openwrt_ds/trunk/staging_dir/target-arm_v4_eglibc-2.17_eabi/pkginfo/toolchain.default.install.clean; fi; echo "librt" >> /Volumes/openwrt_ds/trunk/staging_dir/target-arm_v4_eglibc-2.17_eabi/pkginfo/toolchain.default.install WARNING: skipping libgfortran -- package not selected WARNING: skipping ldd -- package not selected WARNING: skipping ldconfig -- package not selected make[2]: Leaving directory /Volumes/openwrt_ds/trunk/package/toolchain' make[2]: Entering directory/Volumes/openwrt_ds/trunk/feeds/addpack/attr' WARNING: skipping attr -- package not selected make[2]: Leaving directory /Volumes/openwrt_ds/trunk/feeds/addpack/attr' make[2]: Entering directory/Volumes/openwrt_ds/trunk/feeds/addpack/acl' WARNING: skipping acl -- package not selected CFLAGS="-Os -pipe -march=armv4 -mtune=fa526 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -I/Volumes/openwrt_ds/trunk/staging_dir/target-arm_v4_eglibc-2.17_eabi/usr/include -I/Volumes/openwrt_ds/trunk/staging_dir/target-arm_v4_eglibc-2.17_eabi/include -I/Volumes/openwrt_ds/trunk/staging_dir/toolchain-arm_v4_gcc-4.6-linaro_eglibc-2.17_eabi/usr/include -I/Volumes/openwrt_ds/trunk/staging_dir/toolchain-arm_v4_gcc-4.6-linaro_eglibc-2.17_eabi/include " CXXFLAGS="-Os -pipe -march=armv4 -mtune=fa526 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -I/Volumes/openwrt_ds/trunk/staging_dir/target-arm_v4_eglibc-2.17_eabi/usr/include -I/Volumes/openwrt_ds/trunk/staging_dir/target-arm_v4_eglibc-2.17_eabi/include -I/Volumes/openwrt_ds/trunk/staging_dir/toolchain-arm_v4_gcc-4.6-linaro_eglibc-2.17_eabi/usr/include -I/Volumes/openwrt_ds/trunk/staging_dir/toolchain-arm_v4_gcc-4.6-linaro_eglibc-2.17_eabi/include " LDFLAGS="-L/Volumes/openwrt_ds/trunk/staging_dir/target-arm_v4_eglibc-2.17_eabi/usr/lib -L/Volumes/openwrt_ds/trunk/staging_dir/target-arm_v4_eglibc-2.17_eabi/lib -L/Volumes/openwrt_ds/trunk/staging_dir/toolchain-arm_v4_gcc-4.6-linaro_eglibc-2.17_eabi/usr/lib -L/Volumes/openwrt_ds/trunk/staging_dir/toolchain-arm_v4_gcc-4.6-linaro_eglibc-2.17_eabi/lib -Wl,-rpath-link=/Volumes/openwrt_ds/trunk/staging_dir/target-arm_v4_eglibc-2.17_eabi/usr/lib" make -j1 -C /Volumes/openwrt_ds/trunk/build_dir/target-arm_v4_eglibc-2.17_eabi/acl-2.2.51/. AR=arm-openwrt-linux-gnueabi-ar AS="arm-openwrt-linux-gnueabi-gcc -c -Os -pipe -march=armv4 -mtune=fa526 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float " LD=arm-openwrt-linux-gnueabi-ld NM=arm-openwrt-linux-gnueabi-nm CC="arm-openwrt-linux-gnueabi-gcc" GCC="arm-openwrt-linux-gnueabi-gcc" CXX="arm-openwrt-linux-gnueabi-g++" RANLIB=arm-openwrt-linux-gnueabi-ranlib STRIP=arm-openwrt-linux-gnueabi-strip OBJCOPY=arm-openwrt-linux-gnueabi-objcopy OBJDUMP=arm-openwrt-linux-gnueabi-objdump SIZE=arm-openwrt-linux-gnueabi-size CROSS="arm-openwrt-linux-gnueabi-" ARCH="arm" ; /opt/local/bin/gmake include libmisc libacl getfacl setfacl chacl m4 man doc po test examples build debian gmake[4]: Entering directory /Volumes/openwrt_ds/trunk/build_dir/target-arm_v4_eglibc-2.17_eabi/acl-2.2.51' /opt/local/bin/gmake -C include gmake[5]: Entering directory/Volumes/openwrt_ds/trunk/build_dir/target-arm_v4_eglibc-2.17_eabi/acl-2.2.51/include' gmake[5]: Nothing to be done for default'. gmake[5]: Leaving directory/Volumes/openwrt_ds/trunk/build_dir/target-arm_v4_eglibc-2.17_eabi/acl-2.2.51/include' /opt/local/bin/gmake -C libmisc gmake[5]: Entering directory /Volumes/openwrt_ds/trunk/build_dir/target-arm_v4_eglibc-2.17_eabi/acl-2.2.51/libmisc' gmake[5]: Nothing to be done fordefault'. gmake[5]: Leaving directory /Volumes/openwrt_ds/trunk/build_dir/target-arm_v4_eglibc-2.17_eabi/acl-2.2.51/libmisc' /opt/local/bin/gmake -C libacl gmake[5]: Entering directory/Volumes/openwrt_ds/trunk/build_dir/target-arm_v4_eglibc-2.17_eabi/acl-2.2.51/libacl' gmake[5]: Nothing to be done for default'. gmake[5]: Leaving directory/Volumes/openwrt_ds/trunk/build_dir/target-arm_v4_eglibc-2.17_eabi/acl-2.2.51/libacl' /opt/local/bin/gmake -C getfacl gmake[5]: Entering directory /Volumes/openwrt_ds/trunk/build_dir/target-arm_v4_eglibc-2.17_eabi/acl-2.2.51/getfacl' gmake[5]: Nothing to be done fordefault'. gmake[5]: Leaving directory /Volumes/openwrt_ds/trunk/build_dir/target-arm_v4_eglibc-2.17_eabi/acl-2.2.51/getfacl' /opt/local/bin/gmake -C setfacl gmake[5]: Entering directory/Volumes/openwrt_ds/trunk/build_dir/target-arm_v4_eglibc-2.17_eabi/acl-2.2.51/setfacl' gmake[5]: Nothing to be done for default'. gmake[5]: Leaving directory/Volumes/openwrt_ds/trunk/build_dir/target-arm_v4_eglibc-2.17_eabi/acl-2.2.51/setfacl' /opt/local/bin/gmake -C chacl gmake[5]: Entering directory /Volumes/openwrt_ds/trunk/build_dir/target-arm_v4_eglibc-2.17_eabi/acl-2.2.51/chacl' arm-openwrt-linux-gnueabi-gcc -Os -pipe -march=armv4 -mtune=fa526 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -I/Volumes/openwrt_ds/trunk/staging_dir/target-arm_v4_eglibc-2.17_eabi/usr/include -I/Volumes/openwrt_ds/trunk/staging_dir/target-arm_v4_eglibc-2.17_eabi/include -I/Volumes/openwrt_ds/trunk/staging_dir/toolchain-arm_v4_gcc-4.6-linaro_eglibc-2.17_eabi/usr/include -I/Volumes/openwrt_ds/trunk/staging_dir/toolchain-arm_v4_gcc-4.6-linaro_eglibc-2.17_eabi/include -g -O2 -DDEBUG -funsigned-char -fno-strict-aliasing -Wall -DVERSION=\"2.2.51\" -DLOCALEDIR=\"/usr/share/locale\" -DPACKAGE=\"acl\" -I./include -g -O2 -DDEBUG -funsigned-char -fno-strict-aliasing -Wall -DVERSION=\"2.2.51\" -DLOCALEDIR=\"/usr/share/locale\" -DPACKAGE=\"acl\" -I./include -g -O2 -DDEBUG -funsigned-char -fno-strict-aliasing -Wall -DVERSION=\"2.2.51\" -DLOCALEDIR=\"/usr/share/locale\" -DPACKAGE=\"acl\" -I../include -c -o chacl.o chacl.c chacl.c: In function 'walk_dir': chacl.c:335:2: warning: implicit declaration of function 'readdir64' [-Wimplicit-function-declaration] chacl.c:335:12: warning: assignment makes pointer from integer without a cast [enabled by default] chacl.c:337:7: error: dereferencing pointer to incomplete type chacl.c:337:7: error: dereferencing pointer to incomplete type chacl.c:337:7: warning: left-hand operand of comma expression has no effect [-Wunused-value] chacl.c:337:7: error: dereferencing pointer to incomplete type chacl.c:337:7: error: dereferencing pointer to incomplete type chacl.c:337:7: warning: value computed is not used [-Wunused-value] chacl.c:337:7: error: dereferencing pointer to incomplete type chacl.c:337:7: error: dereferencing pointer to incomplete type chacl.c:337:7: error: dereferencing pointer to incomplete type chacl.c:337:7: error: dereferencing pointer to incomplete type chacl.c:337:7: error: dereferencing pointer to incomplete type chacl.c:337:7: warning: left-hand operand of comma expression has no effect [-Wunused-value] chacl.c:337:7: error: dereferencing pointer to incomplete type chacl.c:337:7: error: dereferencing pointer to incomplete type chacl.c:337:7: error: dereferencing pointer to incomplete type chacl.c:337:7: error: dereferencing pointer to incomplete type chacl.c:337:7: error: dereferencing pointer to incomplete type chacl.c:337:7: error: dereferencing pointer to incomplete type chacl.c:337:7: error: dereferencing pointer to incomplete type chacl.c:337:7: error: dereferencing pointer to incomplete type chacl.c:337:7: error: dereferencing pointer to incomplete type chacl.c:337:7: error: dereferencing pointer to incomplete type chacl.c:337:7: error: dereferencing pointer to incomplete type chacl.c:337:38: error: dereferencing pointer to incomplete type chacl.c:337:38: error: dereferencing pointer to incomplete type chacl.c:337:38: warning: left-hand operand of comma expression has no effect [-Wunused-value] chacl.c:337:38: error: dereferencing pointer to incomplete type chacl.c:337:38: error: dereferencing pointer to incomplete type chacl.c:337:38: warning: value computed is not used [-Wunused-value] chacl.c:337:38: error: dereferencing pointer to incomplete type chacl.c:337:38: error: dereferencing pointer to incomplete type chacl.c:337:38: error: dereferencing pointer to incomplete type chacl.c:337:38: error: dereferencing pointer to incomplete type chacl.c:337:38: error: dereferencing pointer to incomplete type chacl.c:337:38: warning: left-hand operand of comma expression has no effect [-Wunused-value] chacl.c:337:38: error: dereferencing pointer to incomplete type chacl.c:337:38: error: dereferencing pointer to incomplete type chacl.c:337:38: error: dereferencing pointer to incomplete type chacl.c:337:38: error: dereferencing pointer to incomplete type chacl.c:337:38: error: dereferencing pointer to incomplete type chacl.c:337:38: error: dereferencing pointer to incomplete type chacl.c:337:38: error: dereferencing pointer to incomplete type chacl.c:337:38: error: dereferencing pointer to incomplete type chacl.c:337:38: error: dereferencing pointer to incomplete type chacl.c:337:38: error: dereferencing pointer to incomplete type chacl.c:337:38: error: dereferencing pointer to incomplete type chacl.c:340:41: error: dereferencing pointer to incomplete type chacl.c:346:34: error: dereferencing pointer to incomplete type gmake[5]: *** [chacl.o] Error 1 gmake[5]: Leaving directory/Volumes/openwrt_ds/trunk/build_dir/target-arm_v4_eglibc-2.17_eabi/acl-2.2.51/chacl' gmake[4]: * [chacl] Error 2 gmake[4]: Leaving directory `/Volumes/openwrt_ds/trunk/build_dir/target-arm_v4_eglibc-2.17_eabi/acl-2.2.51' make[3]: ** [default] Error 2 make[2]: [/Volumes/openwrt_ds/trunk/build_dir/target-arm_v4_eglibc-2.17_eabi/acl-2.2.51/.built] Error 2 make[2]: Leaving directory/Volumes/openwrt_ds/trunk/feeds/addpack/acl' make[1]: **\* [package/feeds/addpack/acl/compile] Error 2 make[1]: Leaving directory/Volumes/openwrt_ds/trunk' make: *\ [package/feeds/addpack/acl/compile] Error

"

My arch is a Cortina Systems (CS351x) and i cant find updated compile packages anywhere. So i have to do on my own.

And this repository have a lot of great software as parted, samba 4, nettalk 3, etc. I really like to use them.

Tnks a lot for the help, and congratulations for your great work here.