Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 208569 - net-dialup/hsfmodem-7.68.00.04-r1 doesn't build modules on sys-kernel/gentoo-sources-2.6.24
Summary: net-dialup/hsfmodem-7.68.00.04-r1 doesn't build modules on sys-kernel/gentoo-...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: Gentoo Dialup Developers
URL:
Whiteboard:
Keywords: STABLEREQ
Depends on:
Blocks: kernel-2.6.24
  Show dependency tree
 
Reported: 2008-02-02 12:31 UTC by Elias Probst
Modified: 2008-05-23 21:00 UTC (History)
6 users (show)

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


Attachments
Patches modules/Makefile to change CFLAGS to EXTRA_CFLAGS (hsfmodem-7.68.00.04-modules-makefile.patch,13.40 KB, patch)
2008-02-16 20:33 UTC, Willard Dawson
Details | Diff
Patches hsfmodem-7.68.00.04-r1.ebuild to add epatch of modules/Makefile patch (hsfmodem-7.68.00.04-r1.ebuild-patch,348 bytes, patch)
2008-02-16 20:35 UTC, Willard Dawson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Elias Probst 2008-02-02 12:31:54 UTC
- installed sys-kernel/gentoo-sources-2.6.24
- ran 'modules-rebuild -X rebuild all'
- ran 'hsfconfig'

hsfconfig displayed the following error:
Conexant HSF softmodem driver, version 7.68.00.04full

If you need license keys, assistance or more information, please go to:
        http://www.linuxant.com/

When reporting a problem for the first time, please send
us the file generated by "hsfconfig --dumpdiag".

No pre-built modules for: unknown-unknown linux-2.6.24-gentoo i686-SMP

Trying to automatically build the driver modules...
(this requires a C compiler and proper kernel sources to be installed)

Where is the linux source build directory that matches your running kernel?
[/lib/modules/2.6.24-gentoo/build]

Building modules for kernel 2.6.24-gentoo, using source directory
/lib/modules/2.6.24-gentoo/build. Please wait...

ERROR: Module build failed!
Please examine the log file "/tmp/hsfconfig-buildlog.txt" to determine why.


