Closed GoogleCodeExporter closed 9 years ago
I am getting the same error when I attempt to compile Wine as well. Bellow is
my log.
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include/sane
-I/usr/local/include -I. -I. -I../include -I../include
-I/Users/chosenken/wine/wine-1.3.37/include -I/usr/X11/include -D_REENTRANT
-DPATH_SANE_CONFIG_DIR=/Users/chosenken/wine/wine-1.3.37/etc/sane.d
-DPATH_SANE_DATA_DIR=/Users/chosenken/wine/wine-1.3.37/share
-DPATH_SANE_LOCK_DIR=/Users/chosenken/wine/wine-1.3.37/var/lock/sane
-DV_MAJOR=1 -DV_MINOR=0 -g -O2 -arch i386 -m32 -mmmx -msse -msse2 -msse3
-mfpmath=sse -I/Users/chosenken/wine/wine-1.3.37/include -I/usr/X11/include -W
-Wall -DNETSNMP_ENABLE_IPV6 -g -Os -pipe -DBUILD=132
-DMACOSX_DEPLOYMENT_TARGET=10.7 -F/System/Library/PrivateFrameworks/
-F/System/Library/Frameworks/ -Udarwin11 -Ddarwin11=darwin11 -I.
-I/usr/local/include -I/Users/chosenken/wine/wine-1.3.37/include/libusb-1.0 -MT
sanei_pio.lo -MD -MP -MF .deps/sanei_pio.Tpo -c sanei_pio.c -fno-common -DPIC
-o .libs/sanei_pio.o
sanei_pio.c:70: error: expected ')' before 'value'
sanei_pio.c:76: error: expected '=', ',', ';', 'asm' or '__attribute__' before
'inb'
sanei_pio.c: In function 'sanei_pio_open':
sanei_pio.c:577: warning: unused parameter 'dev'
sanei_pio.c: In function 'sanei_pio_close':
sanei_pio.c:585: warning: unused parameter 'fd'
sanei_pio.c: In function 'sanei_pio_read':
sanei_pio.c:591: warning: unused parameter 'fd'
sanei_pio.c:591: warning: unused parameter 'buf'
sanei_pio.c:591: warning: unused parameter 'n'
sanei_pio.c: In function 'sanei_pio_write':
sanei_pio.c:597: warning: unused parameter 'fd'
sanei_pio.c:597: warning: unused parameter 'buf'
sanei_pio.c:597: warning: unused parameter 'n'
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include/sane
-I/usr/local/include -I. -I. -I../include -I../include
-I/Users/chosenken/wine/wine-1.3.37/include -I/usr/X11/include -D_REENTRANT
-DPATH_SANE_CONFIG_DIR=/Users/chosenken/wine/wine-1.3.37/etc/sane.d
-DPATH_SANE_DATA_DIR=/Users/chosenken/wine/wine-1.3.37/share
-DPATH_SANE_LOCK_DIR=/Users/chosenken/wine/wine-1.3.37/var/lock/sane
-DV_MAJOR=1 -DV_MINOR=0 -g -O2 -arch i386 -m32 -mmmx -msse -msse2 -msse3
-mfpmath=sse -I/Users/chosenken/wine/wine-1.3.37/include -I/usr/X11/include -W
-Wall -DNETSNMP_ENABLE_IPV6 -g -Os -pipe -DBUILD=132
-DMACOSX_DEPLOYMENT_TARGET=10.7 -F/System/Library/PrivateFrameworks/
-F/System/Library/Frameworks/ -Udarwin11 -Ddarwin11=darwin11 -I.
-I/usr/local/include -I/Users/chosenken/wine/wine-1.3.37/include/libusb-1.0 -MT
sanei_pa4s2.lo -MD -MP -MF .deps/sanei_pa4s2.Tpo -c sanei_pa4s2.c -fno-common
-DPIC -o .libs/sanei_pa4s2.o
make[1]: *** [sanei_pio.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
mv -f .deps/sanei_scsi.Tpo .deps/sanei_scsi.Plo
mv -f .deps/sanei_pa4s2.Tpo .deps/sanei_pa4s2.Plo
make: *** [all-recursive] Error 1
could not run 'make -j3' in /Users/chosenken/wine/build/sane-backends-1.0.22 -
exiting
On Mac OS X 10.7.2, XCode 4.2.1 Build 4D502. I didn't use the fix for gettext,
I made the fix my self to the code and script so it wouldn't over write the
code.
Original comment by Chosen...@gmail.com
on 16 Jan 2012 at 12:00
Encountering the same issue: in essence, u_char, u_short, u_long are not
properly defined in several files in sane-backend. After fixing sane_pio.c,
same error occurs in canon630u-common.c, genesys_gl646.c etc.
Original comment by cschmidt...@gmail.com
on 31 Jan 2012 at 11:52
To CSchmidt: Have you been able to fix it?
Original comment by ironcurt...@gmail.com
on 19 May 2012 at 7:22
homebrew have a fix:
https://github.com/mxcl/homebrew/pull/9166/files#diff-2
The attached patch adds the missing include, and the sane-backend builds for me
on Lion ... but later fails in SDL (other issue)
Original comment by msper...@gmail.com
on 30 May 2012 at 2:32
Attachments:
SANE backends and SDL were both updated with fixes this week, and a number of
Lion enhancements were put in place. Please pull down the new script via SVN
and let me know if you have any further problems. -r
Original comment by rwoodsm...@gmail.com
on 2 Jun 2012 at 6:18
Original issue reported on code.google.com by
Marshall...@gmail.com
on 14 Dec 2011 at 5:18