You are not logged in.
I'm trying to compile super old software:http://px-backend.sourceforge.net/ to support my dinosaur age hardware - Primax Colorado Direct9600 LPT scanner
The code compiles but error appears while linking
make all-am
make[1]: Entering directory '~/primaxscan-1.1.beta1'
/bin/sh ./libtool --mode=link gcc -g -O2 -fPIC -o primax_scan primax_scan.o libprimax.la -ltiff -lm -lieee1284
gcc -g -O2 -fPIC -o primax_scan primax_scan.o ./.libs/libprimax.a -ltiff -lm -lieee1284
./.libs/libprimax.a(libprimax.o): In function `power_sequence':
~/primaxscan-1.1.beta1/libprimax.c:143: undefined reference to `init_timer'
~/primaxscan-1.1.beta1/libprimax.c:146: undefined reference to `check_timer'
~/primaxscan-1.1.beta1/libprimax.c:134: undefined reference to `init_timer'
~/primaxscan-1.1.beta1/libprimax.c:137: undefined reference to `check_timer'
./.libs/libprimax.a(libprimax.o): In function `wait_for_carriage':
~/primaxscan-1.1.beta1/libprimax.c:162: undefined reference to `init_timer'
~/primaxscan-1.1.beta1/libprimax.c:166: undefined reference to `check_timer'
~/primaxscan-1.1.beta1/libprimax.c:164: undefined reference to `scan_delay'
./.libs/libprimax.a(libprimax.o): In function `move_carrige_forward':
~/primaxscan-1.1.beta1/libprimax.c:433: undefined reference to `init_timer'
~/primaxscan-1.1.beta1/libprimax.c:436: undefined reference to `check_timer'
./.libs/libprimax.a(libprimax.o): In function `move_carrige_backward':
~/primaxscan-1.1.beta1/libprimax.c:509: undefined reference to `init_timer'
~/primaxscan-1.1.beta1/libprimax.c:512: undefined reference to `check_timer'
collect2: error: ld returned 1 exit status
Makefile:337: recipe for target 'primax_scan' failed
make[1]: *** [primax_scan] Error 1
make[1]: Leaving directory '~/primaxscan-1.1.beta1'
Makefile:225: recipe for target 'all' failed
make: *** [all] Error 2
As far as I can see it's some IO-APIC code or maybe I'm wrong?
Have any one an idea how to get it working?
Offline
Hi,
For the record, I have fixed this build issue in Mageia with the following patch:
http://svnweb.mageia.org/packages/cauld … iew=markup
The build issue occurs because of the new inline semantics in GCC 5, see https://gcc.gnu.org/gcc-5/porting_to.html
Offline