[sane-devel] error building using --enable-static
Stef
stef.dev at free.fr
Wed Aug 8 05:49:56 UTC 2012
On 08/08/2012 04:44, Chris Bagwell wrote:
> I fixed the kvs backend symbol issues and committed them.
>
> Also, I believe I have a fix for jpeg symbols. I think its just a
> linking ordering issue. At least I got it working by hand editing the
> frontend/Makefile and moving the libraries with missing symbols to
> later in line of saned_LDADD and scanimage_LDADD.
>
> I do not have the older versions of autofoo packages installed and
> I'll reluctant to submit large configure and Makefile.in file updates
> at this stage.
>
> If someone has older autofoo installed and can check in just
> frontend/Makefile.am and frontend/Makefile.in change, here is
> suggested patch (I notice that liblib.la is in two different orders.
> May need to move one of those to later as well):
>
> --- a/frontend/Makefile.am
> +++ b/frontend/Makefile.am
> @@ -17,11 +17,11 @@ endif
> AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_builddir)/include -I$(top_srcdir)/include
>
> scanimage_SOURCES = scanimage.c stiff.c stiff.h
> -scanimage_LDADD = ../lib/liblib.la ../lib/libfelib.la ../backend/libsane.la
> +scanimage_LDADD = ../backend/libsane.la ../lib/liblib.la ../lib/libfelib.la
>
> saned_SOURCES = saned.c
> -saned_LDADD = ../sanei/libsanei.la ../lib/liblib.la ../lib/libfelib.la \
> - ../backend/libsane.la @SYSLOG_LIBS@
> +saned_LDADD = ../backend/libsane.la ../sanei/libsanei.la ../lib/liblib.la \
> + ../lib/libfelib.la @SYSLOG_LIBS@
>
> test_SOURCES = test.c
> test_LDADD = ../lib/liblib.la ../lib/libfelib.la ../backend/libsane.la
>
> Chris
>
>
Hello,
thanks for the patches. They work great here.
For the linking problem, what should be the version number for old
autoconf tools? The Makefile.in in git have a automake 1.11.1 tag, is it
old enough? I may have a suitable test platform.
To get scanimage compiling, I also had to specify libsanei in
scanimage_LDADD:
diff --git a/frontend/Makefile.am b/frontend/Makefile.am
index a8b51f3..d4a709d 100644
--- a/frontend/Makefile.am
+++ b/frontend/Makefile.am
@@ -17,11 +17,11 @@ endif
AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_builddir)/include
-I$(top_srcdir)/include
scanimage_SOURCES = scanimage.c stiff.c stiff.h
-scanimage_LDADD = ../lib/liblib.la ../lib/libfelib.la ../backend/libsane.la
+scanimage_LDADD = ../backend/libsane.la ../sanei/libsanei.la
../lib/liblib.la ../lib/libfelib.la
saned_SOURCES = saned.c
-saned_LDADD = ../sanei/libsanei.la ../lib/liblib.la ../lib/libfelib.la \
- ../backend/libsane.la @SYSLOG_LIBS@
+saned_LDADD =../backend/libsane.la ../sanei/libsanei.la ../lib/liblib.la \
+ ../lib/libfelib.la @SYSLOG_LIBS@
test_SOURCES = test.c
test_LDADD = ../lib/liblib.la ../lib/libfelib.la ../backend/libsane.la
Regards,
Stef
More information about the sane-devel
mailing list