with Gentoo Linux 2.6.21-r4, the hsfmodem module is not built, neither at boot time or using hsfconfig. Reproducible: Always Steps to Reproduce: 1. boot the system 2. connect with gnome-ppp 3. Actual Results: No pre-built modules for: unknown-unknown linux-2.6.21-gentoo-r4-l1 i686-SMP Trying to automatically build the driver modules... (this requires a C compiler and proper kernel sources to be installed) Building modules for kernel 2.6.21-gentoo-r4-l1, using source directory /lib/modules/2.6.21-gentoo-r4-l1/build. Please wait... ERROR: Module build failed! Please examine the log file "/tmp/hsfconfig-buildlog.txt" to determine why. gnome-ppp: connecting... gnome-ppp: WvDial<Err>: Cannot open /dev/ttySHSF0: No such file or directory. Expected Results: hsfmodem module is built, gnome-ppp connect to IP everything is fine when booted with Gentoo Linux 2.6.20-r8
> Please examine the log file "/tmp/hsfconfig-buildlog.txt" to determine why. Post/attach it.
Following is the the log file "/tmp/hsfconfig-buildlog.txt": 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... *** ../modules/kernelcompiler.sh: gcc version 4.1.2 or similar is required to compile modules for your kernel (cd /lib/modules/2.6.21-gentoo-r4-l1/build && make "CNXT_KERNELSRC=/lib/modules/2.6.21-gentoo-r4-l1/build" "M=/usr/lib/hsfmodem/modules" "CC=false" clean) make[1]: entrant dans le répertoire « /usr/src/linux-2.6.21-gentoo-r4 » /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... *** /usr/lib/hsfmodem/modules/kernelcompiler.sh: gcc version 4.1.2 or similar is required to compile modules for your kernel make[1]: quittant le répertoire « /usr/src/linux-2.6.21-gentoo-r4 » (cd /lib/modules/2.6.21-gentoo-r4-l1/build && make "CNXT_KERNELSRC=/lib/modules/2.6.21-gentoo-r4-l1/build" "M=/usr/lib/hsfmodem/modules/GPL/hda" "CC=false" "HDA_CFLAGS=-DFOUND_KZALLOC -DFOUND_TLV -DFOUND_IRQ_HANDLER_T -DFOUND_DELAYED_WORK " clean) make[1]: entrant dans le répertoire « /usr/src/linux-2.6.21-gentoo-r4 » make[1]: quittant le répertoire « /usr/src/linux-2.6.21-gentoo-r4 » rm -rf *.o GPL/*.o *.ko GPL/*.ko *.mod.c GPL/*.mod.c .*.cmd GPL/.*.cmd .tmp_versions .tmp_versions /lib/modules/2.6.21-gentoo-r4-l1/build/.tmp_versions/hsfosspec.mod /lib/modules/2.6.21-gentoo-r4-l1/build/.tmp_versions/hsfserial.mod /lib/modules/2.6.21-gentoo-r4-l1/build/.tmp_versions/hsfengine.mod /lib/modules/2.6.21-gentoo-r4-l1/build/.tmp_versions/hsfpcibasic2.mod /lib/modules/2.6.21-gentoo-r4-l1/build/.tmp_versions/hsfmc97ich.mod /lib/modules/2.6.21-gentoo-r4-l1/build/.tmp_versions/hsfmc97via.mod /lib/modules/2.6.21-gentoo-r4-l1/build/.tmp_versions/hsfmc97ali.mod /lib/modules/2.6.21-gentoo-r4-l1/build/.tmp_versions/hsfmc97ati.mod /lib/modules/2.6.21-gentoo-r4-l1/build/.tmp_versions/hsfmc97sis.mod /lib/modules/2.6.21-gentoo-r4-l1/build/.tmp_versions/hsfsoar.mod Modules.symvers GPL/hda/Modules.symvers (cd /lib/modules/2.6.21-gentoo-r4-l1/build && make "CNXT_KERNELSRC=/lib/modules/2.6.21-gentoo-r4-l1/build" "M=/usr/lib/hsfmodem/modules" "CC=false" modules) make[1]: entrant dans le répertoire « /usr/src/linux-2.6.21-gentoo-r4 » /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... *** /usr/lib/hsfmodem/modules/kernelcompiler.sh: gcc version 4.1.2 or similar is required to compile modules for your kernel CC [M] /usr/lib/hsfmodem/modules/mod_engine.o make[2]: *** [/usr/lib/hsfmodem/modules/mod_engine.o] Erreur 1 make[1]: *** [_module_/usr/lib/hsfmodem/modules] Erreur 2 make[1]: quittant le répertoire « /usr/src/linux-2.6.21-gentoo-r4 » make: *** [all] Erreur 2
emerge --info as well, please.
Portage 2.1.2.9 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.5-r4, 2.6.21-gentoo-r4-l1 i686) ================================================================= System uname: 2.6.21-gentoo-r4-l1 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz Gentoo Base System release 1.12.9 Timestamp of tree: Thu, 12 Jul 2007 11:50:01 +0000 ccache version 2.4 [enabled] dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r7 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 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 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.23b virtual/os-headers: 2.6.17-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict" GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo/ http://mirror.gentoo.no/" LC_ALL="fr_FR.UTF-8" LINGUAS="fr de en" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" 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 --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa berkdb bitmap-fonts cairo cdparanoia cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo fam firefox fortran gdbm gif gnome gpm gstreamer gtk hal iconv ipv6 isdnlog jpeg kerberos ldap libg++ mad midi mikmod mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png pppd python qt3support quicktime readline reflection scanner sdl session spell spl ssl svg tcpd tiff truetype truetype-fonts type1-fonts unicode usb vorbis win32codecs x86 xine xml xorg xv zlib" ALSA_CARDS="intel8x0" 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" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr de en" USERLAND="GNU" VIDEO_CARDS="vesa fbdev radeon" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Reopen.
Fixed in 7.60.00.09. Will be marked stable after a probation period.
(In reply to comment #6) > Fixed in 7.60.00.09. Will be marked stable after a probation period. > Not solved, the new log file "/tmp/hsfconfig-buildlog.txt" is: 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... *** ../modules/kernelcompiler.sh: gcc version 4.1.2 or similar is required to compile modules for your kernel (cd /lib/modules/2.6.21-gentoo-r4-l1/build && make "CNXT_KERNELSRC=/lib/modules/2.6.21-gentoo-r4-l1/build" "M=/usr/lib/hsfmodem/modules" "CC=false" clean) make[1]: entrant dans le répertoire « /usr/src/linux-2.6.21-gentoo-r4 » /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... *** /usr/lib/hsfmodem/modules/kernelcompiler.sh: gcc version 4.1.2 or similar is required to compile modules for your kernel make[1]: quittant le répertoire « /usr/src/linux-2.6.21-gentoo-r4 » (cd /lib/modules/2.6.21-gentoo-r4-l1/build && make "CNXT_KERNELSRC=/lib/modules/2.6.21-gentoo-r4-l1/build" "M=/usr/lib/hsfmodem/modules/GPL/hda" "CC=false" "HDA_CFLAGS=-DFOUND_KZALLOC -DFOUND_TLV -DFOUND_IRQ_HANDLER_T -DFOUND_DELAYED_WORK " clean) make[1]: entrant dans le répertoire « /usr/src/linux-2.6.21-gentoo-r4 » make[1]: quittant le répertoire « /usr/src/linux-2.6.21-gentoo-r4 » rm -rf *.o GPL/*.o *.ko GPL/*.ko *.mod.c GPL/*.mod.c .*.cmd GPL/.*.cmd .tmp_versions .tmp_versions /lib/modules/2.6.21-gentoo-r4-l1/build/.tmp_versions/hsfosspec.mod /lib/modules/2.6.21-gentoo-r4-l1/build/.tmp_versions/hsfserial.mod /lib/modules/2.6.21-gentoo-r4-l1/build/.tmp_versions/hsfengine.mod /lib/modules/2.6.21-gentoo-r4-l1/build/.tmp_versions/hsfpcibasic2.mod /lib/modules/2.6.21-gentoo-r4-l1/build/.tmp_versions/hsfmc97ich.mod /lib/modules/2.6.21-gentoo-r4-l1/build/.tmp_versions/hsfmc97via.mod /lib/modules/2.6.21-gentoo-r4-l1/build/.tmp_versions/hsfmc97ali.mod /lib/modules/2.6.21-gentoo-r4-l1/build/.tmp_versions/hsfmc97ati.mod /lib/modules/2.6.21-gentoo-r4-l1/build/.tmp_versions/hsfmc97sis.mod /lib/modules/2.6.21-gentoo-r4-l1/build/.tmp_versions/hsfsoar.mod Modules.symvers GPL/hda/Modules.symvers (cd /lib/modules/2.6.21-gentoo-r4-l1/build && make "CNXT_KERNELSRC=/lib/modules/2.6.21-gentoo-r4-l1/build" "M=/usr/lib/hsfmodem/modules" "CC=false" modules) make[1]: entrant dans le répertoire « /usr/src/linux-2.6.21-gentoo-r4 » /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... *** /usr/lib/hsfmodem/modules/kernelcompiler.sh: gcc version 4.1.2 or similar is required to compile modules for your kernel CC [M] /usr/lib/hsfmodem/modules/mod_engine.o make[2]: *** [/usr/lib/hsfmodem/modules/mod_engine.o] Erreur 1 make[1]: *** [_module_/usr/lib/hsfmodem/modules] Erreur 2 make[1]: quittant le répertoire « /usr/src/linux-2.6.21-gentoo-r4 » make: *** [all] Erreur 2
It looks to me you built your kernel using gcc-4.1.2 and now you try to compile the hsf modules using a different gcc version.
(In reply to comment #8) > It looks to me you built your kernel using gcc-4.1.2 and now you try to compile > the hsf modules using a different gcc version. > Thanks for your answer. Just a precision. Other things equal including loading the 2.6.20 .config for 2.6.21, that is what is apparently attempting the hsfmodem-7.60.00.09 hsfconfig script under 2.6.21-gentoo-r4, but not under 2.6.20-gentoo-r8 (it is working fine).
hsfconfig is attempting to use the config of the running kernel, but it can be made to take the right config into account. Please do the following: - import the old config into kernel 2.6.21 and run make oldconfig - run make bzImage modules modules_install install - boot using the new kernel - run hsfconfig Did it worked for you?
(In reply to comment #10) > hsfconfig is attempting to use the config of the running kernel, but it can be > made to take the right config into account. > > Please do the following: > - import the old config into kernel 2.6.21 and run make oldconfig > - run make bzImage modules modules_install install > - boot using the new kernel > - run hsfconfig > > Did it worked for you? > It didn't (after answering no to any new thing).
I had the same bug about gcc 4.1.2 and so. Here is how I solved it: # export LANG=C # export LC_ALL=C # export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2 # hsfconfig I think the problem is something very, VERY stupid. The hsfconfig script seems to compare /proc/version and gcc -v for the gcc version. But I was using colorgcc, so the output of gcc -v was all in red. Maybe it added some strange characters ( \033[1;31m and so on...) which made the script go nuts, I just don't know... But it worked after I set my locale so C and removes colorgcc from PATH. Hope it helps...
(In reply to comment #12) > I had the same bug about gcc 4.1.2 and so. Here is how I solved it: > > # export LANG=C > # export LC_ALL=C > # export > PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2 > # hsfconfig > > I think the problem is something very, VERY stupid. The hsfconfig script seems > to compare /proc/version and gcc -v for the gcc version. But I was using > colorgcc, so the output of gcc -v was all in red. Maybe it added some strange > characters ( \033[1;31m and so on...) which made the script go nuts, I just > don't know... But it worked after I set my locale so C and removes colorgcc > from PATH. > > Hope it helps... > Yes, it helps. For me, what was necessary was: # export LC_ALL=C # hsfconfig -k I tried LANG=C but it didn't work. Running "env" in a fresh console before above commands gives: LC_ALL=fr_FR.UTF-8 Thanks, Thomas. Next step might be to patch the hsfmodem scripts. My first attempts did fail...
My next attempt patching hsfconfig, successful for me: --- /usr/sbin/hsfconfig.old 2007-08-28 15:04:37.000000000 +0200 +++ /usr/sbin/hsfconfig 2007-08-28 15:07:43.000000000 +0200 @@ -2635,7 +2635,7 @@ exit $? fi -unset LANG +LC_ALL=C umask 022
please try with: -unset LANG +unset LANG LC_ALL
(In reply to comment #15) > please try with: > > -unset LANG > +unset LANG LC_ALL > Successful.
Fixed in hsfmodem-7.60.00.09-r1, hcfpcimodem-1.13-r1 and hcfusbmodem-1.11-r1. Thanks!