Codeman655 / osxwinebuilder

Automatically exported from code.google.com/p/osxwinebuilder
GNU Lesser General Public License v2.1
0 stars 0 forks source link

building failed with sanei_pio.c of sane-backends-1.0.22 with MAC OS 10.7.2 #30

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. using the i686-apple-darwin11-llvm-gcc-4.2
2. have fixed the problem of GetText patch
3. ...

What is the expected output? What do you see instead?
Library/Frameworks/ -Udarwin11 -Ddarwin11=darwin11 -I. -I/usr/local/include 
-I/Users/marshall/wine/wine-1.3.34/include/libusb-1.0 -MT sanei_thread.lo -MD 
-MP -MF .deps/sanei_thread.Tpo -c sanei_thread.c  -fno-common -DPIC -o 
.libs/sanei_thread.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'
make[1]: *** [sanei_pio.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
sanei_usb.c: In function 'kernel_get_vendor_product':
sanei_usb.c:248: warning: unused parameter 'fd'
sanei_usb.c:248: warning: unused parameter 'name'
sanei_usb.c:248: warning: unused parameter 'vendorID'
sanei_usb.c:248: warning: unused parameter 'productID'
sanei_usb.c: In function 'sanei_usb_write_bulk':
sanei_usb.c:2336: warning: passing argument 3 of 'libusb_bulk_transfer' 
discards qualifiers from pointer target type
mv -f .deps/sanei_thread.Tpo .deps/sanei_thread.Plo
mv -f .deps/sanei_usb.Tpo .deps/sanei_usb.Plo
make: *** [all-recursive] Error 1
could not run 'make -j3' in /Users/marshall/wine/build/sane-backends-1.0.22 - 
exiting

What version of the product are you using? On what operating system?
On Mac OS lion 10.7.2

Please provide any additional information below.

Original issue reported on code.google.com by Marshall...@gmail.com on 14 Dec 2011 at 5:18

GoogleCodeExporter commented 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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
To CSchmidt: Have you been able to fix it?

Original comment by ironcurt...@gmail.com on 19 May 2012 at 7:22

GoogleCodeExporter commented 9 years ago
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:

GoogleCodeExporter commented 9 years ago
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