Poster | Thread |
gerograph
| |
brother scanner driver (brscan) / possible to compile for ppc ? [UNSOLVED] Posted on 4-Sep-2009 20:21:33
| | [ #1 ] |
|
|
|
Cult Member |
Joined: 5-Dec-2007 Posts: 901
From: Moers - Germany | | |
|
| Hello,
I need a short info from anybody of the Linuxexperts here, maybe Geri can tell...
I have got a MFC 9450CDN (compatible to 9840CDW) all in one printer from brother. Before I purchased brother confirmed via mail and phone that scannerdrivers (called brscan2) work on debian (lenny) ppc, but it does not !
I downloaded here: solutions.brother.com
If I start installing like described here with "sudo dpkg -i brscan2-0.2.4-......deb"
I get a mistake saying "wrong architecture..."
So I guess drivers are not suitable for ppc.
Is there any chance to make it run on ppc, sources are (partwise, as far as I understood) here
Any Ideas ? Last edited by gerograph on 12-Sep-2009 at 12:01 PM.
_________________ Geomarketing at www.geobiz.de www.gebietsplanung.net www.geomarketing-consultant.de |
|
Status: Offline |
|
|
Geri
| |
Re: brother scanner driver (brscan) / possible to compile for ppc ? Posted on 4-Sep-2009 23:18:25
| | [ #2 ] |
|
|
|
Elite Member |
Joined: 7-Oct-2003 Posts: 2038
From: ST/AT | | |
|
| @gerograph
The Debian packages are only for the i386 architecture.
I can try to compile it, but I can't even find a README in the archive. Maybe checkinstall can create a Debian package!? _________________ A1SE: G3@600MHz, 2GB, 1GBit network card A1XE: G4@933MHz, 2GB, refitted AC'97 codec microA1: G3@800MHz, 1GB
- A1 Linux support - |
|
Status: Offline |
|
|
gerograph
| |
Re: brother scanner driver (brscan) / possible to compile for ppc ? Posted on 5-Sep-2009 7:46:20
| | [ #3 ] |
|
|
|
Cult Member |
Joined: 5-Dec-2007 Posts: 901
From: Moers - Germany | | |
|
| @Geri What exactly is checkinstall ? I will google on that one later.. A recompile would be great...
Thanx
O.K. just googled Checkinstall, and did a bit of reading on that. Correct me if I am wrong:
Checkinstall only builds a deinstallable package, which is usable with e.g. Synaptic packetmanager on my Debina lenny SAMBox. But as far as I read, there is no option to convert the given 386 packaget to a powerpc package, right ? However I checked on my SAM and I can install "Checkinstall" via Synaptic. But what should happen then ? Always remember I do hardly no anything about Linux...
Last edited by gerograph on 05-Sep-2009 at 01:36 PM.
_________________ Geomarketing at www.geobiz.de www.gebietsplanung.net www.geomarketing-consultant.de |
|
Status: Offline |
|
|
Geri
| |
Re: brother scanner driver (brscan) / possible to compile for ppc ? Posted on 5-Sep-2009 23:09:48
| | [ #4 ] |
|
|
|
Elite Member |
Joined: 7-Oct-2003 Posts: 2038
From: ST/AT | | |
|
| @gerograph
No, it's not possible to convert a i386 package to a powerpc package. AFAIK checkinstall just watches the execution of a makefile and thus can create a Debian package with some simple install/remove scripts.
I tried to compile the source code under Debian Lenny, but it fails with a linker error. Not sure what the problem is (I'm no GCC expert), but I guess all the include paths are not adapted for Debian. _________________ A1SE: G3@600MHz, 2GB, 1GBit network card A1XE: G4@933MHz, 2GB, refitted AC'97 codec microA1: G3@800MHz, 1GB
- A1 Linux support - |
|
Status: Offline |
|
|
NutsAboutAmiga
| |
Re: brother scanner driver (brscan) / possible to compile for ppc ? Posted on 6-Sep-2009 3:45:10
| | [ #5 ] |
|
|
|
Elite Member |
Joined: 9-Jun-2004 Posts: 12825
From: Norway | | |
|
| |
Status: Offline |
|
|
gerograph
| |
Re: brother scanner driver (brscan) / possible to compile for ppc ? Posted on 6-Sep-2009 8:55:15
| | [ #6 ] |
|
|
|
Cult Member |
Joined: 5-Dec-2007 Posts: 901
From: Moers - Germany | | |
|
| @Geri Thanx for trying,... so it seems unless there is a PPC Sane Driver (brscan2 PPC) I will have no chance ! Right ? How high is the chance that a Linux/GCC Expert (maybe paid) can deliver a PPC Version from what we have ?
@NutsAboutAmiga Thanx for the link, I checked it but I cannot see how this helps me. Yes you can download brscan2 driver, but there are also i386 Packages... maybe I missed out on something, because I am not an expert on Linux _________________ Geomarketing at www.geobiz.de www.gebietsplanung.net www.geomarketing-consultant.de |
|
Status: Offline |
|
|
NutsAboutAmiga
| |
Re: brother scanner driver (brscan) / possible to compile for ppc ? Posted on 6-Sep-2009 9:06:05
| | [ #7 ] |
|
|
|
Elite Member |
Joined: 9-Jun-2004 Posts: 12825
From: Norway | | |
|
| |
Status: Offline |
|
|
gerograph
| |
Re: brother scanner driver (brscan) / possible to compile for ppc ? Posted on 6-Sep-2009 9:31:50
| | [ #8 ] |
|
|
|
Cult Member |
Joined: 5-Dec-2007 Posts: 901
From: Moers - Germany | | |
|
| One more questions:
If using an Epson CX11 (maybe CX21), do you think it will be possible to use the scanner under Debian PPC on my SAM ? Sanedrivers seem to be there, if you look on www.sane-project.org. Are they available for PPC, or can they be converted to PPC ? I did not find any hints on that page regarding Debian PPC compatibility ? _________________ Geomarketing at www.geobiz.de www.gebietsplanung.net www.geomarketing-consultant.de |
|
Status: Offline |
|
|
gerograph
| |
Re: brother scanner driver (brscan) / possible to compile for ppc ? Posted on 6-Sep-2009 10:20:53
| | [ #9 ] |
|
|
|
Cult Member |
Joined: 5-Dec-2007 Posts: 901
From: Moers - Germany | | |
|
| |
Status: Offline |
|
|
NutsAboutAmiga
| |
Re: brother scanner driver (brscan) / possible to compile for ppc ? Posted on 6-Sep-2009 11:02:29
| | [ #10 ] |
|
|
|
Elite Member |
Joined: 9-Jun-2004 Posts: 12825
From: Norway | | |
|
| |
Status: Offline |
|
|
gerograph
| |
Re: brother scanner driver (brscan) / possible to compile for ppc ? Posted on 6-Sep-2009 11:13:25
| | [ #11 ] |
|
|
|
Cult Member |
Joined: 5-Dec-2007 Posts: 901
From: Moers - Germany | | |
|
| @NutsAboutAmiga
O.k. I'll give it a try, but what makes you think this version (seems to be an older version than the sourcecode I found see link above) works, if the one "Geri" already compiled doesn't ? Thanx for infos... I'll come back later _________________ Geomarketing at www.geobiz.de www.gebietsplanung.net www.geomarketing-consultant.de |
|
Status: Offline |
|
|
1Mouse
| |
Re: brother scanner driver (brscan) / possible to compile for ppc ? Posted on 6-Sep-2009 12:44:16
| | [ #12 ] |
|
|
|
Super Member |
Joined: 23-Jun-2005 Posts: 1356
From: Bradford, West Yorkshire | | |
|
| |
Status: Offline |
|
|
gerograph
| |
Re: brother scanner driver (brscan) / possible to compile for ppc ? Posted on 6-Sep-2009 13:20:20
| | [ #13 ] |
|
|
|
Cult Member |
Joined: 5-Dec-2007 Posts: 901
From: Moers - Germany | | |
|
| @1Mouse
Yes I know, I started that thread in order to get some presales infos, I doubt it wether wisemantrading got it working under Linux (scanning), but however I dropped him a PM anyway.
@NutsAboutAmiga
I tried to compile, but got this error message:
"no acceptable C Compiler found in $PATH"
so I installed gcc through synaptic, but still the same message. _________________ Geomarketing at www.geobiz.de www.gebietsplanung.net www.geomarketing-consultant.de |
|
Status: Offline |
|
|
NutsAboutAmiga
| |
Re: brother scanner driver (brscan) / possible to compile for ppc ? Posted on 6-Sep-2009 13:27:03
| | [ #14 ] |
|
|
|
Elite Member |
Joined: 9-Jun-2004 Posts: 12825
From: Norway | | |
|
| |
Status: Offline |
|
|
gerograph
| |
Re: brother scanner driver (brscan) / possible to compile for ppc ? Posted on 6-Sep-2009 14:48:04
| | [ #15 ] |
|
|
|
Cult Member |
Joined: 5-Dec-2007 Posts: 901
From: Moers - Germany | | |
|
| @NutsAboutAmiga
O.k. did that (in fact I installed build-essentials) and sh ./configure seemed to run fine. But if running thte make command I run into serious trouble:
Quote:
(cd backend_brscan && make brscan) make[1]: Entering directory `/root/brscan/backend_brscan' sh mk_backend release make libsane-brother make[2]: Entering directory `/root/brscan/backend_brscan' rm -f .libs/brother.lo gcc -c -g -O2 -W -Wall -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../libbrscandec -I../libbrcolm -D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d -DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -lpthread -DBRSANESUFFIX=1 -DBACKEND_NAME=brother -DLIBDIR=/usr/local/lib/sane brother.c -fPIC -DPIC -o .libs/brother.lo brother.c:40:17: error: usb.h: No such file or directory In file included from brother.c:68: brother.h:171: error: expected specifier-qualifier-list before 'usb_dev_handle' In file included from brother.c:68: brother.h:307:1: warning: "MAX_PATH" redefined In file included from brother.h:59, from brother.c:68: brother_dtype.h:48:1: warning: this is the location of the previous definition In file included from brother.c:87: brother_devaccs.c: In function 'OpenDevice': brother_devaccs.c:163: error: 'dev_handle' has no member named 'device' brother_devaccs.c:165: error: 'dev_handle' has no member named 'net_device_index' brother_devaccs.c:174: warning: implicit declaration of function 'usleep' brother_devaccs.c:175: error: 'dev_handle' has no member named 'net_device_index' brother_devaccs.c:182: error: 'dev_handle' has no member named 'net_device_index' brother_devaccs.c:198: error: 'dev_handle' has no member named 'usb_r_ep' brother_devaccs.c:229: warning: implicit declaration of function 'usb_control_msg' brother_devaccs.c:229: error: 'dev_handle' has no member named 'usb' brother_devaccs.c:340: error: 'dev_handle' has no member named 'device' brother_devaccs.c:348: warning: pointer targets in passing argument 2 of 'read_device_net' differ in signedness brother_devaccs.c:352: warning: implicit declaration of function 'usb_bulk_read' brother_devaccs.c:352: error: 'dev_handle' has no member named 'usb' brother_devaccs.c:372: warning: pointer targets in passing argument 2 of 'WriteDeviceData' differ in signedness brother_devaccs.c: In function 'CloseDevice': brother_devaccs.c:418: error: 'dev_handle' has no member named 'device' brother_devaccs.c:423: error: 'dev_handle' has no member named 'usb' brother_devaccs.c: In function 'ReadDeviceData': brother_devaccs.c:495: error: 'dev_handle' has no member named 'device' brother_devaccs.c:496: error: 'dev_handle' has no member named 'usb_r_ep' brother_devaccs.c:562: error: 'dev_handle' has no member named 'device' brother_devaccs.c:563: error: 'dev_handle' has no member named 'usb' brother_devaccs.c:576: warning: pointer targets in passing argument 2 of 'read_device_net' differ in signedness brother_devaccs.c: In function 'WriteDeviceData': brother_devaccs.c:853: error: 'dev_handle' has no member named 'device' brother_devaccs.c:861: warning: pointer targets in passing argument 2 of 'write_device_net' differ in signedness brother_devaccs.c:868: error: 'dev_handle' has no member named 'usb_w_ep' brother_devaccs.c:893: warning: implicit declaration of function 'usb_bulk_write' brother_devaccs.c:893: error: 'dev_handle' has no member named 'usb' brother_devaccs.c: In function 'WriteDeviceCommand': brother_devaccs.c:936: error: 'dev_handle' has no member named 'device' brother_devaccs.c:943: warning: pointer targets in passing argument 2 of 'write_device_net' differ in signedness brother_devaccs.c: In function 'usb_set_configuration_or_reset_toggle': brother_devaccs.c:1033: warning: implicit declaration of function 'usb_set_configuration' brother_devaccs.c:1033: error: 'dev_handle' has no member named 'usb' brother_devaccs.c:1035: error: 'dev_handle' has no member named 'usb_w_ep' brother_devaccs.c:1045: warning: implicit declaration of function 'usb_clear_halt' brother_devaccs.c:1045: error: 'dev_handle' has no member named 'usb' In file included from brother.c:87: brother_devaccs.c: In function 'ERRPRINT': brother_devaccs.c:1066: warning: unused parameter 'format' brother_devaccs.c: In function 'DBGPRINT': brother_devaccs.c:1067: warning: unused parameter 'format' brother_devaccs.c: In function 'get_semkey': brother_devaccs.c:1097: warning: comparison between signed and unsigned In file included from brother.c:88: brother_devinfo.c: In function 'QCommandProc': brother_devinfo.c:306: warning: pointer targets in passing argument 2 of 'WriteDeviceCommand' differ in signedness brother_devinfo.c:319: warning: pointer targets in passing argument 2 of 'ReadNonFixedData' differ in signedness brother_devinfo.c: In function 'QueryScanInfoProc': brother_devinfo.c:385: warning: pointer targets in passing argument 2 of 'WriteDeviceCommand' differ in signedness brother_devinfo.c:398: warning: pointer targets in passing argument 2 of 'ReadNonFixedData' differ in signedness In file included from brother.c:89: brother_mfccmd.c: In function 'SendCancelCommand': brother_mfccmd.c:82: warning: pointer targets in passing argument 2 of 'WriteDeviceCommand' differ in signedness In file included from brother.c:92: brother_scanner.c: In function 'ScanStart': brother_scanner.c:270: error: 'dev_handle' has no member named 'usb_w_ep' brother_scanner.c:272: error: 'dev_handle' has no member named 'usb_r_ep' brother_scanner.c:275: error: 'dev_handle' has no member named 'device' brother_scanner.c:276: error: 'dev_handle' has no member named 'usb' brother_scanner.c:276: warning: implicit declaration of function 'usb_open' brother_scanner.c:277: error: 'dev_handle' has no member named 'usb' brother_scanner.c:288: warning: implicit declaration of function 'usb_claim_interface' brother_scanner.c:288: error: 'dev_handle' has no member named 'usb' brother_scanner.c: In function 'PageScanStart': brother_scanner.c:509: warning: pointer targets in passing argument 2 of 'WriteDeviceCommand' differ in signedness brother_scanner.c:512: warning: implicit declaration of function 'sleep' brother_scanner.c:520: warning: pointer targets in passing argument 2 of 'WriteDeviceCommand' differ in signedness brother_scanner.c: In function 'StatusChk': brother_scanner.c:552: warning: pointer targets in initialization differ in signedness brother_scanner.c:562: warning: comparison is always false due to limited range of data type brother_scanner.c: In function 'PageScan': brother_scanner.c:1215: warning: pointer targets in passing argument 1 of 'StatusChk' differ in signedness brother_scanner.c:1254: warning: comparison is always false due to limited range of data type brother_scanner.c:1296: warning: pointer targets in passing argument 4 of 'ProcessMain' differ in signedness brother_scanner.c: In function 'ReadTrash': brother_scanner.c:1559: error: 'dev_handle' has no member named 'device' brother_scanner.c:1560: error: 'dev_handle' has no member named 'usb' brother_scanner.c:1574: warning: pointer targets in passing argument 2 of 'read_device_net' differ in signedness brother_scanner.c: In function 'ScanEnd': brother_scanner.c:1652: error: 'dev_handle' has no member named 'device' brother_scanner.c:1653: error: 'dev_handle' has no member named 'usb' brother_scanner.c:1655: warning: implicit declaration of function 'usb_release_interface' brother_scanner.c:1655: error: 'dev_handle' has no member named 'usb' brother_scanner.c:1656: warning: implicit declaration of function 'usb_close' brother_scanner.c:1656: error: 'dev_handle' has no member named 'usb' brother_scanner.c:1657: error: 'dev_handle' has no member named 'usb' brother_scanner.c: In function 'ProcessMain': brother_scanner.c:2044: warning: comparison is always false due to limited range of data type brother_scanner.c:2087: warning: pointer targets in assignment differ in signedness brother_scanner.c:2124: warning: pointer targets in passing argument 2 of 'ExecColorMatchingFunc' differ in signedness In file included from brother.c:94: brother_log.c: In function 'WriteLogFileString': brother_log.c:152: warning: format '%03d' expects type 'int', but argument 6 has type 'long int' In file included from brother_netdev.c:29, from brother.c:96: /usr/include/unistd.h: At top level: /usr/include/unistd.h:405: error: conflicting types for 'sleep' brother_scanner.c:512: error: previous implicit declaration of 'sleep' was here In file included from brother.c:97: brother_advini.c:27:20: error: curses.h: No such file or directory brother.c: In function 'sane_brother_init': brother.c:463: warning: implicit declaration of function 'usb_init' brother.c:464: warning: implicit declaration of function 'usb_find_busses' brother.c:465: warning: implicit declaration of function 'usb_find_devices' brother.c:481: error: 'usb_busses' undeclared (first use in this function) brother.c:481: error: (Each undeclared identifier is reported only once brother.c:481: error: for each function it appears in.) brother.c:488: error: dereferencing pointer to incomplete type brother.c:493: error: dereferencing pointer to incomplete type brother.c:494: error: dereferencing pointer to incomplete type brother.c:494: error: dereferencing pointer to incomplete type brother.c:500: error: dereferencing pointer to incomplete type brother.c:501: error: dereferencing pointer to incomplete type brother.c:519: error: dereferencing pointer to incomplete type brother.c:520: error: dereferencing pointer to incomplete type brother.c: In function 'sane_brother_open': brother.c:672: error: 'dev_handle' has no member named 'device' brother.c:675: error: 'dev_handle' has no member named 'device' brother.c:677: error: 'dev_handle' has no member named 'usb_w_ep' brother.c:679: error: 'dev_handle' has no member named 'usb_r_ep' brother.c:682: error: 'dev_handle' has no member named 'device' brother.c:683: error: 'dev_handle' has no member named 'net_device_index' brother.c:684: error: 'dev_handle' has no member named 'usb' brother.c:688: error: 'dev_handle' has no member named 'usb' brother.c:698: error: 'dev_handle' has no member named 'usb' brother.c:702: error: 'dev_handle' has no member named 'net_device_index' brother.c:768: error: 'dev_handle' has no member named 'device' brother.c:769: error: 'dev_handle' has no member named 'usb' brother.c:771: error: 'dev_handle' has no member named 'usb' brother.c:772: error: 'dev_handle' has no member named 'usb' brother.c:773: error: 'dev_handle' has no member named 'usb' brother.c: In function 'sane_brother_read': brother.c:1132: warning: pointer targets in passing argument 2 of 'PageScan' differ in signedness brother.c:1135: warning: pointer targets in passing argument 2 of 'PageScan' differ in signedness make[2]: *** [brother.lo] Fehler 1 make[2]: Leaving directory `/root/brscan/backend_brscan' make[1]: Leaving directory `/root/brscan/backend_brscan' (cd netconfig && make brscan) make[1]: Entering directory `/root/brscan/netconfig' sh mk_brsaneconfig 1 gcc -DBRSANESUFFIX=1 -Wall -O0 -DMKCONFIG -idirafter ../backend_src -o brsaneconfig brsaneconfig.c ../backend_src/brother_advini.c brsaneconfig.c:25:20: error: curses.h: Datei oder Verzeichnis nicht gefunden brsaneconfig.c: In function ā?˜add_network_deviceā?™: brsaneconfig.c:316: warning: the address of ā?˜nodeā?™ will always evaluate as ā?˜trueā?™ brsaneconfig.c:321: warning: the address of ā?˜ipā?™ will always evaluate as ā?˜trueā?™ brsaneconfig.c: In function ā?˜query_available_modelsā?™: brsaneconfig.c:423: warning: the address of ā?˜nodeā?™ will always evaluate as ā?˜trueā?™ brsaneconfig.c:426: warning: the address of ā?˜ipā?™ will always evaluate as ā?˜trueā?™ ../backend_src/brother_advini.c:27:20: error: curses.h: Datei oder Verzeichnis nicht gefunden make[1]: *** [brsaneconfig] Fehler 1 make[1]: Leaving directory `/root/brscan/netconfig' make: *** [brscan] Fehler 2
|
_________________ Geomarketing at www.geobiz.de www.gebietsplanung.net www.geomarketing-consultant.de |
|
Status: Offline |
|
|
Zardoz
| |
Re: brother scanner driver (brscan) / possible to compile for ppc ? Posted on 6-Sep-2009 15:14:54
| | [ #16 ] |
|
|
|
Team Member |
Joined: 13-Mar-2003 Posts: 4261
From: Unknown | | |
|
| @gerograph
You are missing the needed headers:
brother.c:40:17: error: usb.h: No such file or directory brother_advini.c:27:20: error: curses.h: No such file or directory
Usb.h is in libusb-dev. Curses.h should be in ncurses, get libncurses-dev. Last edited by Zardoz on 06-Sep-2009 at 03:18 PM.
_________________
|
|
Status: Offline |
|
|
gerograph
| |
Re: brother scanner driver (brscan) / possible to compile for ppc ? Posted on 6-Sep-2009 19:41:46
| | [ #17 ] |
|
|
|
Cult Member |
Joined: 5-Dec-2007 Posts: 901
From: Moers - Germany | | |
|
| @Zardoz and everybody else O.k. installed ncurses5-dev and libusb-dev. Still problems. Here is the output of the
sh command:
Quote:
checking for gcc... gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking build system type... powerpc-unknown-linux-gnu checking host system type... powerpc-unknown-linux-gnu checking for ld used by GCC... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for a BSD-compatible install... /usr/bin/install -c checking whether make sets $(MAKE)... yes checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking whether gcc needs -traditional... no checking for AIX... no checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking for strerror in -lcposix... no checking for gcc option to accept ANSI C... none needed checking os2.h usability... no checking os2.h presence... no checking for os2.h... no using CFLAGS=-g -O2 -W -Wall checking for ANSI C header files... (cached) yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking for unistd.h... (cached) yes checking libc.h usability... no checking libc.h presence... no checking for libc.h... no checking sys/dsreq.h usability... no checking sys/dsreq.h presence... no checking for sys/dsreq.h... no checking sys/select.h usability... yes checking sys/select.h presence... yes checking for sys/select.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking sys/shm.h usability... yes checking sys/shm.h presence... yes checking for sys/shm.h... yes checking sys/scanio.h usability... no checking sys/scanio.h presence... no checking for sys/scanio.h... no checking scsi.h usability... no checking scsi.h presence... no checking for scsi.h... no checking sys/scsi.h usability... no checking sys/scsi.h presence... no checking for sys/scsi.h... no checking sys/scsicmd.h usability... no checking sys/scsicmd.h presence... no checking for sys/scsicmd.h... no checking sys/scsiio.h usability... no checking sys/scsiio.h presence... no checking for sys/scsiio.h... no checking bsd/dev/scsireg.h usability... no checking bsd/dev/scsireg.h presence... no checking for bsd/dev/scsireg.h... no checking scsi/sg.h usability... yes checking scsi/sg.h presence... yes checking for scsi/sg.h... yes checking /usr/src/linux/include/scsi/sg.h usability... no checking /usr/src/linux/include/scsi/sg.h presence... no checking for /usr/src/linux/include/scsi/sg.h... no checking io/cam/cam.h usability... no checking io/cam/cam.h presence... no checking for io/cam/cam.h... no checking camlib.h usability... no checking camlib.h presence... no checking for camlib.h... no checking for os2.h... (cached) no checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking sys/io.h usability... no checking sys/io.h presence... no checking for sys/io.h... no checking asm/io.h usability... no checking asm/io.h presence... no checking for asm/io.h... no checking gscdds.h usability... no checking gscdds.h presence... no checking for gscdds.h... no checking sys/hw.h usability... no checking sys/hw.h presence... no checking for sys/hw.h... no checking for sys/types.h... (cached) yes checking sys/scsi/scsi.h usability... no checking sys/scsi/scsi.h presence... no checking for sys/scsi/scsi.h... no checking sys/scsi/sgdefs.h usability... no checking sys/scsi/sgdefs.h presence... no checking for sys/scsi/sgdefs.h... no checking sys/scsi/targets/scgio.h usability... no checking sys/scsi/targets/scgio.h presence... no checking for sys/scsi/targets/scgio.h... no checking apollo/scsi.h usability... no checking apollo/scsi.h presence... no checking for apollo/scsi.h... no checking sys/sdi_comm.h usability... no checking sys/sdi_comm.h presence... no checking for sys/sdi_comm.h... no checking sys/passthrudef.h usability... no checking sys/passthrudef.h presence... no checking for sys/passthrudef.h... no checking linux/ppdev.h usability... yes checking linux/ppdev.h presence... yes checking for linux/ppdev.h... yes checking usb.h usability... yes checking usb.h presence... yes checking for usb.h... yes checking sys/bitypes.h usability... yes checking sys/bitypes.h presence... yes checking for sys/bitypes.h... yes checking sys/sem.h usability... yes checking sys/sem.h presence... yes checking for sys/sem.h... yes checking for an ANSI C-conforming const... yes checking for inline... inline checking return type of signal handlers... void checking for size_t... yes checking for pid_t... yes checking for ssize_t... yes checking for u_int8_t only in sys/bitypes.h... no, also in standard headers checking for u_int8_t... yes checking for u_int16_t... yes checking for u_int32_t... yes checking for u_char... yes checking for u_int... yes checking for u_long... yes checking for struct flock in fcntl.h... yes checking for socklen_t in ... yes checking for union semun in ... no checking linux/videodev.h usability... yes checking linux/videodev.h presence... yes checking for linux/videodev.h... yes checking Video4Linux version 1 or 2... v4l checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for dlopen in -ldl... yes checking for dlopen... yes checking dl.h usability... no checking dl.h presence... no checking for dl.h... no checking for sqrt in -lm... yes checking for scsireq_enter in -lscsi... no checking for cam_open_device in -lcam... no checking for usb_open in -lusb... yes checking for jpeg_start_decompress in -ljpeg... no checking for gethostbyaddr in -lnsl... yes checking for socket in -lsocket... no checking for syslog in -lsyslog... no checking ptal.h usability... no checking ptal.h presence... no checking for ptal.h... no checking for working alloca.h... yes checking for alloca... yes checking for stdlib.h... (cached) yes checking for unistd.h... (cached) yes checking for getpagesize... yes checking for working mmap... yes checking for atexit... yes checking for ioperm... no checking for mkdir... yes checking for scsireq_enter... no checking for sigprocmask... yes checking for strdup... yes checking for strndup... yes checking for strftime... yes checking for strstr... yes checking for strsep... yes checking for strtod... yes checking for snprintf... yes checking for cfmakeraw... yes checking for tcsendbreak... yes checking for usleep... yes checking for strcasecmp... yes checking for strncasecmp... yes checking for _portaccess... no checking for getenv... yes checking for isfdtype... yes checking for vsyslog... yes checking for inet_ntop... yes checking linker parameter to set runtime link path... -Wl,-rpath, checking for ranlib... ranlib checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes checking host system type... powerpc-unknown-linux-gnu checking for object suffix... o checking for executable suffix... no checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.lo... yes checking if gcc supports -fno-rtti -fno-exceptions ... no checking if gcc static flag -static works... -static checking if the linker (/usr/bin/ld) is GNU ld... yes checking whether the linker (/usr/bin/ld) supports shared libraries... yes checking command to parse /usr/bin/nm -B output... ok checking how to hardcode library paths into programs... immediate checking for /usr/bin/ld option to reload object files... -r checking dynamic linker characteristics... GNU ld.so checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking for objdir... .libs creating libtool disabling DC210/DC240 backends (failed to find JPEG library) disabling GPHOTO2 backend (not requested, or failed to find gphoto2-config or JPEG lib) disabling PINT backend disabling QuickCam backend enabling Video4Linux backend enabling NET backend enabling SM3600 backend enabling SnapScan backend scsi buffersize: 131072 checking for sane-config... no checking for sane_init in -lsane... no configure: creating ./config.status config.status: creating Makefile config.status: creating lib/Makefile config.status: creating sanei/Makefile config.status: creating backend_brscan/Makefile config.status: creating backend_brscan2/Makefile config.status: creating include/Makefile config.status: creating po/Makefile config.status: creating include/sane/config.h **************************************************************** * Please be sure to read file PROBLEMS in this directory * * BEFORE running any of the SANE applications. Some devices * * may be damaged by inproper operation, so please do heed this * * advice. * ****************************************************************
|
And here is the output of the make all command:
Quote:
(cd backend_brscan && make brscan) make[1]: Entering directory `/root/brscan/backend_brscan' sh mk_backend release make libsane-brother make[2]: Entering directory `/root/brscan/backend_brscan' rm -f .libs/brother.lo gcc -c -g -O2 -W -Wall -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../libbrscandec -I../libbrcolm -D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d -DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -lpthread -DBRSANESUFFIX=1 -DBACKEND_NAME=brother -DLIBDIR=/usr/local/lib/sane brother.c -fPIC -DPIC -o .libs/brother.lo In file included from brother.c:68: brother.h:307:1: warning: "MAX_PATH" redefined In file included from brother.h:59, from brother.c:68: brother_dtype.h:48:1: warning: this is the location of the previous definition In file included from brother.c:87: brother_devaccs.c: In function 'OpenDevice': brother_devaccs.c:348: warning: pointer targets in passing argument 2 of 'read_device_net' differ in signedness brother_devaccs.c:357: warning: pointer targets in passing argument 3 of 'usb_bulk_read' differ in signedness brother_devaccs.c:372: warning: pointer targets in passing argument 2 of 'WriteDeviceData' differ in signedness brother_devaccs.c: In function 'ReadDeviceData': brother_devaccs.c:568: warning: pointer targets in passing argument 3 of 'usb_bulk_read' differ in signedness brother_devaccs.c:576: warning: pointer targets in passing argument 2 of 'read_device_net' differ in signedness brother_devaccs.c: In function 'WriteDeviceData': brother_devaccs.c:861: warning: pointer targets in passing argument 2 of 'write_device_net' differ in signedness brother_devaccs.c:899: warning: pointer targets in passing argument 3 of 'usb_bulk_write' differ in signedness brother_devaccs.c: In function 'WriteDeviceCommand': brother_devaccs.c:943: warning: pointer targets in passing argument 2 of 'write_device_net' differ in signedness In file included from brother.c:87: brother_devaccs.c: In function 'ERRPRINT': brother_devaccs.c:1066: warning: unused parameter 'format' brother_devaccs.c: In function 'DBGPRINT': brother_devaccs.c:1067: warning: unused parameter 'format' brother_devaccs.c: In function 'get_semkey': brother_devaccs.c:1097: warning: comparison between signed and unsigned In file included from brother.c:88: brother_devinfo.c: In function 'QCommandProc': brother_devinfo.c:306: warning: pointer targets in passing argument 2 of 'WriteDeviceCommand' differ in signedness brother_devinfo.c:319: warning: pointer targets in passing argument 2 of 'ReadNonFixedData' differ in signedness brother_devinfo.c: In function 'QueryScanInfoProc': brother_devinfo.c:385: warning: pointer targets in passing argument 2 of 'WriteDeviceCommand' differ in signedness brother_devinfo.c:398: warning: pointer targets in passing argument 2 of 'ReadNonFixedData' differ in signedness In file included from brother.c:89: brother_mfccmd.c: In function 'SendCancelCommand': brother_mfccmd.c:82: warning: pointer targets in passing argument 2 of 'WriteDeviceCommand' differ in signedness In file included from brother.c:92: brother_scanner.c: In function 'PageScanStart': brother_scanner.c:509: warning: pointer targets in passing argument 2 of 'WriteDeviceCommand' differ in signedness brother_scanner.c:520: warning: pointer targets in passing argument 2 of 'WriteDeviceCommand' differ in signedness brother_scanner.c: In function 'StatusChk': brother_scanner.c:552: warning: pointer targets in initialization differ in signedness brother_scanner.c:562: warning: comparison is always false due to limited range of data type brother_scanner.c: In function 'PageScan': brother_scanner.c:1215: warning: pointer targets in passing argument 1 of 'StatusChk' differ in signedness brother_scanner.c:1254: warning: comparison is always false due to limited range of data type brother_scanner.c:1296: warning: pointer targets in passing argument 4 of 'ProcessMain' differ in signedness brother_scanner.c: In function 'ReadTrash': brother_scanner.c:1565: warning: pointer targets in passing argument 3 of 'usb_bulk_read' differ in signedness brother_scanner.c:1574: warning: pointer targets in passing argument 2 of 'read_device_net' differ in signedness brother_scanner.c: In function 'ProcessMain': brother_scanner.c:2044: warning: comparison is always false due to limited range of data type brother_scanner.c:2087: warning: pointer targets in assignment differ in signedness brother_scanner.c:2124: warning: pointer targets in passing argument 2 of 'ExecColorMatchingFunc' differ in signedness In file included from brother.c:94: brother_log.c: In function 'WriteLogFileString': brother_log.c:152: warning: format '%03d' expects type 'int', but argument 6 has type 'long int' brother.c: In function 'sane_brother_read': brother.c:1132: warning: pointer targets in passing argument 2 of 'PageScan' differ in signedness brother.c:1135: warning: pointer targets in passing argument 2 of 'PageScan' differ in signedness brother_log.c: In function 'WriteLogFileString': brother_log.c:121: warning: 'dwStrLen' may be used uninitialized in this function gcc -c -g -O2 -W -Wall -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../libbrscandec -I../libbrcolm -D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d -DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -lpthread -DBRSANESUFFIX=1 -DBACKEND_NAME=brother -DLIBDIR=/usr/local/lib/sane brother.c -o brother.o >/dev/null 2>&1 mv -f .libs/brother.lo brother.lo rm -f brother-s.c ln -s ./stubs.c brother-s.c rm -f .libs/brother-s.lo gcc -c -g -O2 -W -Wall -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../libbrscandec -I../libbrcolm -D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d -DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -lpthread -DBRSANESUFFIX=1 -DSTUBS -DBACKEND_NAME=brother brother-s.c -fPIC -DPIC -o .libs/brother-s.lo gcc -c -g -O2 -W -Wall -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../libbrscandec -I../libbrcolm -D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d -DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -lpthread -DBRSANESUFFIX=1 -DSTUBS -DBACKEND_NAME=brother brother-s.c -o brother-s.o >/dev/null 2>&1 mv -f .libs/brother-s.lo brother-s.lo rm -f .libs/sane_strstatus.lo gcc -c -g -O2 -W -Wall -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../libbrscandec -I../libbrcolm -D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d -DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -lpthread -DBRSANESUFFIX=1 -DBACKEND_NAME=sane_strstatus -DLIBDIR=/usr/local/lib/sane sane_strstatus.c -fPIC -DPIC -o .libs/sane_strstatus.lo gcc -c -g -O2 -W -Wall -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../libbrscandec -I../libbrcolm -D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d -DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -lpthread -DBRSANESUFFIX=1 -DBACKEND_NAME=sane_strstatus -DLIBDIR=/usr/local/lib/sane sane_strstatus.c -o sane_strstatus.o >/dev/null 2>&1 mv -f .libs/sane_strstatus.lo sane_strstatus.lo rm -fr .libs/libsane-brother.la .libs/libsane-brother.* .libs/libsane-brother.* (cd ../sanei && ln -s sanei_init_debug.lo sanei_init_debug.o) (cd ../sanei && ln -s sanei_config.lo sanei_config.o) (cd ../lib && ln -s alloca.lo alloca.o) (cd ../lib && ln -s getenv.lo getenv.o) (cd ../lib && ln -s getopt.lo getopt.o) (cd ../lib && ln -s getopt1.lo getopt1.o) (cd ../lib && ln -s isfdtype.lo isfdtype.o) (cd ../lib && ln -s sigprocmask.lo sigprocmask.o) (cd ../lib && ln -s snprintf.lo snprintf.o) (cd ../lib && ln -s strdup.lo strdup.o) (cd ../lib && ln -s strndup.lo strndup.o) (cd ../lib && ln -s strsep.lo strsep.o) (cd ../lib && ln -s usleep.lo usleep.o) (cd ../lib && ln -s vsyslog.lo vsyslog.o) (cd ../lib && ln -s inet_ntop.lo inet_ntop.o) (cd ../sanei && ln -s sanei_constrain_value.lo sanei_constrain_value.o) gcc -shared brother.lo brother-s.lo sane_strstatus.lo ../sanei/sanei_init_debug.lo ../sanei/sanei_config.lo ../lib/alloca.lo ../lib/getenv.lo ../lib/getopt.lo ../lib/getopt1.lo ../lib/isfdtype.lo ../lib/sigprocmask.lo ../lib/snprintf.lo ../lib/strdup.lo ../lib/strndup.lo ../lib/strsep.lo ../lib/usleep.lo ../lib/vsyslog.lo ../lib/inet_ntop.lo ../sanei/sanei_constrain_value.lo -lpthread -lnsl -lusb -lm -ldl -lc -Wl,-soname -Wl,libsane.so.1 -o .libs/libsane-brother.so.1.0.7 /usr/bin/ld: ../sanei/sanei_init_debug.lo: Relocations in generic ELF (EM: 3) /usr/bin/ld: ../sanei/sanei_init_debug.lo: Relocations in generic ELF (EM: 3) /usr/bin/ld: ../sanei/sanei_init_debug.lo: Relocations in generic ELF (EM: 3) /usr/bin/ld: ../sanei/sanei_init_debug.lo: Relocations in generic ELF (EM: 3) /usr/bin/ld: ../sanei/sanei_init_debug.lo: Relocations in generic ELF (EM: 3) /usr/bin/ld: ../sanei/sanei_init_debug.lo: Relocations in generic ELF (EM: 3) ../sanei/sanei_init_debug.lo: could not read symbols: File in wrong format collect2: ld returned 1 exit status make[2]: *** [libsane-brother.la] Fehler 1 make[2]: Leaving directory `/root/brscan/backend_brscan' make[1]: Leaving directory `/root/brscan/backend_brscan' (cd netconfig && make brscan) make[1]: Entering directory `/root/brscan/netconfig' sh mk_brsaneconfig 1 gcc -DBRSANESUFFIX=1 -Wall -O0 -DMKCONFIG -idirafter ../backend_src -o brsaneconfig brsaneconfig.c ../backend_src/brother_advini.c brsaneconfig.c: In function ā?˜add_network_deviceā?™: brsaneconfig.c:316: warning: the address of ā?˜nodeā?™ will always evaluate as ā?˜trueā?™ brsaneconfig.c:321: warning: the address of ā?˜ipā?™ will always evaluate as ā?˜trueā?™ brsaneconfig.c: In function ā?˜query_available_modelsā?™: brsaneconfig.c:423: warning: the address of ā?˜nodeā?™ will always evaluate as ā?˜trueā?™ brsaneconfig.c:426: warning: the address of ā?˜ipā?™ will always evaluate as ā?˜trueā?™ make[1]: Leaving directory `/root/brscan/netconfig' (cd mk_package && make brscan) make[1]: Entering directory `/root/brscan/mk_package' make[1]: *** Keine Regel vorhanden, um das Target Ā»../backend_brscan/.libs/libsane-brother.so.1.0.7Ā«, benĆtigt von Ā»brscanĀ«, zu erstellen. Schluss. make[1]: Leaving directory `/root/brscan/mk_package' make: *** [brscan] Fehler 2
|
I have got the feeling there is libsane-brother missing... which might not be available as PPC Version ???
Ideas wellcome_________________ Geomarketing at www.geobiz.de www.gebietsplanung.net www.geomarketing-consultant.de |
|
Status: Offline |
|
|
Geri
| |
Re: brother scanner driver (brscan) / possible to compile for ppc ? Posted on 6-Sep-2009 21:39:14
| | [ #18 ] |
|
|
|
Elite Member |
Joined: 7-Oct-2003 Posts: 2038
From: ST/AT | | |
|
| |
Status: Offline |
|
|
gerograph
| |
Re: brother scanner driver (brscan) / possible to compile for ppc ? Posted on 7-Sep-2009 11:45:52
| | [ #19 ] |
|
|
|
Cult Member |
Joined: 5-Dec-2007 Posts: 901
From: Moers - Germany | | |
|
| @Geri
Quote:
...the one "Geri"...
|
the one = the sourcecode Version you tried to compile. I did not try to compile the Version 0.2.4-4 (the one you did). I trie to compile 0.2.4-0 as forwarded my "nutsaboutamiga". Don't know wether that makes a difference. Your help "Geri" is more than welcome, thanx.... see you later
Gero_________________ Geomarketing at www.geobiz.de www.gebietsplanung.net www.geomarketing-consultant.de |
|
Status: Offline |
|
|
Geri
| |
Re: brother scanner driver (brscan) / possible to compile for ppc ? Posted on 7-Sep-2009 12:08:48
| | [ #20 ] |
|
|
|
Elite Member |
Joined: 7-Oct-2003 Posts: 2038
From: ST/AT | | |
|
| @gerograph
Quote:
gerograph wrote: @Geri
the one = the sourcecode Version you tried to compile. |
Phew!
Quote:
I did not try to compile the Version 0.2.4-4 (the one you did). I trie to compile 0.2.4-0 as forwarded my "nutsaboutamiga". Don't know wether that makes a difference. Your help "Geri" is more than welcome, thanx.... see you later |
Probably not, but I think there's something missing in the source code archive (at least for the powerpc architecture). The configure script tried to create a Makefile in backend_brscan using Makefile.in, but the directory doesn't even exist. Some links to source code files are invalid, too.
Also I wonder what this note means: "Library libbrcolm and libbrsanedec in the scanner driver source codes are not available." It sounds, as if these were proprietary libraries, which cannot be recompiled for powerpc!?_________________ A1SE: G3@600MHz, 2GB, 1GBit network card A1XE: G4@933MHz, 2GB, refitted AC'97 codec microA1: G3@800MHz, 1GB
- A1 Linux support - |
|
Status: Offline |
|
|