Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 308865 - net-dialup/hsfmodem breaks with linux 2.6.33+
Summary: net-dialup/hsfmodem breaks with linux 2.6.33+
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Dialup Developers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-10 18:53 UTC by Willard Dawson
Modified: 2010-10-29 15:46 UTC (History)
1 user (show)

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


Attachments
hsfmodem-7.80.02.05-fix-missing-autoconf-and-utsrelease-header-files.patch (hsfmodem-7.80.02.05-fix-missing-autoconf-and-utsrelease-header-files.patch,5.94 KB, text/plain)
2010-07-10 18:23 UTC, Egor Y. Egorov
Details
hsfmodem-7.80.02.05.ebuild (hsfmodem-7.80.02.05.ebuild,2.23 KB, text/plain)
2010-07-10 18:49 UTC, Egor Y. Egorov
Details
hsfconfig log (hsfconfig.log,1.58 KB, text/plain)
2010-09-03 14:48 UTC, Willard Dawson
Details
hsfmodem-7.80.02.05-fix-2.6.36-kernel.patch (hsfmodem-7.80.02.05-fix-2.6.36-kernel.patch,1.28 KB, text/plain)
2010-10-27 02:02 UTC, Egor Y. Egorov
Details
hsfmodem-7.80.02.05.ebuild (hsfmodem-7.80.02.05.ebuild,2.27 KB, text/plain)
2010-10-27 02:02 UTC, Egor Y. Egorov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Willard Dawson 2010-03-10 18:53:54 UTC
I have net-dialup/hsfmodem-7.80.02.05 installed.  After upgrading my kernel, I needed to rerun hsfconfig to reconfigure the TTY devices.  As I came to discover, the required autoconf.h file is missing from /lib/modules/2.6.33-gentoo/build/include/linux/autoconf.h.  I tried re-emerging sys-kernel/linux-headers, but autoconf.h was not delivered.

Reproducible: Always




