Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 78402 - usbd loader.c compile error
Summary: usbd loader.c compile error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-17 12:20 UTC by Jason Burrell
Modified: 2005-03-13 07:46 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Burrell 2005-01-17 12:20:49 UTC
Calculating dependencies ...done!
>>> emerge (1 of 3) sys-apps/usbd-0.1 to /
>>> md5 src_uri ;-) usbd-0.1.tar.gz
>>> Unpacking source...
>>> Unpacking usbd-0.1.tar.gz to /var/tmp/portage/usbd-0.1/work
>>> Source unpacked.
 * econf: updating usbd-0.1/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating usbd-0.1/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --prefix=/usr --sysconfdir=/etc/usbd
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking whether make sets ${MAKE}... (cached) yes
checking for gcc... gcc
checking whether the C compiler (gcc -O3 -march=pentium4 -mtune=pentium4 -fomit-frame-pointer -mmmx -msse -msse2 -mfpmath=387,sse -Wl,-O1,-z,now) works... yes
checking whether the C compiler (gcc -O3 -march=pentium4 -mtune=pentium4 -fomit-frame-pointer -mmmx -msse -msse2 -mfpmath=387,sse -Wl,-O1,-z,now) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for POSIXized ISC... no
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -O3 -march=pentium4 -mtune=pentium4 -fomit-frame-pointer -mmmx -msse -msse2 -mfpmath=387,sse -Wl,-O1,-z,now) works... yes
checking whether the C compiler (gcc -O3 -march=pentium4 -mtune=pentium4 -fomit-frame-pointer -mmmx -msse -msse2 -mfpmath=387,sse -Wl,-O1,-z,now) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... none needed
checking for working const... yes
checking for inline... inline
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for syslog.h... yes
checking for vsyslog... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating config.h
configuring in example1
running /bin/sh ./configure  --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --prefix=/usr --sysconfdir=/etc/usbd --cache-file=.././config.cache --srcdir=.
loading cache .././config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... (cached) /bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking whether make sets ${MAKE}... (cached) yes
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -O3 -march=pentium4 -mtune=pentium4 -fomit-frame-pointer -mmmx -msse -msse2 -mfpmath=387,sse -Wl,-O1,-z,now) works... yes
checking whether the C compiler (gcc -O3 -march=pentium4 -mtune=pentium4 -fomit-frame-pointer -mmmx -msse -msse2 -mfpmath=387,sse -Wl,-O1,-z,now) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for POSIXized ISC... no
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -O3 -march=pentium4 -mtune=pentium4 -fomit-frame-pointer -mmmx -msse -msse2 -mfpmath=387,sse -Wl,-O1,-z,now) works... yes
checking whether the C compiler (gcc -O3 -march=pentium4 -mtune=pentium4 -fomit-frame-pointer -mmmx -msse -msse2 -mfpmath=387,sse -Wl,-O1,-z,now) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking for working const... (cached) yes
checking for inline... (cached) inline
checking how to run the C preprocessor... (cached) gcc -E
checking for ANSI C header files... (cached) yes
checking for syslog.h... (cached) yes
checking for linux/usb.h... yes
checking for vsyslog... (cached) yes
updating cache .././config.cache
creating ./config.status
creating Makefile
creating config.h
cat: ./config.h.in: No such file or directory
config dir      /etc/usbd
libexec dir     ${exec_prefix}/libexec
localstate dir  /var/lib
bus usb dir     /proc/bus/usb
modprobe        /sbin/modprobe
make  all-recursive
make[1]: Entering directory `/var/tmp/portage/usbd-0.1/work/usbd-0.1'
make[2]: Entering directory `/var/tmp/portage/usbd-0.1/work/usbd-0.1'
gcc -DHAVE_CONFIG_H -I. -I. -I.     -O3 -march=pentium4 -mtune=pentium4 -fomit-frame-pointer -mmmx -msse -msse2 -mfpmath=387,sse -c usbd.c
gcc -DHAVE_CONFIG_H -I. -I. -I.     -O3 -march=pentium4 -mtune=pentium4 -fomit-frame-pointer -mmmx -msse -msse2 -mfpmath=387,sse -c devtree.c
gcc -DHAVE_CONFIG_H -I. -I. -I.     -O3 -march=pentium4 -mtune=pentium4 -fomit-frame-pointer -mmmx -msse -msse2 -mfpmath=387,sse -c config.c
gcc -DHAVE_CONFIG_H -I. -I. -I.     -O3 -march=pentium4 -mtune=pentium4 -fomit-frame-pointer -mmmx -msse -msse2 -mfpmath=387,sse -c loader.c
gcc -DHAVE_CONFIG_H -I. -I. -I.     -O3 -march=pentium4 -mtune=pentium4 -fomit-frame-pointer -mmmx -msse -msse2 -mfpmath=387,sse -c init.c
loader.c: In function `request_module':
loader.c:98: warning: assignment discards qualifiers from pointer target type
loader.c: In function `remove_module':
loader.c:112: warning: assignment discards qualifiers from pointer target type
loader.c: In function `childdeath':
loader.c:138: error: label at end of compound statement
loader.c: In function `forkuser':
loader.c:162: warning: initialization discards qualifiers from pointer target type
make[2]: *** [loader.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/usbd-0.1/work/usbd-0.1'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/usbd-0.1/work/usbd-0.1'
make: *** [all-recursive-am] Error 2

!!! ERROR: sys-apps/usbd-0.1 failed.
!!! Function src_compile, Line 19, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.



Reproducible: Always
Steps to Reproduce:
1. Attempt to emerge usbd.

Actual Results:  
See details.

Expected Results:  
Compiled.
Comment 1 Jason Burrell 2005-01-17 12:50:41 UTC
*** usbd-0.1.ebuild     Mon Jan 17 14:47:16 2005
--- usbd-0.1.ebuild     Mon Jan 17 14:46:09 2005
***************
*** 11,20 ****
  IUSE=""
  DEPEND="virtual/libc
        >=sys-apps/usbutils-0.11"

  src_compile() {
        econf --prefix=/usr --sysconfdir=/etc/usbd || die "econf failed"
!       mv Makefile Makefile.orig
        sed s/example1/''/ Makefile.orig > Makefile
        emake || die
  }
--- 11,27 ----
  IUSE=""
  DEPEND="virtual/libc
        >=sys-apps/usbutils-0.11"
+ inherit eutils
+
+ src_unpack() {
+            unpack ${P}.tar.gz
+            cd ${WORKDIR}/usbd-0.1
+            epatch ${FILESDIR}/usbd-0.1-loader.c-fix-gentoo.patch
+            }

  src_compile() {
        econf --prefix=/usr --sysconfdir=/etc/usbd || die "econf failed"
!         mv Makefile Makefile.orig
        sed s/example1/''/ Makefile.orig > Makefile
        emake || die
  }
***************
*** 27,29 ****
--- 34,37 ----
        doins example1/*
        dodoc AUTHORS COPYING ChangeLog INSTALL README NEWS
  }
+

And sys-apps/usbd/files/usbd-0.1-loader.c-fix-gentoo.patch:

*** loader.c    Mon Jan 17 14:44:09 2005
--- loader.c    Mon Jan 17 14:44:00 2005
***************
*** 134,140 ****
                        goto found;
                }
                lprintf(1, "warning: child pid %ld died, but not in child list\n", (long)pid);
!       found:
        }
  }

--- 134,142 ----
                        goto found;
                }
                lprintf(1, "warning: child pid %ld died, but not in child list\n", (long)pid);
! /* Patched by Jason Burrell <jburrell@athena.dhis.org> to fix compile-time failure. */
!          found:
!          return;
        }
  }

Comment 2 Wayne 2005-03-13 07:46:20 UTC
Are these patches going to be in an ebuild any time soon? I'm not having any luck with these patch files. Could they rather be attached as files?