[hcflinux] Debian sarge/sid hcfpci install. Self-inflicted wounds. Ow.

Steve Laverty hcflinux_list at steve.nu
Sat Aug 14 13:07:46 EDT 2004

It would seem that the version of ld you have does not support the 
switch --as-needed.  I don't know what the setup is in testing or 
unstable but if its anything like stable you may have a newer version 
installed already, or you could install one easily.  At least in stable 
you start with the version 2.95 of the compiler tools, named gcc-2.95, 
etc  and if you install the version 3 tools you get gcc-3.0, etc  the 
problem is all of the make files you use will just call gcc, etc and 
there are soft links in /usr/bin that point gcc to gcc-2.95, etc so the 
softlinks need to be redirected to use later compiler versions.  So I 
would guess either that is your problem or your strange configuration 
caused the configure script to beleive that it could use the --as-needed 
option on your system when in fact it cannot.  I do know that older 
versions of ld do not support --as-needed and that newer versions do, so 
if the above doesn't bring any sucess for you then perhaps just 
installing a newer version of ld temporarily or permanently could be 
your answer.


Larry McCarthy wrote:

>I trudged through the archives, but didn't see this - please refer me if I
>missed it. But probably hardly anybody else is this stoopid. :\
>With Debian mixed testing/unstable, custom 2.6.3 kernel...
>A while back, I installed the (licensed) hcfpcimodem on my Debian mixed
>testing/unstable system (Athlon XP 2400). Got Hylafax working and everything.
>(Hylafax was a pus-filled PITA to get working, but the driver was fine, thanks
>:). Then, I had to build another custom kernel (2.6.3) for Win4Lin. Of course,
>the modem stopped working, but I didn't need it, so never quite got back to it.
>Today, I needed to send a fax, so decided to try and get hcfpci working again.
>First, I tried to re-install the driver (# dpkg -i), but that failed. Then, I
>lost the error message from that failed install. D'Oh! But I suspected the
>problem was the half-installed state the driver was in. OK, so I dpkg -r'ed it.
>That seemed to work; at least it didn't give any errors.
>Then, I:
># dpkg -i hcfpcimodem_1.00lnxt04011900full_i386.deb
>it says:
>Setting up hcfpcimodem (1.00lnxt04011900full) ...
>Conexant HCF controllerless PCI modem driver, version 1.00lnxt04011900full
>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 "hcfpciconfig --dumpdiag".
>No pre-built modules for: Debian-3.1 linux-2.6.3.w4l040310 i686
>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?
>WARNING: the kernel version (2.6.3) defined in
>does not match the currently running kernel (2.6.3.w4l040310)
>The cause of this problem is an incorrect kernel source path.
>Please check that /lib/modules/2.6.3.w4l040310/build points to the right tree.
>The cause of this problem is usually a missing or misconfigured
>kernel source tree (and sometimes an incorrect directory or symbolic link).
>Building modules for kernel 2.6.3, using source directory
>/lib/modules/2.6.3.w4l040310/build. Please wait...
>ERROR: Module build failed!
>Please examine the log file "/tmp/hcfpciconfig-buildlog.txt" to determine why.
>dpkg: error processing hcfpcimodem (--configure):
> subprocess post-installation script returned error exit status 1
>/tmp/hcfpciconfig-buildlog.txt says:
>rm -f *.o GPL/*.o *.ko GPL/*.ko *.mod.c GPL/*.mod.c .*.cmd GPL/.*.cmd 
>(cd /lib/modules/2.6.3.w4l040310/build && make
>"SUBDIRS+=/usr/lib/hcfpcimodem/modules" "SUBDIRS+=/usr/lib/hcfpcimodem/modules"
>make[1]: Entering directory `/usr/src/kernel-source-2.6.3'
>Makefile:558: target `/usr/lib/hcfpcimodem/modules' given more than once in the
>same rule.
>  HOSTCC  scripts/fixdep
>/usr/bin/ld: unrecognized option '--as-needed'
>/usr/bin/ld: use the --help option for usage information
>collect2: ld returned 1 exit status
>make[2]: *** [scripts/fixdep] Error 1
>make[1]: *** [scripts] Error 2
>make[1]: Leaving directory `/usr/src/kernel-source-2.6.3'
>make: *** [all] Error 2
>I'm afraid I'm a bit of a noob... Any suggestions?
>%(real_name)s mailing list

More information about the hcflinux mailing list