Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 182651
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Dialup Developers <net-dialup@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Natanael Copa <natanael.copa@gmail.com>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 182651 depends on: Show dependency tree
Bug 182651 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-06-20 09:58 0000
slmodem (both stable and unstable) fails to compile when KBUILD_OUTPUT variable
is used

...
  CC     
/var/tmp/portage/net-dialup/slmodem-2.9.11_pre20070505/work/ungrab-winmodem-20070505/ungrab-winmodem.mod.o
  LD [M] 
/var/tmp/portage/net-dialup/slmodem-2.9.11_pre20070505/work/ungrab-winmodem-20070505/ungrab-winmodem.ko
make[1]: Leaving directory `/usr/src/linux-2.6.20-hardened-r5'
 * Preparing slamr module
i386-gentoo-linux-uclibc-gcc -I/usr/src/linux/include -o kernel-ver
kernel-ver.c

kernel-ver.c:9:30: linux/utsrelease.h: No such file or directory
kernel-ver.c: In function `main':
kernel-ver.c:14: error: `UTS_RELEASE' undeclared (first use in this function)
kernel-ver.c:14: error: (Each undeclared identifier is reported only once
kernel-ver.c:14: error: for each function it appears in.)
make: *** [kernel-ver] Error 1

!!! ERROR: net-dialup/slmodem-2.9.11_pre20070505 failed.


In drivers/Makefile it is wrongly assumed that there are no KBUILD_OUTPUT:

kernel-ver::
       $(CC) -I$(KERNEL_DIR)/include -o $@ $@.c


$(KBUILD_OUTPUT)/include should be used instead of $(KERNEL_DIR)/include when
KBUILD_OUTPUT is set.

------- Comment #1 From Stefan Schweizer 2007-07-07 12:49:26 0000 -------
thank you, I fixed it in the ebuild by using KV_OUT_DIR instead of KV_DIR

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug