Help? Undefined Reference g_debug compiling xscanimage

Red Hat Linux User (rodneyp@netway.at)
Tue, 06 Apr 1999 22:31:14 +0200

Greetings,

I realize this may not be the right place to ask for assistance. If
there is a better forum please point me in the right direction.

I am trying to compile sane 1.00 with Gimp support and am getting the
following error.

gcc -o .libs/xscanimage xscanimage.o progress.o preview.o preferences.o
gtkglue.o ../sanei/libsanei.a -Wl,--rpath -Wl,/usr/local/lib
../backend/.libs/libsane.so ../lib/liblib.a -lgimp -L/usr/local/lib
-L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXext
-lX11 -lm -ldl -ljpeg -lnsl -lm
/usr/lib/libgimp.so: undefined reference to `g_debug'
/usr/lib/libgimp.so: undefined reference to `g_warning'
/usr/lib/libgimp.so: undefined reference to `g_error'

I'm using RedHat 5.1, libjpeg updates, glib-1.2.0, gtk!-1.2.0 and
sane-1.00. Can somebody point me in the right direction. Everything
was fine until I tried to add Gimp support so I could run xscanimage
with Gimp.

Cheers.

Rod

rodneyp@netway.at

X-VM-v5-Data: ([t nil nil nil nil nil nil nil nil]
["2297" "Tue" "6" "April" "1999" "14:46:29" "-0700" "owner-sane-devel@mostang.com" "owner-sane-devel@mostang.com" nil "64" "BOUNCE sane-devel@mostang.com: Non-member submission from [\"Scott Wells\" <swells@vignette.com>] " "^From:" nil nil "4" nil nil nil nil nil]
nil)
Return-Path: <owner-sane-devel@mostang.com>
Received: (from majordom@localhost)
by panda.mostang.com (8.8.7/8.8.7) id OAA21276;
Tue, 6 Apr 1999 14:46:29 -0700
Message-Id: <199904062146.OAA21276@panda.mostang.com>
Status: RO
From: owner-sane-devel@mostang.com
To: owner-sane-devel@mostang.com
Subject: BOUNCE sane-devel@mostang.com: Non-member submission from ["Scott Wells" <swells@vignette.com>]
Date: Tue, 6 Apr 1999 14:46:29 -0700

>From sane-devel-owner@mostang.com Tue Apr 6 14:46:28 1999
Received: from vignette.com (mi.vignette.com [207.8.7.18])
by panda.mostang.com (8.8.7/8.8.7) with ESMTP id OAA21273
for <sane-devel@mostang.com>; Tue, 6 Apr 1999 14:44:10 -0700
Received: from monolith by vignette.com (8.7.3/BERK-6.8.11)
id QAA17216; Tue, 6 Apr 1999 16:43:33 -0500 (CDT)
From: "Scott Wells" <swells@vignette.com>
To: "SANE Developers List" <sane-devel@mostang.com>
Subject: Core dump when trying to use net backend
Date: Tue, 6 Apr 1999 16:43:33 -0500
Message-ID: <003101be8076$84a86fc0$930808cf@vignette.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook 8.5, Build 4.71.2377.0
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211

I'm trying to use the net backend to access my scanner (actually, I'm
ULTIMATELY trying to use a TWAIN-SANE gateway, but baby steps first...).
First, some platform specifics:

RedHat 5.1 x86
Kernel 2.0.34 (I have good reasons for being so far back)
SANE pre1.01-4 w/Microtek2 patch
Adaptec AIC-7850 SCSI host adapter (narrow)
Microtek ScanMaker X6 EL

I'm able to scan directly from the microtek2 backend wonderfully! Now I'd
like to scan through the net backend. To do so, I've done the following:

1. Uncommented the 'net' line in dll.conf
2. Added entries for 'localhost' and '<hostname>' in net.conf
3. Set debug level to 128 for DLL, MICROTEK2, NET, and SANEI_SCSI

I execute:

$ scanimage -d net:(localhost|<hostname>):microtek2

and I get:

<leading info elided>
[dll] loading backend net
[dll] dlopen()ing '/usr/local/SANE/lib/sane/libsane-net.so.1
[dll] init: initializing backend 'net'
[sanei_init_debug]: Setting debug level of net to 128.
[net] adding backend localhost
[net] adding backend <hostname>
Segmentation fault (core dumped)

I've done a *little* debugging and the seg fault occurs at some point in the
net implementation of sane_get_devices(). Does anyone know what's going on?
Have I left out some all-important step in my configuration? It's worth
noting that:

$ telnet (localhost|<hostname>) sane

connects fine; it's not a saned configuration issue (that I know of).

Thanks in advance,
Scott Wells

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com