e2fsprogs fails to build on Mac OS X 10.6.8

Help
2013-05-18
2013-05-20
  • John Musbach
    John Musbach
    2013-05-18

    version: 1.42.7
    configure flags: --enable-fsck --enable-jbd-debug --enable-checker --enable-profile --enable-htree --enable-bsd-shlibs --enable-verbose-makecmds

    make failure output:
    cd ./util ; make subst
    gcc -c -g -O2 subst.c -o subst.o
    gcc -o subst subst.o
    make[1]: util/subst.conf' is up to date. make[1]:lib/config.h' is up to date.
    ./util/subst -f ./util/subst.conf ./lib/dirpaths.h.in lib/dirpaths.h
    cd .; CONFIG_FILES=./lib/ext2fs/ext2_types.h ./config.status
    config.status: creating ./lib/ext2fs/ext2_types.h
    config.status: creating lib/config.h
    config.status: lib/config.h is unchanged
    config.status: executing default-1 commands
    cd .; CONFIG_FILES=./lib/blkid/blkid_types.h ./config.status
    config.status: creating ./lib/blkid/blkid_types.h
    config.status: creating lib/config.h
    config.status: lib/config.h is unchanged
    config.status: executing default-1 commands
    cd .; CONFIG_FILES=./lib/uuid/uuid_types.h ./config.status
    config.status: creating ./lib/uuid/uuid_types.h
    config.status: creating lib/config.h
    config.status: lib/config.h is unchanged
    config.status: executing default-1 commands
    ../../util/subst -f ../../util/subst.conf ./compile_et.sh.in compile_et
    /bin/chmod +x compile_et
    ../../util/subst -f ../../util/subst.conf ./ext2_err.et.in ext2_err.et
    ../et/compile_et --build-tree ext2_err.et
    make libs
    make[2]: util/subst.conf' is up to date. make[2]:lib/config.h' is up to date.
    make[2]: lib/dirpaths.h' is up to date. make[2]:lib/ext2fs/ext2_types.h' is up to date.
    make[2]: lib/blkid/blkid_types.h' is up to date. make[2]:lib/uuid/uuid_types.h' is up to date.
    make[2]: compile_et' is up to date. make[2]:ext2_err.h' is up to date.
    making all in lib/et
    make -s real-subdirs
    touch subdirs
    gcc -I. -I../../lib -I../../lib -I../../intl -I../../intl -g -O2 -c error_message.c -o error_message.o
    gcc -I. -I../../lib -I../../lib -I../../intl -I../../intl -g -O2 -g -pg -o profiled/error_message.o -c error_message.c
    gcc -I. -I../../lib -I../../lib -I../../intl -I../../intl -g -O2 -checker -g -o checker/error_message.o -c error_message.c
    gcc -I. -I../../lib -I../../lib -I../../intl -I../../intl -g -O2 -fPIC -o pic/error_message.o -c error_message.c
    gcc -I. -I../../lib -I../../lib -I../../intl -I../../intl -g -O2 -c et_name.c -o et_name.o
    gcc -I. -I../../lib -I../../lib -I../../intl -I../../intl -g -O2 -g -pg -o profiled/et_name.o -c et_name.c
    gcc -I. -I../../lib -I../../lib -I../../intl -I../../intl -g -O2 -checker -g -o checker/et_name.o -c et_name.c
    gcc -I. -I../../lib -I../../lib -I../../intl -I../../intl -g -O2 -fPIC -o pic/et_name.o -c et_name.c
    gcc -I. -I../../lib -I../../lib -I../../intl -I../../intl -g -O2 -c init_et.c -o init_et.o
    gcc -I. -I../../lib -I../../lib -I../../intl -I../../intl -g -O2 -g -pg -o profiled/init_et.o -c init_et.c
    gcc -I. -I../../lib -I../../lib -I../../intl -I../../intl -g -O2 -checker -g -o checker/init_et.o -c init_et.c
    gcc -I. -I../../lib -I../../lib -I../../intl -I../../intl -g -O2 -fPIC -o pic/init_et.o -c init_et.c
    gcc -I. -I../../lib -I../../lib -I../../intl -I../../intl -g -O2 -c com_err.c -o com_err.o
    gcc -I. -I../../lib -I../../lib -I../../intl -I../../intl -g -O2 -g -pg -o profiled/com_err.o -c com_err.c
    gcc -I. -I../../lib -I../../lib -I../../intl -I../../intl -g -O2 -checker -g -o checker/com_err.o -c com_err.c
    gcc -I. -I../../lib -I../../lib -I../../intl -I../../intl -g -O2 -fPIC -o pic/com_err.o -c com_err.c
    gcc -I. -I../../lib -I../../lib -I../../intl -I../../intl -g -O2 -c com_right.c -o com_right.o
    gcc -I. -I../../lib -I../../lib -I../../intl -I../../intl -g -O2 -g -pg -o profiled/com_right.o -c com_right.c
    gcc -I. -I../../lib -I../../lib -I../../intl -I../../intl -g -O2 -checker -g -o checker/com_right.o -c com_right.c
    gcc -I. -I../../lib -I../../lib -I../../intl -I../../intl -g -O2 -fPIC -o pic/com_right.o -c com_right.c
    (if test -r libcom_err.a; then /bin/rm -f libcom_err.a.bak && /bin/mv libcom_err.a libcom_err.a.bak; fi)
    ar rc libcom_err.a error_message.o et_name.o init_et.o com_err.o com_right.o
    /bin/rm -f ../libcom_err.a
    (cd ..; /bin/ln \ echo lib/et | sed -e 's;lib/;;'/libcom_err.a libcom_err.a)
    (cd pic; gcc -dynamiclib -compatibility_version 1.0 -current_version 1.1 \ -flat_namespace -undefined warning -o libcom_err.1.1.dylib error_message.o et_name.o init_et.o com_err.o com_right.o)
    /bin/mv pic/libcom_err.1.1.dylib .
    /bin/rm -f ../libcom_err.1.1.dylib
    (cd ..; /bin/ln \ echo lib/et | sed -e 's;lib/;;'/libcom_err.1.1.dylib libcom_err.1.1.dylib)
    (cd ..; /bin/ln libcom_err.1.1.dylib libcom_err.dylib)
    (if test -r libcom_err_p.a; then /bin/rm -f libcom_err_p.a.bak && /bin/mv libcom_err_p.a libcom_err_p.a.bak; fi)
    (cd profiled; ar r ../libcom_err_p.a error_message.o et_name.o init_et.o com_err.o com_right.o)
    ar: creating archive ../libcom_err_p.a
    ranlib libcom_err_p.a
    /bin/rm -f ../libcom_err_p.a
    (cd ..; /bin/ln \ echo lib/et | sed -e 's;lib/;;'/libcom_err_p.a libcom_err_p.a)
    (test -r libcom_err_chk.a && /bin/rm -f libcom_err_chk.a.bak && /bin/mv libcom_err_chk.a libcom_err_chk.a.bak)
    make[2]: [libcom_err_chk.a] Error 1
    make[1]:
    [all-libs-recursive] Error 1
    make: *** [all] Error 2

    Was going to submit as a bug report but I don't seem to have access to do so.

     
  • Theodore Ts'o
    Theodore Ts'o
    2013-05-20

    Why do you have --enable-checker enabled? It's deprecated by gcc and I'm surprised MacOS's gcc isn't blowing out earlier?

    I'd just suggest removing --enable-checker from the configure options which you are using.