e2fsprogs does not compile after version bump to 1.43.1

lede-bugs at lists.infradead.org lede-bugs at lists.infradead.org
Wed Jun 22 09:49:35 PDT 2016


Hi all,

Since commit e2d2b136b34e907e9258911537ce002b70e49133 (e2fsprogs: Bump to v1.43.1), 
e2fsprogs compilation brakes.

erros message:

make[3]: Entering directory '/Users/bluse/Desktop/Coding-Area/LEDE/package/utils/e2fsprogs'
make   -C /Users/bluse/Desktop/Coding-Area/LEDE/build_dir/target-x86_64_musl-1.1.14/e2fsprogs-1.43.1/util BUILDCC="gcc" CFLAGS="" CPPFLAGS="" LDFLAGS="" subst
make[4]: Entering directory '/Users/bluse/Desktop/Coding-Area/LEDE/build_dir/target-x86_64_musl-1.1.14/e2fsprogs-1.43.1/util'
        CC subst.c
subst.c:332:14: error: variable has incomplete type 'struct stat'
        struct stat stbuf;
                    ^
subst.c:332:9: note: forward declaration of 'struct stat'
        struct stat stbuf;
               ^
subst.c:391:8: warning: implicit declaration of function 'fstat' is invalid in C99 [-Wimplicit-function-declaration]
                        if (fstat(fd, &stbuf) == 0) {
                            ^
subst.c:437:12: warning: implicit declaration of function 'fchmod' is invalid in C99 [-Wimplicit-function-declaration]
                                (void) fchmod(ofd, 0444);
                                       ^
2 warnings and 1 error generated.
make[4]: *** [Makefile:329: subst.o] Error 1


first troubleshooting attempts:

-funcktion fstst() is defined in sys/stat.h
-if sys/stat.h is not included that means  HAVE_SYS_STAT_H is not defined
-checking the configure logfile shows this problem


relevant lines from build_dir/target-x86_64_musl-1.1.14/e2fsprogs-1.43.1//config.log

  809 | #include <argz.h>
  810 configure:9551: result: no
  811 configure:9551: checking argz.h presence
  812 configure:9551: x86_64-openwrt-linux-musl-gcc -E -I/Users/bluse/Desktop/Coding-Area/LEDE/staging_dir/target-x86_64_musl-1.1.14/usr/include/Users/bluse/Desktop/Coding-Area/LEDE/staging_dir/target-x86_64_musl-1.1.14/include -I/Users/bluse/Desktop/Coding-Area/LEDE/staging_dir/toolchain-x86_64_gcc-5.3.0_musl-1.1.14/usr/include -I/Users/bluse/Desktop/Coding-Area/LEDE/staging_dir/toolchain-x86_64_gcc-5.3.0_musl-1.1.14/include/fortify -I/Users/bluse/Desktop/Coding-Area/LEDE/staging_dir/toolchain-x86_64_gcc-5.3.0_musl-1.1.14/include  conftest.c
  813 conftest.c:50:18: fatal error: argz.h: No such file or directory
  814 compilation terminated.
  815 configure:9551: $? = 1
  816 configure: failed program was:
  817 | /* confdefs.h */
  818 | #define PACKAGE_NAME ""
  819 | #define PACKAGE_TARNAME ""
  820 | #define PACKAGE_VERSION ""
  821 | #define PACKAGE_STRING ""
  822 | #define PACKAGE_BUGREPORT ""
  823 | #define PACKAGE_URL ""
  824 | #define STDC_HEADERS 1
  825 | #define HAVE_SYS_TYPES_H 1
  826 | #define HAVE_SYS_STAT_H 1


As I am not confident with automake, I would need some help what to do next.

Greetings from Berlin
Bluse


More information about the lede-bugs mailing list