Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 254003 - net-dialup/hsfmodem-7.68.00.14 fails to build with 2.6.27-gentoo-r7
Summary: net-dialup/hsfmodem-7.68.00.14 fails to build with 2.6.27-gentoo-r7
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Gentoo Dialup Developers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-06 19:18 UTC by Andrey Vihrov
Modified: 2009-01-13 21:37 UTC (History)
1 user (show)

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 Andrey Vihrov 2009-01-06 19:18:27 UTC
The build process of both .14 and .9 fails with the 2.6.27 kernel for me. 
This might be related: http://www.linuxant.com/pipermail/hsflinux/2008q4/002385.html

Reproducible: always
Steps to reproduce:
1. Emerge sys-kernel/gentoo-sources-2.6.27-r7
2. Emerge net-dialup/hsfmodem-7.68.00.14
3. Run hsfconfig

Actual build log: 
Makefile:25: *** WARNING: Trying to compile kernel modules on a GenuineIntel system while the installed hsf driver package is for x86_64, this is likely to fail... ***
(cd /lib/modules/2.6.27-gentoo-r7/build && make "CNXT_KERNELSRC=/lib/modules/2.6.27-gentoo-r7/build" "M=/usr/lib64/hsfmodem/modules" "CC=gcc" clean)
make[1]: Entering directory `/usr/src/linux-2.6.27-gentoo-r7'
/usr/lib64/hsfmodem/modules/Makefile:25: *** WARNING: Trying to compile kernel modules on a GenuineIntel system while the installed hsf driver package is for x86_64, this is likely to fail... ***
make[1]: Leaving directory `/usr/src/linux-2.6.27-gentoo-r7'
(cd /lib/modules/2.6.27-gentoo-r7/build && make "CNXT_KERNELSRC=/lib/modules/2.6.27-gentoo-r7/build" "M=/usr/lib64/hsfmodem/modules/GPL/hda" "CC=gcc" "HDA_CFLAGS=-DFOUND_KZALLOC  -DFOUND_TLV   -DFOUND_IRQ_HANDLER_T -DFOUND_DELAYED_WORK  -DFOUND_NO_CTL_ELEM_RW" clean)
make[1]: Entering directory `/usr/src/linux-2.6.27-gentoo-r7'
make[1]: Leaving directory `/usr/src/linux-2.6.27-gentoo-r7'
rm -rf *.o GPL/*.o *.ko GPL/*.ko *.mod.c GPL/*.mod.c .*.cmd GPL/.*.cmd .tmp_versions .tmp_versions  /lib/modules/2.6.27-gentoo-r7/build/.tmp_versions/hsfosspec.mod  /lib/modules/2.6.27-gentoo-r7/build/.tmp_versions/hsfserial.mod  /lib/modules/2.6.27-gentoo-r7/build/.tmp_versions/hsfengine.mod  /lib/modules/2.6.27-gentoo-r7/build/.tmp_versions/hsfpcibasic2.mod  /lib/modules/2.6.27-gentoo-r7/build/.tmp_versions/hsfpcibasic3.mod  /lib/modules/2.6.27-gentoo-r7/build/.tmp_versions/hsfmc97ich.mod  /lib/modules/2.6.27-gentoo-r7/build/.tmp_versions/hsfmc97via.mod  /lib/modules/2.6.27-gentoo-r7/build/.tmp_versions/hsfmc97ali.mod  /lib/modules/2.6.27-gentoo-r7/build/.tmp_versions/hsfmc97ati.mod  /lib/modules/2.6.27-gentoo-r7/build/.tmp_versions/hsfmc97sis.mod  /lib/modules/2.6.27-gentoo-r7/build/.tmp_versions/hsfsoar.mod Modules.symvers GPL/hda/Modules.symvers Module.symvers GPL/hda/Module.symvers modules.order
(cd /lib/modules/2.6.27-gentoo-r7/build && make "CNXT_KERNELSRC=/lib/modules/2.6.27-gentoo-r7/build" "M=/usr/lib64/hsfmodem/modules" "CC=gcc" modules)
make[1]: Entering directory `/usr/src/linux-2.6.27-gentoo-r7'
/usr/lib64/hsfmodem/modules/Makefile:25: *** WARNING: Trying to compile kernel modules on a GenuineIntel system while the installed hsf driver package is for x86_64, this is likely to fail... ***
  CC [M]  /usr/lib64/hsfmodem/modules/mod_engine.o
  CC [M]  /usr/lib64/hsfmodem/modules/mod_hda.o
  CC [M]  /usr/lib64/hsfmodem/modules/mod_mc97ali.o
In file included from /usr/lib64/hsfmodem/modules/mod_mc97ali.c:32:
/usr/lib64/hsfmodem/modules/cnxthwpci_common.c: In function 'cnxthwpci_probe':
/usr/lib64/hsfmodem/modules/cnxthwpci_common.c:38: error: 'struct pci_dev' has no member named 'slot_name'
/usr/lib64/hsfmodem/modules/cnxthwpci_common.c:57: error: 'struct pci_dev' has no member named 'slot_name'
/usr/lib64/hsfmodem/modules/cnxthwpci_common.c: In function 'cnxthwpci_init':
/usr/lib64/hsfmodem/modules/cnxthwpci_common.c:247: error: 'struct pci_dev' has no member named 'slot_name'
make[2]: *** [/usr/lib64/hsfmodem/modules/mod_mc97ali.o] Error 1
make[1]: *** [_module_/usr/lib64/hsfmodem/modules] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.27-gentoo-r7'
make: *** [all] Error 2

emerge --info:
Portage 2.1.6.4 (default/linux/amd64/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.27-gentoo-r7 x86_64)
=================================================================
System uname: Linux-2.6.27-gentoo-r7-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T8100_@_2.10GHz-with-glibc2.2.5
Timestamp of tree: Mon, 05 Jan 2009 15:10:01 +0000
app-shells/bash:     3.2_p39
dev-lang/python:     2.5.2-r7
dev-util/cmake:      2.4.6-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CPPFLAGS="-DNDEBUG"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="collision-protect distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.tups.lv/source/"
LANG="ru_RU.UTF-8"
LC_ALL="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en ru lv"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa amd64 avahi bash-completion berkdb bluetooth bonjour branding bzip2 cairo cddb cdr cli cracklib crypt css cups daap dbus djvu dri dv dvd dvdr dvdread eds emboss encode evo exif ffmpeg firefox flac fortran ftp gdbm gedit geoip gif gimp gnome gnome-keyring gnuplot gpm gstreamer gtk hal hddtemp iconv id3tag idn ieee1394 ipod isdnlog jabber jpeg lame libnotify libsamplerate lm_sensors mad matroska midi mikmod mime mmx mmxext mng mozilla mp3 mpeg mudflap multilib nautilus ncurses networkmanager nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png pnm posix ppds pppd python qt3support quicktime rdesktop readline reflection rss rtc samba sdl session smp spell spl sqlite sse sse2 sse3 sse4_1 ssl ssse3 startup-notification svg symlink sysfs tagwriting tcpd theora threads tiff totem truetype unicode upnp usb v4l2 vcd vim-syntax vnc vorbis wavpack wifi wmf x264 xattr xcomposite xml xorg xpm xscreensaver xulrunner xv xvid xvmc zeroconf zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ru lv" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Patrick Lauer gentoo-dev 2009-01-07 20:18:53 UTC
/usr/lib64/hsfmodem/modules/Makefile:25: *** WARNING: Trying to compile kernel
modules on a GenuineIntel system while the installed hsf driver package is for
x86_64, this is likely to fail... ***

that is quite surprising ...
Comment 2 Andrey Vihrov 2009-01-07 20:38:23 UTC
This is most likely due to "Processor family (Core 2/newer Xeon)" selected in kernel config instead of Generic x86_64. struct pci_dev in include/linux/pci.h seems unaffected by this option to me.
Comment 3 Jimmy C. Chau 2009-01-12 04:04:05 UTC
According to this, <http://www.linuxant.com/pipermail/hsflinux/2008q4/002385.html>, there is a patch available (Quoted below):
> Hi,
>
> there is now a patch available at:
>
> http://www.linuxant.com/drivers/hsf/downloads-patches.php
>
> to fix this build issue of driver version 7.68.00.14 on the 2.6.27.8 kernel.
>
> Regards,
>
>
> Jonathan
> Technical specialist / Linuxant
> www.linuxant.com
> support at linuxant.com 


But the given site currently shows no patches.  Perhaps this is because it is part of a newer version of hsfmodem.  From <http://www.linuxant.com/drivers/hsf/changes.php>:
> Thu Dec 18 2008 -
> # Released hsfmodem-7.80.02.01.
>
> Mon Dec 15 2008 -
> # Improved compatibility with newer kernels and distributions.
> # Merged latest Conexant modem code. (7.80.02)

Can someone make a new ebuild for the new version and stick that into the tree?  Thanks.
Comment 4 Jimmy C. Chau 2009-01-12 04:10:30 UTC
BTW, the bug also affects my x86 (Pentium-M) system too.  

Error from /tmp/hsfconfig-buildlog.txt below:
Makefile:25: *** WARNING: Trying to compile kernel modules on a GenuineIntel system while the installed hsf driver package is for i386, this is likely to fail... ***
(cd /lib/modules/2.6.27-gentoo-r7-2009Jan11/build && make "CNXT_KERNELSRC=/lib/modules/2.6.27-gentoo-r7-2009Jan11/build" "M=/usr/lib/hsfmodem/modules" "CC=gcc" clean)
make[1]: Entering directory `/usr/src/linux-2.6.27-gentoo-r7'
/usr/lib/hsfmodem/modules/Makefile:25: *** WARNING: Trying to compile kernel modules on a GenuineIntel system while the installed hsf driver package is for i386, this is
 likely to fail... ***
make[1]: Leaving directory `/usr/src/linux-2.6.27-gentoo-r7'
(cd /lib/modules/2.6.27-gentoo-r7-2009Jan11/build && make "CNXT_KERNELSRC=/lib/modules/2.6.27-gentoo-r7-2009Jan11/build" "M=/usr/lib/hsfmodem/modules/GPL/hda" "CC=gcc" "
HDA_CFLAGS=-DFOUND_KZALLOC  -DFOUND_TLV   -DFOUND_IRQ_HANDLER_T -DFOUND_DELAYED_WORK  -DFOUND_NO_CTL_ELEM_RW" clean)
make[1]: Entering directory `/usr/src/linux-2.6.27-gentoo-r7'
make[1]: Leaving directory `/usr/src/linux-2.6.27-gentoo-r7'
rm -rf *.o GPL/*.o *.ko GPL/*.ko *.mod.c GPL/*.mod.c .*.cmd GPL/.*.cmd .tmp_versions .tmp_versions  /lib/modules/2.6.27-gentoo-r7-2009Jan11/build/.tmp_versions/hsfosspec
.mod  /lib/modules/2.6.27-gentoo-r7-2009Jan11/build/.tmp_versions/hsfserial.mod  /lib/modules/2.6.27-gentoo-r7-2009Jan11/build/.tmp_versions/hsfengine.mod  /lib/modules/
2.6.27-gentoo-r7-2009Jan11/build/.tmp_versions/hsfpcibasic2.mod  /lib/modules/2.6.27-gentoo-r7-2009Jan11/build/.tmp_versions/hsfpcibasic3.mod  /lib/modules/2.6.27-gentoo
-r7-2009Jan11/build/.tmp_versions/hsfmc97ich.mod  /lib/modules/2.6.27-gentoo-r7-2009Jan11/build/.tmp_versions/hsfmc97via.mod  /lib/modules/2.6.27-gentoo-r7-2009Jan11/bui
ld/.tmp_versions/hsfmc97ali.mod  /lib/modules/2.6.27-gentoo-r7-2009Jan11/build/.tmp_versions/hsfmc97ati.mod  /lib/modules/2.6.27-gentoo-r7-2009Jan11/build/.tmp_versions/
hsfmc97sis.mod  /lib/modules/2.6.27-gentoo-r7-2009Jan11/build/.tmp_versions/hsfsoar.mod Modules.symvers GPL/hda/Mod
ules.symvers Module.symvers GPL/hda/Module.symvers modules.order
(cd /lib/modules/2.6.27-gentoo-r7-2009Jan11/build && make "CNXT_KERNELSRC=/lib/modules/2.6.27-gentoo-r7-2009Jan11/build" "M=/usr/lib/hsfmodem/modules" "CC=gcc" modules)
make[1]: Entering directory `/usr/src/linux-2.6.27-gentoo-r7'
/usr/lib/hsfmodem/modules/Makefile:25: *** WARNING: Trying to compile kernel modules on a GenuineIntel system while the installed hsf driver package is for i386, this is likely to fail... ***
  CC [M]  /usr/lib/hsfmodem/modules/mod_engine.o
  CC [M]  /usr/lib/hsfmodem/modules/mod_mc97ali.o
In file included from /usr/lib/hsfmodem/modules/mod_mc97ali.c:32:
/usr/lib/hsfmodem/modules/cnxthwpci_common.c: In function 'cnxthwpci_probe':
/usr/lib/hsfmodem/modules/cnxthwpci_common.c:38: error: 'struct pci_dev' has no member named 'slot_name'
/usr/lib/hsfmodem/modules/cnxthwpci_common.c:57: error: 'struct pci_dev' has no member named 'slot_name'
/usr/lib/hsfmodem/modules/cnxthwpci_common.c: In function 'cnxthwpci_init':
/usr/lib/hsfmodem/modules/cnxthwpci_common.c:247: error: 'struct pci_dev' has no member named 'slot_name'
make[2]: *** [/usr/lib/hsfmodem/modules/mod_mc97ali.o] Error 1
make[1]: *** [_module_/usr/lib/hsfmodem/modules] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.27-gentoo-r7'
make: *** [all] Error 2


emerge --info:
Portage 2.1.6.4 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.27-gentoo-r7-2009Jan11 i686)
=================================================================
System uname: Linux-2.6.27-gentoo-r7-2009Jan11-i686-Intel-R-_Pentium-R-_M_processor_1.73GHz-with-glibc2.0
Timestamp of tree: Sun, 11 Jan 2009 16:45:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.5.2-r7
dev-util/cmake:      2.4.6-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=pentium-m -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://www.gtlib.gatech.edu/pub/gentoo  http://gentoo.mirrors.pair.com/         http://gentoo.netnitco.net      http://open-systems.ufl.edu/mirrors/gentoo       http://gentoo.mirrors.tds.net/gentoo    ftp://mirror.datapipe.net/gentoo        http://distfiles.gentoo.org     http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="en_US en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa bash-completion berkdb bluetooth bzip2 cairo caps cdparanoia cjk cli cracklib crypt cups dbus directfb divx dri dts dvb dvd eap-tls emacs encode exif fbcon ffmpeg flac fortran ftp gd gdbm gif gmedia gnutls gpm gstreamer gtk hal hardened iconv ipv6 isdnlog java javascript jpeg jpeg2k libcaca logrotate lzo mad mailwrapper matroska mbrola midi mmx mmxext mp3 mpeg mudflap ncurses nls nptl nptlonly ogg openal opengl openmp pam pcmcia pcre pdf perl png ppds pppd prediction preview-latex python qt4 quicktime readline realmedia reflection samba scanner sdl session socks5 sound spell spl sse sse2 ssl svg sysfs tcpd theora threads tiff tk truetype unicode usb v4l v4l2 vcd vlm vorbis wifi win32codecs wmf wmp wxwindows x86 xinerama xml xorg xulrunner xv xvid xvmc zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US en" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 5 Alin Năstac (RETIRED) gentoo-dev 2009-01-12 22:26:37 UTC
Fixed in cvs (hopefully) by bumping version to 7.80.02.01.
Comment 6 Andrey Vihrov 2009-01-13 08:51:04 UTC
The new version compiles fine, thanks for quick resolution.
Comment 7 Jimmy C. Chau 2009-01-13 21:37:57 UTC
I just got and installed the new ebuild.  I can confirm that it compiles for me.  Thanks!