Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27519 - ntfsprogs doesn't build (gcc 3.3.1)
Summary: ntfsprogs doesn't build (gcc 3.3.1)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High critical
Assignee: Martin Holzer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-29 03:00 UTC by Norberto Bensa
Modified: 2003-09-29 15:29 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
allows compilation with gcc-3.3.1 (compile-ok-with-gcc-3.3.1.patch,1.94 KB, patch)
2003-09-09 23:19 UTC, James Harlow (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Norberto Bensa 2003-08-29 03:00:18 UTC
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
Comment 1 James Harlow (RETIRED) gentoo-dev 2003-09-09 04:21:44 UTC
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.
Comment 2 James Harlow (RETIRED) gentoo-dev 2003-09-09 23:19:35 UTC
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.
Comment 3 Martin Holzer (RETIRED) gentoo-dev 2003-09-16 12:06:09 UTC
patch added
Comment 4 Martin Holzer (RETIRED) gentoo-dev 2003-09-16 12:06:32 UTC
not in cvs, just as info for bugzilla, which doesn't send mails for attachments
Comment 5 Norberto Bensa 2003-09-16 20:15:20 UTC
patch works for me 
Comment 6 Warp Zero (RETIRED) gentoo-dev 2003-09-17 21:00:18 UTC
ONLY way i could get it to work for me on ~x86 recommend commit
Comment 7 Martin Holzer (RETIRED) gentoo-dev 2003-09-29 15:29:58 UTC
in cvs