Henning Meier-Geinitz wrote:
> (3) Static linking breaks when compiling sane-frontends, dynamic linking works.
>
> gcc -L/usr/local/lib -Wl,-rpath,/usr/local/lib -o xscanimage xscanimage.o progress.o preview.o preferences.o gtkglue.o ../sanei/libsanei.a \
> ../lib/liblib.a -lgimp -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm -lm -lsane -lnsl -lusb -lm -ljpeg/usr/local/lib/libsane.a(sanei_wire.o): In function `sanei_w_space':
> /tmp/sane-backends-CVS-snapshot-2001-05-27/sanei/sanei_wire.c:54: multiple definition of `sanei_w_space'
>
The reason for this seems to be that sanei_wire.c has changed in sane-backends
(compared to sane-1.0.4). Now sane-frontends and sane-backends use different
functions with the same names.
sanei_ functions are not part of the sane standard, so a frontend may not
assume the functions are defined. We have to use other function names in
sane-frontends.
This bug also can make problems with shared libraries.
Bye
Oliver
-- Homepage: http://www.rauch-domain.de sane-umax: http://www.rauch-domain.de/sane-umax xsane: http://www.xsane.org E-Mail: mailto:Oliver.Rauch@rauch-domain.de-- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com
This archive was generated by hypermail 2b29 : Sun May 27 2001 - 10:29:08 PDT