[sane-devel] Code freeze for SANE 1.0.10

Henning Meier-Geinitz henning at meier-geinitz.de
Tue Jan 28 10:01:15 GMT 2003


Hi,

On Tue, Jan 28, 2003 at 01:08:26AM +0100, Franz Bakan wrote:
> 1. backends
> 
> Strange things happen:
> ...
> gcc -Zmt -Zdll -Zmap -Zcrtdll -o .libs/libsane-artec_eplus48u.dll artec_eplus48u.o artec_eplus48u-s.o \
> sane_strstatus.o ../sanei/sanei_init_debug.o ../sanei/sanei_config.o ../lib/inet_ntop.o ../lib/inet_pton.o \
> ../lib/isfdtype.o ../lib/strndup.o ../lib/strsep.o ../lib/usleep.o ../lib/alloca.o ../sanei/sanei_constrain_value.o \
> ../sanei/sanei_usb.o .libs/libsane-artec_eplus48u.def ../sanei/libsanei.a -ljpeg -lsyslog -lsocket
> 
> fails with
> 
> emxbind: invalid option
> G:\EMX\BIN\ld.exe: emxbind failed
> 
> gmake[1]: *** [libsane-artec_eplus48u.la] Error 1
> 
> It links fine if I remove the
>  -Zmap 
> compiler-flag
> 
> This -Zmap flag _only_ makes trouble with  artec_eplus48u.
> I don't know the reason. Should I try to rename the artec_eplus48u source-files
> and see if it helps?

I have no idea. Have you compiled sane successfully since artec_eplus
was added? What does -Zmap do?

I've added function prototypes for all the code in lib, maybe that's a
problem?

> 2. frontends
> 
> when linking xcam :
> xcam.o: Undefined symbol _pthread_write referenced from text segment
> xcam.o: Undefined symbol _pthread_write referenced from text segment
> xcam.o: Undefined symbol _pthread_read referenced from text segment
> gmake[1]: *** [xcam] Error 1
> 
> The problem can be solved by adding
>  -lpthreads 
> to
>  LIBS=
> in the makefile.

Is this a new problem? There have been some minor changes to xcam but
nothing about any threads. As far as I know, threads aren't used at all.

Did you change anything concerning your build system (compiler, gtk,
gdk or glib version)? Is gtk-config found and does gtk-config --libs
print -lpthreads?

Bye,
  Henning



More information about the sane-devel mailing list