Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 140723 - net-dialup/slmodem-2.9.11 fails to compile with vanilla-sources-2.6.18
Summary: net-dialup/slmodem-2.9.11 fails to compile with vanilla-sources-2.6.18
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: 2006-07-16 20:07 UTC by Francois Chenier
Modified: 2006-09-10 02:55 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 Francois Chenier 2006-07-16 20:07:03 UTC
With the recent changes in kernel sources, slmodem-2.9.11 fails to compile with new vanilla-sources-2.6.18. Errors returned are below & take note this package compile fine with kernel sources in the 2.6.17 branch.

Keep smiling;-)

*****

<snip>
 * Preparing slamr module
i686-pc-linux-gnu-gcc -I/usr/src/linux/include -o kernel-ver kernel-ver.c
make all KERNEL_VER=2.6.18-rc2!
make[1]: Entering directory `/var/tmp/portage/slmodem-2.9.11_pre20051101/work/slmodem-2.9.11-20051101/drivers'
make modules -C /usr/src/linux M=/var/tmp/portage/slmodem-2.9.11_pre20051101/work/slmodem-2.9.11-20051101/drivers
make[2]: Entering directory `/usr/src/linux-2.6.18-rc2'
  CC [M]  /var/tmp/portage/slmodem-2.9.11_pre20051101/work/slmodem-2.9.11-20051101/drivers/amrmo_init.o
/var/tmp/portage/slmodem-2.9.11_pre20051101/work/slmodem-2.9.11-20051101/drivers/amrmo_init.c:56:35: error: linux/devfs_fs_kernel.h: No such file or directory
/var/tmp/portage/slmodem-2.9.11_pre20051101/work/slmodem-2.9.11-20051101/drivers/amrmo_init.c: In function 'amrmo_pci_probe':
/var/tmp/portage/slmodem-2.9.11_pre20051101/work/slmodem-2.9.11-20051101/drivers/amrmo_init.c:644: warning: implicit declaration of function 'devfs_mk_cdev'
/var/tmp/portage/slmodem-2.9.11_pre20051101/work/slmodem-2.9.11-20051101/drivers/amrmo_init.c: In function 'amrmo_pci_remove':
/var/tmp/portage/slmodem-2.9.11_pre20051101/work/slmodem-2.9.11-20051101/drivers/amrmo_init.c:676: warning: implicit declaration of function 'devfs_remove'
make[3]: *** [/var/tmp/portage/slmodem-2.9.11_pre20051101/work/slmodem-2.9.11-20051101/drivers/amrmo_init.o] Error 1
make[2]: *** [_module_/var/tmp/portage/slmodem-2.9.11_pre20051101/work/slmodem-2.9.11-20051101/drivers] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.18-rc2'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/slmodem-2.9.11_pre20051101/work/slmodem-2.9.11-20051101/drivers'
make: *** [all] Error 2

*****

Portage 2.1.1_pre3 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.18-rc2! i686)
=================================================================
System uname: 2.6.18-rc2! i686 Intel(R) Pentium(R) 4 Mobile CPU 1.60GHz
Gentoo Base System version 1.12.1
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4m -O2 -fomit-frame-pointer -pipe -mmmx -msse -msse2 -mno-sse3 -mno-3dnow"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-march=pentium4m -O2 -fomit-frame-pointer -pipe -mmmx -msse -msse2 -mno-sse3 -mno-3dnow"
DISTDIR="/home/Linux/Src"
FEATURES="autoconfig buildpkg distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="C"
LINGUAS="en en_AU en_CA en_GB en_US"
PKGDIR="/home/Linux"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apm arts avi berkdb bitmap-fonts cli crypt cups dlloader dri eds emboss encode esd foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imlib ipv6 isdnlog jpeg kde libg++ libwww mad mikmod motif mp3 mpeg ncurses nls nptl nptlonly ogg opengl oss pam pcre pdflib perl png pppd python qt qt3 qt4 quicktime readline reflection sdl session spell spl ssl tcpd truetype truetype-fonts type1-fonts udev vorbis xml xmms xorg xv zlib elibc_glibc input_devices_joystick input_devices_keyboard input_devices_mouse kernel_linux linguas_en linguas_en_AU linguas_en_CA linguas_en_GB linguas_en_US userland_GNU video_cards_savage"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Francois Chenier 2006-07-31 06:07:48 UTC
A workaround is possible for those who are lucky and can use this driver in ALSA mode. Like the current USB flag, can you add a new flag to prevent the build of the 'slamr' kernel module ?

FYI: 

ALSA has the built-in modem drivers included in 'alsa-driver' >= 1.0.2 and in Linux kernel >= 2.6.5. Currently there is 'intel8x0m' (snd-intel8x0m)
modem driver, which supports ICH based AC97 modems (MC97).

Recent 'alsa-driver' (>=1.0.8) has also support for NVidia NForce, SiS 630
(snd-intel8x0m), VIA686 (snd-via82xx-modem) and ATI IXP (snd-atiixp-modem)
based modems.

This temporary solution is not perfect but should work for some lucky bastard like me.
Comment 2 Alin Năstac (RETIRED) gentoo-dev 2006-09-09 08:30:22 UTC
Both modules (slamr and slusb) have been fixed in slmodem-2.9.11_pre20051101-r1.
Now you can build them even if you use 2.6.18 kernel.
Comment 3 Francois Chenier 2006-09-09 15:20:07 UTC
(In reply to comment #2)
> Now you can build them even if you use 2.6.18 kernel.

Still failing but easy to fix if you include <utsrelease.h> in /usr/src/linux/include/linux/version.h

UTS_RELEASE has moved from <version.h> to new header file <utsrelease.h>
Comment 4 Alin Năstac (RETIRED) gentoo-dev 2006-09-10 01:25:44 UTC
utsrelease.h path is /usr/src/linux/include/linux/utsrelease.h ?
Comment 5 Francois Chenier 2006-09-10 02:39:11 UTC
(In reply to comment #4)
> utsrelease.h path is /usr/src/linux/include/linux/utsrelease.h ?
> 
You are right, same directory as version.h in vanilla sources. This file does not exist with older kernels (<2.6.18).

belgix@ ~ $ dir /usr/src/linux/include/linux/utsrelease.h
-rw-r--r-- 1 root root 34 Sep  6 10:24 /usr/src/linux/include/linux/utsrelease.h
Comment 6 Alin Năstac (RETIRED) gentoo-dev 2006-09-10 02:55:57 UTC
fixed in cvs, without revision bump.