9

I am trying to install drivers for fax modem, and I have tried different ways to do it, but each way leads me to an error which says:

fatal error: asm/system.h: No such file or directory

Is there some way to solve this?

EDIT: On a CD which came with my drivers, there is v.1.0 version of dgcmodem driver (http://www.linuxant.com/drivers/dgc/downloads.php), and I tried to install that version and also the newest version (found in mentioned link), and I got that error. Also I tried to install hsfmodem drivers (http://www.linuxant.com/drivers/hsf/oem/downloads.php), and I got the same error.

xpg94
  • 191

3 Answers3

9

This file was removed in Linux 3.4, commit f05e798ad4c0; its contents have been moved into various other headers.

It's possible that just removing the #include <asm/system.h> might work, but it's much more likely that your driver is simply incompatible with current Linux versions.

grawity
  • 501,077
2

As a matter of fact, there seems to be a patch for your driver. You will find it discussed in this Ubuntu Forum post. Mind you, the discussion is 6 pages long... at some point a guy called linktopower provides a patch that allows compilation. The patch is provided through a file, uploaded to the net several times as the guy shuffles providers. The last link is provided at page 6, and it is still active.

The patch allows compilation against the kernel in Ubuntu 12.04, so most likely it would be a 3.2 kernel. You may try going down this road.

MariusMatutiae
  • 48,517
  • 12
  • 86
  • 136
0

Go to ...arch/{x86,arm64,etc}/include/asm/system{_misc,_types}.h

It'll depened upon architecture you're building for and also system.h may've been split into system_misc.h and system_types.h

Then, replace <asm/system.h> in the faulty .c for "full/path/to/your/newly/found/asm/system_misc.h"

Rutcha
  • 101