Emerging sane-backends-1.0.13-r3 failed using gcc 3.4.0. Same was for sane-backends-1.0.13-r2 Reproducible: Always Steps to Reproduce: 1. emerge sane-backends 2. 3. Actual Results: gcc -c -march=pentium4 -O2 -pipe -fomit-frame-pointer -W -Wall -DHAVE_CONFIG_H -I. -I. -I../include -I../include -DPATH_SANE_CONFIG_DIR=/etc/sane.d -DPATH_SANE_DATA_DIR=/usr/share -DV_MAJOR=1 -DV_MINOR=0 -DBACKEND_NAME=sm3600 -DLIBDIR=/usr/lib/sane sm3600.c -fPIC -DPIC -o .libs/sm3600.o In file included from sm3600.c:97: sm3600-scanmtek.c:68: error: conflicting types for 'GetScannerModel' sm3600.h:279: error: previous declaration of 'GetScannerModel' was here sm3600-scanmtek.c:68: error: conflicting types for 'GetScannerModel' sm3600.h:279: error: previous declaration of 'GetScannerModel' was here sm3600.h:279: warning: 'GetScannerModel' declared `static' but never defined make[1]: *** [sm3600.lo] Error 1 make[1]: Leaving directory `/var/tmp/portage/sane-backends-1.0. 13-r3/work/sane-backends-1.0.13/backend' make: *** [all-recursive] Error 1 !!! ERROR: media-gfx/sane-backends-1.0.13-r3 failed. !!! Function src_compile, Line 49, Exitcode 2 !!! (no error message) Someone on the forums told me that is was a very little problem and pointed out how I could fix it. I tried it and it works. The following patch fixed the problem for me: diff -u -r sane-backends-1.0.13/backend/sm3600.h sane-backends. new/backend/sm3600.h --- sane-backends-1.0.13/backend/sm3600.h 2003-09-12 16:18:58.000000000 +0200 +++ sane-backends.new/backend/sm3600.h 2004-05-02 16:30:19.429232120 +0200 @@ -276,7 +276,7 @@ __SM3600EXPORT__ TState DoReset(TInstance *this); __SM3600EXPORT__ TState WaitWhileBusy(TInstance *this,int cSecs); __SM3600EXPORT__ TState WaitWhileScanning(TInstance *this,int cSecs); -__SM3600EXPORT__ TState GetScannerModel(unsigned short idVendor, unsigned short idProduct); +__SM3600EXPORT__ TModel GetScannerModel(unsigned short idVendor, unsigned short idProduct); #ifdef INSANE_VERSION __SM3600EXPORT__ TState DoLampSwitch(TInstance *this,int nPattern);
Created attachment 30517 [details, diff] Above patch, more easy to download
sane-backends-1.0.15 is in portage, which compiles with gcc 3.4