This might be due to a non-gnu linker (ld).. do like me, and be safe and
run the configure script with --disable-shared This disabled shared
libraries and links everything statically. I do this for building sane on
SCO :)
By the way, David, I can't seem to get sane v0.66 compiled on SCO. Albeit
I haven't tried to correct the errors I'm getting, but they are actual
'error' notices when building sane.. in the Microtek and Umax backends.
I'm using SCO OpenServer 5.0.2 (FreeSCO) with the C compilter that came
with SCO, not gcc, and the latest gnu make.
The 'warning' notices can be ignored. Here is what I get..
-----snip here-----
making all in backend
make[1]: Entering directory `/tmp/sane-0.66/backend'
cc -c -g -belf -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d -DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=0 -DV_MINOR=66 -DBACKEND_NAME=microtek -DLIBDIR=/usr/local/lib microtek.c
"../include/sane/sane.h", line 140: warning: typedef already qualified with "const"
"microtek.c", line 144: warning: typedef already qualified with "const"
"microtek.c", line 209: warning: statement not reached
"microtek.c", line 323: error: assignment type mismatch
"microtek.c", line 388: error: assignment type mismatch
"microtek.c", line 389: error: assignment type mismatch
"microtek.c", line 392: error: assignment type mismatch
"microtek.c", line 393: error: assignment type mismatch
"microtek.c", line 396: error: assignment type mismatch
"microtek.c", line 397: error: assignment type mismatch
"microtek.c", line 400: error: assignment type mismatch
"microtek.c", line 401: error: assignment type mismatch
"microtek.c", line 404: error: assignment type mismatch
"microtek.c", line 405: error: assignment type mismatch
"microtek.c", line 408: error: assignment type mismatch
"microtek.c", line 409: error: assignment type mismatch
"microtek.c", line 412: error: assignment type mismatch
"microtek.c", line 413: error: assignment type mismatch
"microtek.c", line 416: error: assignment type mismatch
"microtek.c", line 417: error: assignment type mismatch
"microtek.c", line 420: error: assignment type mismatch
"microtek.c", line 421: error: assignment type mismatch
"microtek.c", line 444: error: assignment type mismatch
"microtek.c", line 455: error: assignment type mismatch
"microtek.c", line 466: error: assignment type mismatch
"microtek.c", line 476: error: assignment type mismatch
"microtek.c", line 494: error: assignment type mismatch
"microtek.c", line 529: error: assignment type mismatch
"microtek.c", line 541: error: assignment type mismatch
"microtek.c", line 553: error: assignment type mismatch
"microtek.c", line 564: error: assignment type mismatch
"microtek.c", line 593: warning: argument is incompatible with prototype: arg #2
"microtek.c", line 594: warning: argument is incompatible with prototype: arg #2
"microtek.c", line 595: warning: argument is incompatible with prototype: arg #2
"microtek.c", line 854: warning: argument is incompatible with prototype: arg #2
"microtek.c", line 855: warning: argument is incompatible with prototype: arg #2
"microtek.c", line 886: warning: argument is incompatible with prototype: arg #2
"microtek.c", line 887: warning: argument is incompatible with prototype: arg #2
"microtek.c", line 1970: error: Syntax error before or at: }
"microtek.c", line 2005: error: Syntax error before or at: else
make[1]: *** [microtek.lo] Error 1
cc -c -g -belf -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d -DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=0 -DV_MINOR=66 -DBACKEND_NAME=umax -DLIBDIR=/usr/local/lib umax.c
"../include/sane/sane.h", line 140: warning: typedef already qualified with "const"
"./umax-scsidef.h", line 138: warning: initialization type mismatch
"./umax-scsidef.h", line 380: warning: initialization type mismatch
"./umax-scsidef.h", line 388: warning: initialization type mismatch
"./umax-scsidef.h", line 396: warning: initialization type mismatch
"./umax-scsidef.h", line 408: warning: initialization type mismatch
"./umax-scsidef.h", line 422: warning: initialization type mismatch
"./umax-scsidef.h", line 628: warning: initialization type mismatch
"./umax-scsidef.h", line 647: warning: initialization type mismatch
"./umax-scsidef.h", line 666: warning: initialization type mismatch
"./umax-scsidef.h", line 683: warning: initialization type mismatch
"./umax-scsidef.h", line 724: warning: initialization type mismatch
"./umax-scsidef.h", line 733: warning: initialization type mismatch
"./umax-scsidef.h", line 747: warning: initialization type mismatch
"./umax-scsidef.h", line 789: warning: initialization type mismatch
"./umax-uc630.h", line 191: warning: initialization type mismatch
"./umax-uc840.h", line 191: warning: initialization type mismatch
"./umax-ug630.h", line 191: warning: initialization type mismatch
"./umax-scsi.c", line 173: warning: argument is incompatible with prototype: arg #1
"./umax-scsi.c", line 176: warning: argument is incompatible with prototype: arg #4
"./umax-scsi.c", line 195: warning: argument is incompatible with prototype: arg #4
"./umax-scsi.c", line 410: warning: assignment type mismatch
"./umax-scsi.c", line 413: warning: argument is incompatible with prototype: arg #1
"./umax-scsi.c", line 415: warning: argument is incompatible with prototype: arg #1
"./umax-scsi.c", line 418: warning: argument is incompatible with prototype: arg #1
"./umax-scsi.c", line 420: warning: argument is incompatible with prototype: arg #1
"./umax-scsi.c", line 425: warning: assignment type mismatch
"./umax-scsi.c", line 437: warning: argument is incompatible with prototype: arg #2
"./umax-scsi.c", line 456: warning: assignment type mismatch
"./umax-scsi.c", line 459: warning: argument is incompatible with prototype: arg #2
"./umax-scsi.c", line 782: warning: argument is incompatible with prototype: arg #2
"./umax-scsi.c", line 804: warning: argument is incompatible with prototype: arg #1
"./umax-scsi.c", line 805: warning: argument is incompatible with prototype: arg #1
"./umax-scsi.c", line 806: warning: argument is incompatible with prototype: arg #1
"./umax-scsi.c", line 811: warning: argument is incompatible with prototype: arg #1
"./umax-scsi.c", line 843: warning: argument is incompatible with prototype: arg #1
"./umax-scsi.c", line 845: warning: argument is incompatible with prototype: arg #4
"./umax-scsi.c", line 865: warning: argument is incompatible with prototype: arg #4
"./umax-scsi.c", line 871: warning: argument is incompatible with prototype: arg #4
"./umax-scsi.c", line 896: warning: argument is incompatible with prototype: arg #2
"./umax-scsi.c", line 897: warning: argument is incompatible with prototype: arg #2
"./umax-scsi.c", line 898: warning: argument is incompatible with prototype: arg #2
"./umax-scsi.c", line 1538: warning: assignment type mismatch
"./umax-scsi.c", line 1540: warning: argument is incompatible with prototype: arg #1
"./umax-scsi.c", line 1552: warning: argument is incompatible with prototype: arg #1
"./umax-scsi.c", line 1553: warning: argument is incompatible with prototype: arg #1
"./umax-scsi.c", line 1554: warning: argument is incompatible with prototype: arg #1
"./umax-scsi.c", line 1555: warning: argument is incompatible with prototype: arg #1
"./umax-scsi.c", line 1556: warning: argument is incompatible with prototype: arg #1
"./umax-scsi.c", line 1557: warning: argument is incompatible with prototype: arg #1
"./umax-scsi.c", line 1562: warning: argument is incompatible with prototype: arg #1
"./umax-scsi.c", line 1563: warning: argument is incompatible with prototype: arg #1
"./umax-scsi.c", line 1565: warning: argument is incompatible with prototype: arg #1
"./umax-scsi.c", line 1566: warning: argument is incompatible with prototype: arg #1
"./umax-scsi.c", line 1567: warning: argument is incompatible with prototype: arg #1
"./umax-scsi.c", line 1568: warning: argument is incompatible with prototype: arg #1
"./umax-scsi.c", line 1569: warning: argument is incompatible with prototype: arg #1
"./umax-scsi.c", line 1570: warning: argument is incompatible with prototype: arg #1
"./umax-scsi.c", line 1572: warning: argument is incompatible with prototype: arg #1
"./umax-scsi.c", line 1575: warning: argument is incompatible with prototype: arg #1
"./umax-scsi.c", line 1618: warning: argument is incompatible with prototype: arg #1
"./umax-scsi.c", line 1619: warning: argument is incompatible with prototype: arg #1
"./umax-scsi.c", line 1620: warning: argument is incompatible with prototype: arg #1
"./umax-scsi.c", line 1621: warning: argument is incompatible with prototype: arg #1
"./umax-scsi.c", line 1622: warning: argument is incompatible with prototype: arg #1
"./umax-scsi.c", line 1623: warning: argument is incompatible with prototype: arg #1
"./umax-scsi.c", line 1624: warning: argument is incompatible with prototype: arg #1
"./umax-scsi.c", line 1645: warning: argument is incompatible with prototype: arg #1
"./umax-scsi.c", line 1647: warning: argument is incompatible with prototype: arg #1
"./umax-scsi.c", line 1650: warning: argument is incompatible with prototype: arg #1
"./umax-scsi.c", line 1652: warning: argument is incompatible with prototype: arg #1
"./umax-scsi.c", line 1655: warning: argument is incompatible with prototype: arg #1
"./umax-scsi.c", line 1657: warning: argument is incompatible with prototype: arg #1
"./umax-scsi.c", line 1662: warning: argument is incompatible with prototype: arg #1
"umax.c", line 176: warning: typedef already qualified with "const"
"umax.c", line 251: warning: typedef already qualified with "const"
"umax.c", line 2010: error: integral constant expression expected
"umax.c", line 2033: error: integral constant expression expected
"umax.c", line 2055: error: integral constant expression expected
make[1]: *** [umax.lo] Error 1
make[1]: Target `all' not remade because of errors.
make[1]: Leaving directory `/tmp/sane-0.66/backend'
-----snip there-----
Is this because the source code is not so 'friendly' to non-gnu compilers?
If so, how can it be corrected?
Billy
-- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com