<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>155887</bug_id>
          
          <creation_ts>2006-11-21 12:55 0000</creation_ts>
          <short_desc>app-accessibility/brltty-3.7.2 fails to build w/linux-headers-2.6.18</short_desc>
          <delta_ts>2007-09-02 15:02:30 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>2006.1</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>159304</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>portage@bigmichi1.dyndns.org</reporter>
          <assigned_to>accessibility@gentoo.org</assigned_to>
          <cc>bugs@dev.gentooexperimental.org</cc>
    
    <cc>pacho@condmat1.ciencias.uniovi.es</cc>
    
    <cc>vapier@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>portage@bigmichi1.dyndns.org</who>
            <bug_when>2006-11-21 12:55:54 0000</bug_when>
            <thetext>i686-pc-linux-gnu-gcc -Wall -O2 -march=pentium3 -pipe -fomit-frame-pointer -I. -I.. -I. -I.. -D_POSIX_C_SOURCE=2 -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -DHAVE_CONFIG_H -c ./usb_linux.c
./usb_linux.c:33:28: error: linux/compiler.h: No such file or directory
make[1]: *** [usb_linux.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-accessibility/brltty-3.7.2/work/brltty-3.7.2/Programs&apos;
make: *** [all] Error 2

!!! ERROR: app-accessibility/brltty-3.7.2 failed.
Call stack:
  ebuild.sh, line 1568:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  brltty-3.7.2.ebuild, line 35:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.


remove the include of compiler.h now i got this:

make[3]: Entering directory `/var/tmp/portage/app-accessibility/brltty-3.7.2/work/brltty-3.7.2/Programs&apos;
i686-pc-linux-gnu-gcc -Wall -O2 -march=pentium3 -pipe -fomit-frame-pointer -I. -I.. -I. -I.. -D_POSIX_C_SOURCE=2 -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -DHAVE_CONFIG_H -fPIC -c ./api_client.c
./api_client.c: In function &apos;brlapi_waitForPacket&apos;:
./api_client.c:167: warning: dereferencing type-punned pointer will break strict-aliasing rules
./api_client.c: In function &apos;getControllingTty&apos;:
./api_client.c:669: error: &apos;MAX_NR_CONSOLES&apos; undeclared (first use in this function)
./api_client.c:669: error: (Each undeclared identifier is reported only once
./api_client.c:669: error: for each function it appears in.)
make[3]: *** [api_client.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/app-accessibility/brltty-3.7.2/work/brltty-3.7.2/Programs&apos;
make[2]: *** [api] Error 2
make[2]: Leaving directory `/var/tmp/portage/app-accessibility/brltty-3.7.2/work/brltty-3.7.2/BrailleDrivers/BrlAPI&apos;
make[1]: *** [braille-drivers] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-accessibility/brltty-3.7.2/work/brltty-3.7.2/Programs&apos;
make: *** [all] Error 2

!!! ERROR: app-accessibility/brltty-3.7.2 failed.
Call stack:
  ebuild.sh, line 1568:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  brltty-3.7.2.ebuild, line 35:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.


i patched the source with a debian diff ( http://ftp.debian.org/debian/pool/main/b/brltty/brltty_3.7.2-4.diff.gz ) and also removed the compiler.h include now it builds up fine, perhaps somebody can have a look.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>portage@bigmichi1.dyndns.org</who>
            <bug_when>2006-11-21 12:56:27 0000</bug_when>
            <thetext>Portage 2.1.2_rc2-r1 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.18-gentoo-2006.0 i686)
=================================================================
System uname: 2.6.18-gentoo-2006.0 i686 Pentium III (Coppermine)
Gentoo Base System version 1.12.6
Last Sync: Tue, 21 Nov 2006 17:30:01 +0000
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.18
ACCEPT_KEYWORDS=&quot;x86 ~x86&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-O2 -march=pentium3 -pipe -fomit-frame-pointer&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /opt/openjms/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c&quot;
CXXFLAGS=&quot;-O2 -march=pentium3 -pipe -fomit-frame-pointer&quot;
DISTDIR=&quot;/usr/local/portage/distfiles&quot;
EMERGE_DEFAULT_OPTS=&quot;--with-bdeps=y&quot;
FEATURES=&quot;autoconfig collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict userpriv&quot;
GENTOO_MIRRORS=&quot;http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo&quot;
LANG=&quot;C&quot;
LC_ALL=&quot;C&quot;
LDFLAGS=&quot;-Wl,-O1 -Wl,--sort-common&quot;
LINGUAS=&quot;de en&quot;
MAKEOPTS=&quot;-j3&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;x86 7zip X Xaw3d a52 aac aalib accessibility acl acpi addbookmarks aiglx akode alias alsa amr ao aoss apache2 apm arts artswrappersuid artworkextra asterisk async audiofile authfile autoipd automount autoreplace avahi avalon-framework avalon-logkit bcmath bcp beagle berkdb big-tables bitmap-fonts bjam bluetooth boo bookmarks branding brltty bzip2 cairo calendar caps cdb cddb cdr cgi chm cjk clamav cli cluster connectionstatus contactnotes cpudetection cracklib crypt css ctype cups curl curlwrappers cvs dbus dcraw depth32 dga directfb diskio djbfft djvu dlloader dmi dmx doc drac dri dts dv dvd dvdr dvdread dvi ecc eds elf elibc_glibc emacs emboss encode esd evo examples exif expat extraengine extrafilters faad fam fame fbcon ffmpeg fftw filepro firebird firefox flac flatfile fontconfig fortran fpx freetds freetts ft ftp gadu galago gcj gd gdbm ggi gif glep glib glibc-omitfp glitz gmp gnokii gnome gnutls gphoto2 gpm graphviz groupwise gs gstreamer gtk gtkhtml guile hal hash hesiod highlight history howl-compat hpn ical iconv idea idled idn ieee1394 ifsession imagemagick imap imlib immqt inifile input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 irc irda isdnlog ithreads jack jack-tmpfs java javamail javascript jbig jce jms jmx joystick jpeg jpeg2k junit justify jython kcal kde kdeenablefinal kdehiddenvisibility kdrive kerberos kernel_linux keyring kig-scripting krb4 latex lcms ldap leim libcaca libg++ libnotify linguas_de linguas_en lirc lirc_devices_serial lm_sensors log4j logrotate lua lzo lzw mad max-idx-128 mbrola mdb memlimit mfd-rewrites mhash mikmod mime ming mjpeg mmap mmx mng mono motif mozbranding mozcalendar mozdevelop mp3 mp3rtp mp4 mpeg mpm-prefork mssql mudflap musepack musicbrainz mysql mysqli nas ncurses neXt netjack netmeeting netpbm network new-login nfs nis nls nntp no-old-linux nowlistening nptl nptlonly nsplugin numeric oav objc objc++ objc-gc ocaml odbc ogg ole openct openexr opengl opensslcrypt oss overlays pam pam_chroot pam_console pam_timestamp pch pcntl pcre pcsc-lite pda pdf pdo pear perl pg-intdatetime php physfs pic pike png portaudio posix postgres povray ppds pppd pwdb pyste python qt3 qt4 quicktime quotas rdesktop readline reflection rewrite rhino rle rpm rrdcgi ruby samba sametime sample sasl scanner script sdl sensord serial servletapi session shaper sharedmem simplexml sitemisc skey slp smartcard sms smux sndfile snmp soap sockets socks5 softquota speex spell spl sql sqlite sqlite3 srp sse ssl statistics subversion svg svga swat symlink sysfs syslog sysvipc t1lib tcl tcltk tcpd test tetex texteffect theora threads threadsafe tidy tiff timidity tk tokenizer toolbar tools translator transmitter truetype truetype-fonts type1-fonts ucs2 udev unicode unzip usb userland_GNU utempter vcd video_cards_r128 video_cards_vesa vorbis vorbis-psy vroot wddx webpresence wifi win32codecs winbind winpopup wmf wxwindows x264 xbase xcomposite xforms xinerama xinetd xml xml2 xmldoclet xmlreader xmlrpc xmlwriter xorg xpm xprint xscreensaver xsl xv xvid yahoo yaz yv12 zeroconf zip zlib&quot;
Unset:  CTARGET, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2006-11-26 05:20:16 0000</bug_when>
            <thetext>brltty is broken, not linux-headers</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>portage@bigmichi1.dyndns.org</who>
            <bug_when>2007-02-13 21:14:12 0000</bug_when>
            <thetext>any news about this bug?
what about using the patch debian use? or is this against anything?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pacho@condmat1.ciencias.uniovi.es</who>
            <bug_when>2007-05-11 15:28:59 0000</bug_when>
            <thetext>Created an attachment (id=118882)
brltty-3.7.2-linux-compiler-h.patch

Patch applied by Fedora</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>williamh@gentoo.org</who>
            <bug_when>2007-06-01 06:57:12 0000</bug_when>
            <thetext>I have applied the patch from Fedora as submitted in the previous comment.  Please re-emerge brltty and report whether or not this works.

Thanks much.

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>josejx@gentoo.org</who>
            <bug_when>2007-07-13 02:57:01 0000</bug_when>
            <thetext>Created an attachment (id=124732)
Fixes the compile issue

This patch fixes the compile issue.  Once this is applied, it compiles fine on ppc.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>williamh@gentoo.org</who>
            <bug_when>2007-08-06 19:53:07 0000</bug_when>
            <thetext>Is this still an issue withversion 3.8?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>williamh@gentoo.org</who>
            <bug_when>2007-09-02 15:02:30 0000</bug_when>
            <thetext>I am closing this due to no response.  Please re-open if this is still an issue.  Thanks much.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>118882</attachid>
            <date>2007-05-11 15:28 0000</date>
            <desc>brltty-3.7.2-linux-compiler-h.patch</desc>
            <filename>brltty-3.7.2-linux-compiler-h.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGJybHR0eS0zLjcuMi9Qcm9ncmFtcy91c2JfbGludXguYy5saW51eC1jb21waWxlci1oCTIw
MDYtMDctMTIgMTM6Mjc6NTcuMDAwMDAwMDAwICswMjAwCisrKyBicmx0dHktMy43LjIvUHJvZ3Jh
bXMvdXNiX2xpbnV4LmMJMjAwNi0wNy0xMiAxMzoyNzoyOC4wMDAwMDAwMDAgKzAyMDAKQEAgLTMw
LDcgKzMwLDcgQEAKICNpbmNsdWRlIDxzeXMvc3RhdC5oPgogI2luY2x1ZGUgPHN5cy92ZnMuaD4K
ICNpbmNsdWRlIDxzeXMvaW9jdGwuaD4KLSNpbmNsdWRlIDxsaW51eC9jb21waWxlci5oPgorLy8g
I2luY2x1ZGUgPGxpbnV4L2NvbXBpbGVyLmg+CiAjaW5jbHVkZSA8bGludXgvdXNiZGV2aWNlX2Zz
Lmg+CiAKICNpZm5kZWYgVVNCREVWRlNfRElTQ09OTkVDVAo=
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>124732</attachid>
            <date>2007-07-13 02:57 0000</date>
            <desc>Fixes the compile issue</desc>
            <filename>brltty-3.7.2-MAX_NR_CONSOLES.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIFByb2dyYW1zL2FwaV9jbGllbnQuYy5iYWsJMjAwNy0wNy0xMiAyMjozNjoyOC4wMDAwMDAw
MDAgLTA0MDAKKysrIFByb2dyYW1zL2FwaV9jbGllbnQuYwkyMDA3LTA3LTEyIDIyOjM1OjQ2LjAw
MDAwMDAwMCAtMDQwMApAQCAtNzUsNiArNzUsNyBAQAogI2lmZGVmIGxpbnV4CiAjaW5jbHVkZSA8
bGludXgvbWFqb3IuaD4KICNpbmNsdWRlIDxsaW51eC90dHkuaD4KKyNpbmNsdWRlIDxsaW51eC92
dC5oPgogI2RlZmluZSBNQVhJTVVNX1ZJUlRVQUxfQ09OU09MRSBNQVhfTlJfQ09OU09MRVMKICNl
bmRpZiAvKiBsaW51eCAqLwogCg==
</data>        

          </attachment>
    </bug>

</bugzilla>