Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 182651 - net-dialup/slmodem makefile assumes no KBUILD_OUTPUT variable
Summary: net-dialup/slmodem makefile assumes no KBUILD_OUTPUT variable
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Dialup Developers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-20 09:58 UTC by Natanael Copa
Modified: 2007-07-07 12:49 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 Natanael Copa 2007-06-20 09:58:07 UTC
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 Stefan Schweizer (RETIRED) gentoo-dev 2007-07-07 12:49:26 UTC
thank you, I fixed it in the ebuild by using KV_OUT_DIR instead of KV_DIR