The content of /tmp/hsfconfig-buildlog.txt is:
make[1]: Entering directory `/usr/src/linux-2.6.24-gentoo'
make[1]: Leaving directory `/usr/src/linux-2.6.24-gentoo'
rm -rf *.o GPL/*.o *.ko GPL/*.ko *.mod.c GPL/*.mod.c .*.cmd GPL/.*.cmd .tmp_versions .tmp_versions  /lib/modules/2.6.24-gentoo/build/.tmp_versions/hsfosspec.mod  /lib/modules/2.6.24-gentoo/build/.tmp_versions/hsfserial.mod  /lib/modules/2.6.24-gentoo/build/.tmp_versions/hsfengine.mod  /lib/modules/2.6.24-gentoo/build/.tmp_versions/hsfpcibasic2.mod  /lib/modules/2.6.24-gentoo/build/.tmp_versions/hsfpcibasic3.mod  /lib/modules/2.6.24-gentoo/build/.tmp_versions/hsfmc97ich.mod  /lib/modules/2.6.24-gentoo/build/.tmp_versions/hsfmc97via.mod  /lib/modules/2.6.24-gentoo/build/.tmp_versions/hsfmc97ali.mod  /lib/modules/2.6.24-gentoo/build/.tmp_versions/hsfmc97ati.mod  /lib/modules/2.6.24-gentoo/build/.tmp_versions/hsfmc97sis.mod  /lib/modules/2.6.24-gentoo/build/.tmp_versions/hsfsoar.mod Modules.symvers GPL/hda/Modules.symvers
(cd /lib/modules/2.6.24-gentoo/build && make "CNXT_KERNELSRC=/lib/modules/2.6.24-gentoo/build" "M=/usr/lib/hsfmodem/modules" "CC=gcc"modules)
make[1]: Entering directory `/usr/src/linux-2.6.24-gentoo'
/usr/lib/hsfmodem/modules/Makefile:20: *** WARNING: Trying to compile kernel modules on a GenuineIntel system while the installed hsfdriver package is for i386, this is likely to fail... ***
scripts/Makefile.build:46: *** CFLAGS was changed in "/usr/lib/hsfmodem/modules/Makefile". Fix it to use EXTRA_CFLAGS.  Stop.
make[1]: *** [_module_/usr/lib/hsfmodem/modules] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.24-gentoo'
make: *** [all] Error 2

My emerge --info:
Portage 2.1.4 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo i686)
=================================================================
System uname: 2.6.24-gentoo i686 Intel(R) Core(TM)2 CPU T7400 @ 2.16GHz
Timestamp of tree: Thu, 31 Jan 2008 13:46:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -msse3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/svn/env /usr/kde/svn/share/config /usr/kde/svn/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/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="-O2 -march=nocona -msse3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.mneisen.org/gentoo ftp://mirror.datapipe.net/gentoo http://mirror.datapipe.net/gentoo http://gentoo.mneisen.org/ ftp://213.186.33.38/gentoo-distfiles/"
LANG="de_DE.utf8"
LC_ALL="C"
LINGUAS="de_DE de"
MAKEOPTS="-j4"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/berkano /usr/portage/local/layman/vmware /usr/portage/local/layman/kde /usr/local/portage /usr/portage/local/minext"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="S3TC X a52 aac accessibility acl acpi additions aiglx alias alsa asf async autoipd automount avahi bash-completion berkdb bittorrent bluetooth bogofilter bzip2 cairo cardbus cdda cddb cdinstall cdparanoia cdr chardet cisco cli colordiff connectionstatus contactnotes cpudetection cracklib crypt css cups daap dbus dcraw decibel dga disk-partition divx djbfft djvu dmi dmx dri dts dvd dvdr dvdreadeffects emboss emovix encode evo exif exiv2 extensions fam fame fat fbsplash ffmpeg firefox flac foomaticdb ftp fuse gcj gd gdbm geoip gif gimp gimpprint glitz glut gmedia gnutls gphoto2 gpm graphviz gsm gstreamer gtk2 h323 hal hbci hdaps hddtemp highlight history howl http httpd ibam iconv icq idea ieee1394 imagemagick imap imlib inkjar inotify ipod ipv6 ipw3945 irc irmc jabber java javascript jingle john jpeg jpeg2k kde kdepim kdrive kerberos kipi kqemu l7filter laptop latex lcms ldap libnotify libsamplerate libvisual lm_sensors logitech-mouse lzo lzw mad maps matroska mdnsresponder-compat messenger midi mikmod mime mjpeg mmap mmx mmxext mng modplug module mozbranding mozsvg mp2 mp3 mp4 mpeg mplayer mtp mudflap musepack musicbrainz mysql ncurses network network_manager njb nls no-old-linux nptl nptlonly nsplugin ntfs ntlm ntlm_unsupported_patch obex offensive ofx ogg on-the-fly-crypt openal opengl openmp oscar oss pam pcmcia pcre pda pdf perl plotutils plugin pmount pmu png pnm ppds pppd print python qa qt3 qt3support qt4 quicktime radius rar rdesktop readline real realmedia rtc rtsp ruby samba scanner screen sdl sensord session sharedext smartcard smp snmp sockets sound spell spl sqlsqlite sqlite3 srt sse sse2 ssl ssse3 stream subtitles svg svga swat symlink szip taglib tagwriting tcpd telepathy tetex texteffect textures tga theora tidy tiff transcode truetype truetype-fonts trusted type1-fonts unicode usb userlocales utempter vcd videos vidix vim visualization vlm vnc vncviewer vorbis webdav webpresence wifi win32codecs wireshark wma wmp x264 x86 xanim xattr xcb xcomposite xine xinerama xml xorg xpm xrandr xscreensaver xv xvid xvmc xvnc yv12 zeroconf zlib zoran" ALSA_CARDS="hda-intel usb-audio" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de_DE de" USERLAND="GNU" VIDEO_CARDS="vga radeonfglrx vesa fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Daniel Drake (RETIRED) gentoo-dev 2008-02-13 16:23:53 UTC
you can fix this by finding the Makefile that is messing with CFLAGS, then use
a sed in the ebuild to change that to EXTRA_CFLAGS
Comment 2 Willard Dawson 2008-02-16 20:31:03 UTC
Me too on the build error. I created an overlay and patch files for both the ebuild and the Makefile causing the error.  However, a subsequent error occurs that I have not yet worked through.
Comment 3 Willard Dawson 2008-02-16 20:33:47 UTC
Created attachment 143690 [details, diff]
Patches modules/Makefile to change CFLAGS to EXTRA_CFLAGS
Comment 4 Willard Dawson 2008-02-16 20:35:56 UTC
Created attachment 143691 [details, diff]
Patches hsfmodem-7.68.00.04-r1.ebuild to add epatch of modules/Makefile patch
Comment 5 Willard Dawson 2008-02-16 20:37:40 UTC
Here's the additional error I mentioned just now:

/usr/lib/hsfmodem/modules/Makefile:20: *** 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_hda.o
  CC [M]  /usr/lib/hsfmodem/modules/mod_mc97ali.o
  CC [M]  /usr/lib/hsfmodem/modules/mod_mc97ati.o
  CC [M]  /usr/lib/hsfmodem/modules/mod_mc97ich.o
  CC [M]  /usr/lib/hsfmodem/modules/mod_mc97sis.o
  CC [M]  /usr/lib/hsfmodem/modules/mod_mc97via.o
  CC [M]  /usr/lib/hsfmodem/modules/mod_osspec.o
  CC [M]  /usr/lib/hsfmodem/modules/osservices.o
  CC [M]  /usr/lib/hsfmodem/modules/osstdio.o
  CC [M]  /usr/lib/hsfmodem/modules/osnvm.o
/usr/lib/hsfmodem/modules/osnvm.c:326: error: 'CNXTNVMDIR' undeclared here (not in a function)
/usr/lib/hsfmodem/modules/osnvm.c:327: error: invalid initializer
/usr/lib/hsfmodem/modules/osnvm.c:327: error: expected ',' or ';' before string constant
/usr/lib/hsfmodem/modules/osnvm.c: In function 'NVM_NewInstance':
/usr/lib/hsfmodem/modules/osnvm.c:538: error: 'CNXTSBINDIR' undeclared (first use in this function)
/usr/lib/hsfmodem/modules/osnvm.c:538: error: (Each undeclared identifier is reported only once
/usr/lib/hsfmodem/modules/osnvm.c:538: error: for each function it appears in.)
/usr/lib/hsfmodem/modules/osnvm.c:538: warning: initialization discards qualifiers from pointer target type
/usr/lib/hsfmodem/modules/osnvm.c:538: error: expected '}' before string constant
/usr/lib/hsfmodem/modules/osnvm.c:539: error: expected '}' before 'CNXTSBINDIR'
make[2]: *** [/usr/lib/hsfmodem/modules/osnvm.o] Error 1
make[1]: *** [_module_/usr/lib/hsfmodem/modules] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.24-gentoo-r2'
make: *** [all] Error 2

Comment 6 Willard Dawson 2008-02-16 20:54:05 UTC
And, just in case you should want it...

# emerge --info
Portage 2.1.4.4 (default-linux/x86/2007.0/desktop, gcc-4.2.2, glibc-2.7-r1, 2.6.24-gentoo-r2 i686)
=================================================================
System uname: 2.6.24-gentoo-r2 i686 Intel(R) Pentium(R) M processor 2.00GHz
Timestamp of tree: Sat, 16 Feb 2008 12:30:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r8, 2.5.1-r5
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O2 -pipe -ggdb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /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/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=i686 -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US"
LC_ALL="en_US"
MAKEOPTS=""
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="3dnow 3dnowext X a52 aac acl acpi aiglx alsa apache2 apm arts ati audiofile avahi avi bash-completion berkdb bitmap-fonts bluetooth bzip2 cairo caps cardbus cdr cli cracklib crypt ctype cups dba dbtool dbus diskio djvu dri dvd dvdr dvdread eds emboss encode esd ethereal evo exif expat fam fastbuild ffmpeg fftw fglrx firefox foomaticdb force-cgi-redirect fortran ftp gamin gd gdbm gif glib glitz glut gmp gnome gpm gstreamer gtk gtk2 gtkhtml guile hal iconv idn imlib ipv6 isdnlog ithreads jack java jpeg kde kerberos kqemu lcms ldap libclamav libg++ libwww lirc live lm_sensors lua mad madwifi matroska mdnsresponder-compat memlimit mhash midi mikmod mmx mmxext mng mono motif mozilla mp3 mpeg mudflap mysql ncurses netjack networking nforce2 nls nptl nptlonly nvidia ocaml ogg oggvorbis opengl openmp oss pam pango pch pcre pdf pdflib pear perl php pmu png portaudio posix pppd pulseaudio python qt qt3 qt3support qt4 qtmt quicktime readline real reflection ruby samba sasl sdl session simplexml slang sndfile snmp soap sockets spell spl sqlite sse sse2 ssl svg tcl tcltk tcpd theora threads threadsafe tiff tk tokenizer truetype truetype-fonts type1-fonts udev unicode utempter vorbis wifi win32codecs x86 xanim xinerama xml xmlrpc xorg xscreensaver xsl xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="radeon ati fglrx"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 7 Nick 2008-02-18 02:49:25 UTC
  I have the same problem with the same errors after the patch. And I just voted for this bug.
Comment 8 Nick 2008-02-18 02:54:06 UTC
(In reply to comment #7)
>   I have the same problem with the same errors after the patch. And I just
> voted for this bug.
> 

  The latest hsfmodem-7.68.00.07, just like 05 and 06, lists in changes "Improved compatibility with newer kernels and distributions" however in this version hsfconfig freezes here for some reason.
Comment 9 Daniel Drake (RETIRED) gentoo-dev 2008-03-13 16:31:22 UTC
CNXTNVMDIR (the first compile error) is defined in the Makefile. Your patch does this:

-CFLAGS_osnvm.o += -DCNXTSBINDIR=\"$(CNXTSBINDIR)\" -DCNXTNVMDIR=\"$(CNXTNVMDIR)\"
+EXTRA_CFLAGS_osnvm.o += -DCNXTSBINDIR=\"$(CNXTSBINDIR)\" -DCNXTNVMDIR=\"$(CNXTNVMDIR)\"

Try not renaming the assignment in that case. Instead only rename the CFLAGS= ones, not the CFLAGS_foo ones.

net-dialup: quick reminder, 2.6.24 will go stable soon
Comment 10 Denis Dupeyron (RETIRED) gentoo-dev 2008-04-02 22:21:56 UTC
hsfmodem-7.68.00.09 solves the issue. The ebuild only needs to be changed to use the patches made for hsfmodem-7.68.00.04.

Denis.
Comment 11 Alin Năstac (RETIRED) gentoo-dev 2008-04-13 10:23:11 UTC
Version 7.68.00.09 is now in the tree and will probably get stabilized in a month or so.
Comment 12 Alin Năstac (RETIRED) gentoo-dev 2008-05-19 19:30:47 UTC
amd64 and x86 teams, please stabilize net-dialup/hsfmodem-7.68.00.09.
Comment 13 Markus Meier gentoo-dev 2008-05-23 21:00:58 UTC
amd64/x86 stable, all arches done -> closing.