# emerge --info
Portage 2.1.8.3 (default/linux/x86/10.0, gcc-4.4.3, glibc-2.11-r1, 2.6.33-gentoo i686)
=================================================================
System uname: Linux-2.6.33-gentoo-i686-Intel-R-_Pentium-R-_M_processor_2.00GHz-with-gentoo-2.0.1
Timestamp of tree: Wed, 10 Mar 2010 12:00:01 +0000
app-shells/bash:     4.1_p2
dev-java/java-config: 2.1.10
dev-lang/python:     2.5.4-r4, 2.6.4-r1, 3.1.1-r1
dev-python/pycrypto: 2.1.0
dev-util/cmake:      2.8.0-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.5-r1, 1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1
sys-devel/gcc:       4.3.4, 4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 Nessus-EULA sun-bcla-java-vm"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O2 -pipe -ggdb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=i686 -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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 bzip2 cairo caps cardbus cdio cdr cli consolekit cracklib crypt ctype cups cxx dba dbtool dbus digitalradio diskio djvu dri dts dvd dvdread eds emboss encode esd ethereal exif expat fastbuild ffmpeg fftw fglrx foomaticdb force-cgi-redirect fortran ftp fuse gamin gd gdbm gif glib glitz glut gmp gpm gstreamer gtk gtk2 gtkhtml guile hal iconv idn imlib ipv6 ithreads jack java jpeg kde kerberos kqemu lcms ldap libclamav libg++ libwww lirc live lm_sensors lua mad madwifi matroska mdnsresponder-compat memlimit mhash mikmod mmx mmxext mng modules mono motif mozilla mp3 mpeg mudflap mysql ncurses netboot netjack networking nforce2 nls nptl nptlonly nsplugin nvidia ocaml ogg oggvorbis opengl openmp oss pam pango pch pcmcia pcre pdf pdflib pear perl php pmu png policykit portaudio posix pppd python qt qt3support qtmt quicktime readline reflection ruby samba sasl sdl semantic-desktop session simplexml slang sndfile snmp soap sockets spell spl sql sqlite sse sse2 ssl svg sysfs tcl tcltk tcpd theora threads threadsafe tiff tk tokenizer truetype truetype-fonts type1-fonts udev unicode utempter vorbis wddx webkit wifi win32codecs x86 xanim xinerama xml xmlrpc xorg xscreensaver xsl xulrunner 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 mmap_emul 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" FOO2ZJS_DEVICES="hp2600n" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Rafał Mużyło 2010-03-10 20:58:57 UTC
Cause it was renamed to generated/autoconf.h.
It's not the only package that needs to catch up with that change. 
Comment 2 Willard Dawson 2010-03-12 03:04:03 UTC
(In reply to comment #1)
> Cause it was renamed to generated/autoconf.h.
> It's not the only package that needs to catch up with that change. 
> 

Apparently, just copying over the generated/autoconf.h to the location expected by hsfconfig is no good, either...



WARNING: the kernel version () defined in
/lib/modules/2.6.33-gentoo/build/include/linux/version.h
does not match the currently running kernel (2.6.33-gentoo)
The cause of this problem is an incorrect kernel source path.
Please check that /lib/modules/2.6.33-gentoo/build points to the right tree.
The cause of this is usually a missing or unconfigured
kernel source tree (and sometimes an incorrect directory or symbolic link).

However, proper /boot/config-2.6.33-gentoo was found.
Would you like to try using it (in a temporary kernel tree)? [yes] 

Unable to prepare temporary kernel tree

First, ensure that the proper kernel source and compiler packages
from your distribution vendor and/or the community are installed.

The Linux kernel can then be reconfigured by running "make menuconfig"
under the kernel source directory (usually /usr/src/linux).

Verify that the proper options for your system are selected.

Then compile and install your new kernel (for more information about
this procedure, see the README file under the kernel source directory),
reboot the system using the new kernel, and re-run "hsfconfig".
Comment 3 Willard Dawson 2010-07-01 13:20:46 UTC
(In reply to comment #1)
> Cause it was renamed to generated/autoconf.h.
> It's not the only package that needs to catch up with that change. 
> 

Any update on this issue?
Comment 4 Egor Y. Egorov 2010-07-10 09:23:06 UTC
cd /usr/src/linux/include/linux
ln -s ../generated/autoconf.h
ln -s ../generated/utsrelease.h

This is workaround.
With 2.6.34-zen1 hsfconfig make modules fine.

Sory, my English is bad.
Comment 5 Egor Y. Egorov 2010-07-10 18:23:13 UTC
Created attachment 238229 [details]
hsfmodem-7.80.02.05-fix-missing-autoconf-and-utsrelease-header-files.patch

This patch allow work hsfconfig fine with gentoo-sources-2.6.32-r7 and zen-sources-2.6.34 -r1 without creating symlinks.
Comment 6 Egor Y. Egorov 2010-07-10 18:49:11 UTC
Created attachment 238233 [details]
hsfmodem-7.80.02.05.ebuild

In my case (I using baselayout-2 with rc_parallel="YES") service /etc/init.d/hsf has not starting, because that symlink.
cp /usr/sbin/rchsf /etc/init.d/ 
solve this issues.
This ebuild do it.
Comment 7 Patrich Björklund 2010-07-14 03:36:08 UTC
It seems the autoconf.h from kernel 2.6.33+ is here:

/usr/src/linux/include/generated/autoconf.h

I have successfully compiled clamav with a symlink to /usr/src/linux/include/linux
Comment 8 SpanKY gentoo-dev 2010-08-23 06:19:40 UTC
yeah, no.  none of the headers you quote should be installed.  hfsmodem is broken if it depends on any of them.  linux-headers is not broken in this regard.

someone needs to post a full build log of the failure as an attachment.  i dont know anything about hsfmodem, and it seems to build fine for me.  fixes for userspace code is very different from kernel modules.  no userspace code should be using headers in /usr/src/linux/ or via /lib/moules/...
Comment 9 Willard Dawson 2010-09-03 14:48:29 UTC
Created attachment 245876 [details]
hsfconfig log

The output of hsfconfig in response to comment/request #8.
Comment 10 Willard Dawson 2010-09-21 19:27:27 UTC
(In reply to comment #9)
> Created an attachment (id=245876) [details]
> hsfconfig log
> 
> The output of hsfconfig in response to comment/request #8.
> 

Any news, hints, or suggestions?
Comment 11 Willard Dawson 2010-10-24 15:42:58 UTC
(In reply to comment #10)
> (In reply to comment #9)
> > Created an attachment (id=245876) [details] [details]
> > hsfconfig log
> > 
> > The output of hsfconfig in response to comment/request #8.
> > 
> 
> Any news, hints, or suggestions?
> 

What can I do to get past hsfconfig?
Comment 12 Egor Y. Egorov 2010-10-27 02:02:08 UTC
Created attachment 252131 [details]
hsfmodem-7.80.02.05-fix-2.6.36-kernel.patch

Fix compile modules with kernel >=2.3.36
Comment 13 Egor Y. Egorov 2010-10-27 02:02:43 UTC
Created attachment 252133 [details]
hsfmodem-7.80.02.05.ebuild
Comment 14 Willard Dawson 2010-10-29 15:46:52 UTC
(In reply to comment #13)
> Created an attachment (id=252133) [details]
> hsfmodem-7.80.02.05.ebuild
> 

Thanks, Egor.  "Works for me."  However, now I discover that I need modem drivers for Agere ltmodem that are simply not available as I'm running x86_64.  So, I have more work to do to make it all work... but that is not your problem nor is it a problem for hsfmodem.