Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 45537 - sys-apps/mtx-1.2.18 fails to compile with gentoo-dev-sources 2.6.4-gentoo-r1
Summary: sys-apps/mtx-1.2.18 fails to compile with gentoo-dev-sources 2.6.4-gentoo-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 All
: Normal normal (vote)
Assignee: Tim Yamin (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-23 13:04 UTC by Adrian Almenar
Modified: 2004-04-02 13:07 UTC (History)
1 user (show)

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


Attachments
mtx-include-path.patch (mtx-include-path.patch,324 bytes, patch)
2004-03-29 12:04 UTC, Nicolas Boichat
Details | Diff
mtx-1.2.17-r1.ebuild (mtx-1.2.17-r1.ebuild,897 bytes, application/octet-stream)
2004-03-29 12:07 UTC, Nicolas Boichat
Details
mtx-1.2.18-r1.ebuild (mtx-1.2.18-r1.ebuild,894 bytes, application/octet-stream)
2004-03-29 12:08 UTC, Nicolas Boichat
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Almenar 2004-03-23 13:04:07 UTC
checking whether byte ordering is bigendian... no
checking return type of signal handlers... void
checking for vprintf... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating config.h
config.h is unchanged
gcc -O3 -march=pentium4 -fomit-frame-pointer -pipe -Wall -DVERSION="\"1.2.18rel\"" -I/usr/src/linux/include -DLONG_PRINT_REQUEST_SENSE=1  -c -o mtx.o mtx.c
gcc -O3 -march=pentium4 -fomit-frame-pointer -pipe -Wall -DVERSION="\"1.2.18rel\"" -I/usr/src/linux/include -DLONG_PRINT_REQUEST_SENSE=1  -c -o mtxl.o mtxl.c
In file included from mtx.h:65,
                 from mtxl.c:26:
/usr/src/linux/include/scsi/scsi.h:210: error: syntax error before "u8"
/usr/src/linux/include/scsi/scsi.h:210: warning: no semicolon at end of struct or union
/usr/src/linux/include/scsi/scsi.h:211: warning: type defaults to `int' in declaration of `medium'
/usr/src/linux/include/scsi/scsi.h:211: warning: data definition has no type or storage class
/usr/src/linux/include/scsi/scsi.h:212: error: syntax error before "_r2"
/usr/src/linux/include/scsi/scsi.h:212: warning: type defaults to `int' in declaration of `_r2'
/usr/src/linux/include/scsi/scsi.h:212: warning: data definition has no type or storage class
/usr/src/linux/include/scsi/scsi.h:213: error: syntax error before "block_desc_length"
/usr/src/linux/include/scsi/scsi.h:213: warning: type defaults to `int' in declaration of `block_desc_length'
/usr/src/linux/include/scsi/scsi.h:213: warning: data definition has no type or storage class
/usr/src/linux/include/scsi/scsi.h:214: error: syntax error before "density"
/usr/src/linux/include/scsi/scsi.h:214: warning: type defaults to `int' in declaration of `density'
/usr/src/linux/include/scsi/scsi.h:214: warning: data definition has no type or storage class
/usr/src/linux/include/scsi/scsi.h:215: error: syntax error before "number_blocks_hi"
/usr/src/linux/include/scsi/scsi.h:215: warning: type defaults to `int' in declaration of `number_blocks_hi'
/usr/src/linux/include/scsi/scsi.h:215: warning: data definition has no type or storage class
/usr/src/linux/include/scsi/scsi.h:216: error: syntax error before "number_blocks_med"
/usr/src/linux/include/scsi/scsi.h:216: warning: type defaults to `int' in declaration of `number_blocks_med'
/usr/src/linux/include/scsi/scsi.h:216: warning: data definition has no type or storage class
/usr/src/linux/include/scsi/scsi.h:217: error: syntax error before "number_blocks_lo"
/usr/src/linux/include/scsi/scsi.h:217: warning: type defaults to `int' in declaration of `number_blocks_lo'
/usr/src/linux/include/scsi/scsi.h:217: warning: data definition has no type or storage class
/usr/src/linux/include/scsi/scsi.h:218: error: syntax error before "_r3"
/usr/src/linux/include/scsi/scsi.h:218: warning: type defaults to `int' in declaration of `_r3'
/usr/src/linux/include/scsi/scsi.h:218: warning: data definition has no type or storage class
/usr/src/linux/include/scsi/scsi.h:219: error: syntax error before "block_length_hi"
/usr/src/linux/include/scsi/scsi.h:219: warning: type defaults to `int' in declaration of `block_length_hi'
/usr/src/linux/include/scsi/scsi.h:219: warning: data definition has no type or storage class
/usr/src/linux/include/scsi/scsi.h:220: error: syntax error before "block_length_med"
/usr/src/linux/include/scsi/scsi.h:220: warning: type defaults to `int' in declaration of `block_length_med'
/usr/src/linux/include/scsi/scsi.h:220: warning: data definition has no type or storage class
/usr/src/linux/include/scsi/scsi.h:221: error: syntax error before "block_length_lo"
/usr/src/linux/include/scsi/scsi.h:221: warning: type defaults to `int' in declaration of `block_length_lo'
/usr/src/linux/include/scsi/scsi.h:221: warning: data definition has no type or storage class
/usr/src/linux/include/scsi/scsi.h:228: error: syntax error before "u8"
/usr/src/linux/include/scsi/scsi.h:228: warning: no semicolon at end of struct or union
In file included from mtx.h:65,
                 from mtx.c:39:
/usr/src/linux/include/scsi/scsi.h:210: error: syntax error before "u8"
/usr/src/linux/include/scsi/scsi.h:210: warning: no semicolon at end of struct or union
/usr/src/linux/include/scsi/scsi.h:211: warning: type defaults to `int' in declaration of `medium'
/usr/src/linux/include/scsi/scsi.h:211: warning: data definition has no type or storage class
/usr/src/linux/include/scsi/scsi.h:212: error: syntax error before "_r2"
/usr/src/linux/include/scsi/scsi.h:212: warning: type defaults to `int' in declaration of `_r2'
/usr/src/linux/include/scsi/scsi.h:212: warning: data definition has no type or storage class
/usr/src/linux/include/scsi/scsi.h:213: error: syntax error before "block_desc_length"
/usr/src/linux/include/scsi/scsi.h:213: warning: type defaults to `int' in declaration of `block_desc_length'
/usr/src/linux/include/scsi/scsi.h:213: warning: data definition has no type or storage class
/usr/src/linux/include/scsi/scsi.h:214: error: syntax error before "density"
/usr/src/linux/include/scsi/scsi.h:214: warning: type defaults to `int' in declaration of `density'
/usr/src/linux/include/scsi/scsi.h:214: warning: data definition has no type or storage class
/usr/src/linux/include/scsi/scsi.h:215: error: syntax error before "number_blocks_hi"
/usr/src/linux/include/scsi/scsi.h:215: warning: type defaults to `int' in declaration of `number_blocks_hi'
/usr/src/linux/include/scsi/scsi.h:215: warning: data definition has no type or storage class
/usr/src/linux/include/scsi/scsi.h:216: error: syntax error before "number_blocks_med"
/usr/src/linux/include/scsi/scsi.h:216: warning: type defaults to `int' in declaration of `number_blocks_med'
/usr/src/linux/include/scsi/scsi.h:216: warning: data definition has no type or storage class
/usr/src/linux/include/scsi/scsi.h:217: error: syntax error before "number_blocks_lo"
/usr/src/linux/include/scsi/scsi.h:217: warning: type defaults to `int' in declaration of `number_blocks_lo'
/usr/src/linux/include/scsi/scsi.h:217: warning: data definition has no type or storage class
/usr/src/linux/include/scsi/scsi.h:218: error: syntax error before "_r3"
/usr/src/linux/include/scsi/scsi.h:218: warning: type defaults to `int' in declaration of `_r3'
/usr/src/linux/include/scsi/scsi.h:218: warning: data definition has no type or storage class
/usr/src/linux/include/scsi/scsi.h:219: error: syntax error before "block_length_hi"
/usr/src/linux/include/scsi/scsi.h:219: warning: type defaults to `int' in declaration of `block_length_hi'
/usr/src/linux/include/scsi/scsi.h:219: warning: data definition has no type or storage class
/usr/src/linux/include/scsi/scsi.h:220: error: syntax error before "block_length_med"
/usr/src/linux/include/scsi/scsi.h:220: warning: type defaults to `int' in declaration of `block_length_med'
/usr/src/linux/include/scsi/scsi.h:220: warning: data definition has no type or storage class
/usr/src/linux/include/scsi/scsi.h:221: error: syntax error before "block_length_lo"
/usr/src/linux/include/scsi/scsi.h:221: warning: type defaults to `int' in declaration of `block_length_lo'
/usr/src/linux/include/scsi/scsi.h:221: warning: data definition has no type or storage class
/usr/src/linux/include/scsi/scsi.h:228: error: syntax error before "u8"
/usr/src/linux/include/scsi/scsi.h:228: warning: no semicolon at end of struct or union
make: *** [mtx.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [mtxl.o] Error 1

!!! ERROR: sys-apps/mtx-1.2.18 failed.
!!! Function src_compile, Line 23, Exitcode 2
!!! Make failed


ordkur root # emerge info
Portage 2.0.50-r2 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.6.4-gentoo-r1)
=================================================================
System uname: 2.6.4-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.4.3.13p1
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache"
GENTOO_MIRRORS="http://gentoo.conectium.com http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://gentoo.conectium.com/gentoo-portage"
USE="X aalib acpi alsa apm arts artswrappersuid avi berkdb cdr crypt cups dga directfb doc encode fam fbcon foomaticdb gd gdbm gdm ggi ggz gif gphoto2 gpm gtk gtk2 imap imlib innodb java jikes jpeg kde lcm libg++ libgda libwww mad mbox mikmod mmx motif mozilla moznocompose moznoirc mpeg ncurses nls oggvorbis opengl openssh oss pam pdflib perl png pnp postgres python qt quicktime radeon readline samba sasl sdl sis skey slang snmp spell sse ssl svga tcltk tcpd tetex tiff truetype trusted x86 xface xine xml xml2 xmms xv zlib video_cards_i830"
Comment 1 torgo 2004-03-25 11:43:39 UTC
same issue with development-sources-2.6.4 here.  the package appears to be compiling against /usr/src/linux instead of /usr/include/linux

it is worth noting that i removed the /usr/src/linux symlink and the build completed successfully.
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2004-03-26 11:04:19 UTC
removing base-system
Comment 3 Nicolas Boichat 2004-03-29 12:04:24 UTC
Created attachment 28304 [details, diff]
mtx-include-path.patch

Change :
 - Removed -I/usr/src/linux/include from CPPFLAGS in Makefile.in

Compiles fine with kernel 2.6.4-gentoo-r1, but I don't have the hardware to
test it (I compiled it because amanda depends on it), so please test it.
Comment 4 Nicolas Boichat 2004-03-29 12:07:45 UTC
Created attachment 28306 [details]
mtx-1.2.17-r1.ebuild

New ebuild for mtx-1.2.17.

Changes :
 - Uses mtx-include-patch (see above)
 - Masked KEYWORDS with ~
Comment 5 Nicolas Boichat 2004-03-29 12:08:54 UTC
Created attachment 28307 [details]
mtx-1.2.18-r1.ebuild

New ebuild for mtx-1.2.18.

Changes :
 - Uses mtx-include-path.patch
Comment 6 Tim Yamin (RETIRED) gentoo-dev 2004-04-02 13:07:47 UTC
Fixed in CVS; the change should reach the Portage mirrors in an hour. Thanks!