Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 49709 - sane-backends-1.0.13-r3 emerge fails with gcc 3.4.0 (patch included)
Summary: sane-backends-1.0.13-r3 emerge fails with gcc 3.4.0 (patch included)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 48528
  Show dependency tree
 
Reported: 2004-05-02 08:06 UTC by Pedro Schwaller
Modified: 2005-03-25 19:34 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Above patch, more easy to download (sane-backends-1.0.13-gcc34.patch,726 bytes, patch)
2004-05-02 08:07 UTC, Pedro Schwaller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pedro Schwaller 2004-05-02 08:06:00 UTC
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);
Comment 1 Pedro Schwaller 2004-05-02 08:07:52 UTC
Created attachment 30517 [details, diff]
Above patch, more easy to download
Comment 2 Mark Loeser (RETIRED) gentoo-dev 2005-03-25 19:34:58 UTC
sane-backends-1.0.15 is in portage, which compiles with gcc 3.4