I'm trying to install qtparted, ntfsprogs is a dependency but it doesn't build. gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -D_FILE_OFFSET_BITS=64 -Wall -march=pentium2 -O2 -mmmx -pipe -fomit-frame-pointer -ffast-math -maccumulate-outgoing-args -c attrib.c -fPIC -DPIC -o .libs/attrib.lo In file included from ../include/unistr.h:27, from ../include/attrib.h:30, from bitmap.c:28: ../include/layout.h:295: warning: declaration does not declare anything ../include/layout.h:1431: warning: declaration does not declare anything ../include/layout.h:1446: warning: declaration does not declare anything ../include/layout.h:1695: warning: declaration does not declare anything ../include/layout.h:1870: warning: declaration does not declare anything ../include/layout.h:2021: warning: declaration does not declare anything ../include/layout.h:2033: warning: declaration does not declare anything In file included from ../include/unistr.h:27, from ../include/attrib.h:30, from attrib.c:30: ../include/layout.h:295: warning: declaration does not declare anything ../include/layout.h:1431: warning: declaration does not declare anything ../include/layout.h:1446: warning: declaration does not declare anything ../include/layout.h:1695: warning: declaration does not declare anything ../include/layout.h:1870: warning: declaration does not declare anything ../include/layout.h:2021: warning: declaration does not declare anything ../include/layout.h:2033: warning: declaration does not declare anything In file included from attrib.c:32: ../include/mft.h: In function `ntfs_mft_record_get_data_size': ../include/mft.h:98: error: structure has no member named `magic' make[2]: *** [attrib.lo] Error 1 make[2]: *** Waiting for unfinished jobs.... gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -D_FILE_OFFSET_BITS=64 -Wall -march=pentium2 -O2 -mmmx -pipe -fomit-frame-pointer -ffast-math -maccumulate-outgoing-args -c bitmap.c -o bitmap.o >/dev/null 2>&1 mv -f .libs/bitmap.lo bitmap.lo make[2]: Leaving directory `/var/tmp/portage/ntfsprogs-1.7.1/work/ntfsprogs-1.7.1/libntfs' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/ntfsprogs-1.7.1/work/ntfsprogs-1.7.1' make: *** [all-recursive-am] Error 2 !!! ERROR: sys-apps/ntfsprogs-1.7.1 failed. !!! Function src_compile, Line 22, Exitcode 2 !!! Make failed $ emerge info Portage 2.0.49-r1 (default-x86-1.4, gcc-3.3.1, glibc-2.3.2-r1, 2.4.21) ================================================================= System uname: 2.4.21 i686 Pentium II (Klamath) ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium2 -O2 -mmmx -pipe -fomit-frame-pointer -ffast-math -maccumulate-outgoing-args" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=pentium2 -O2 -mmmx -pipe -fomit-frame-pointer -ffast-math -maccumulate-outgoing-args" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache distcc userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 oss apm avi crypt encode foomaticdb gif gpm java jpeg libg++ mad mikmod mmx motif mpeg ncurses pdflib png quicktime slang spell truetype xml2 xmms xv zlib gdbm berkdb readline tetex X tcpd pam libwww ssl perl python esd imlib oggvorbis dvd -gnome -xfs -acpi4linux -3dnow -ipv6 threads -nls -kde -cups arts qt gtk -opengl -svga -sdl faad tiff" Reproducible: Always Steps to Reproduce: 1. emerge ntfsprogs
This is caused by naughty C coding in some of the files, which gcc-3.3.1 chooses to reject. I'm working on a fix, which I will put here and send upstream.
Created attachment 17397 [details, diff] allows compilation with gcc-3.3.1 Adds an extension (-fms-extensions) to the Makefiles and splits a multi-line string.
patch added
not in cvs, just as info for bugzilla, which doesn't send mails for attachments
patch works for me
ONLY way i could get it to work for me on ~x86 recommend commit
in cvs