bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using gnulib for both a library and programs


From: Christian Egli
Subject: Using gnulib for both a library and programs
Date: Wed, 03 Jun 2015 14:02:54 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Hi all

I help maintain the liblouis project which ships mainly a library to
translate text to braille but also some auxiliary tools based on the
library. Up to now we have been using gnulib very successfully just for
the tools using modules such as getopt and version-etc. Now we would
also like to use it for the library for strndup etc.

In a first naive approach I just imported the needed modules and added
gnulib also to the library but now I have the problem that when linking
the test programs there is an error as I have an undefined reference to
`version_etc_copyright'. This makes sense as `version_etc_copyright' is
only defined in the tools but not in the test programs.

However, it appears to me that this is just the immediate problem at
hand. The bigger problem is how to use gnulib for both a library and for
programs (in the same autoconf project). There are also licensing issues
(lib is LGPL and programs are GPL). The documentation mentions that
Simon Josephson is apparently using two instances of the gnulib for a
similar scenario. I have looked at his packages and I assume that he is
using two separate gnulib imports with separate source-base, m4-base and
macro-prefix. Is that all there is to it? Is there some documentation
about this anywhere that I haven't been able to find?

Thanks
Christian

-- 
Christian Egli
Swiss Library for the Blind, Visually Impaired and Print Disabled
Grubenstrasse 12, CH-8045 Zürich, Switzerland




reply via email to

[Prev in Thread] Current Thread [Next in Thread]