Hi,
this is a follow-up to
http://lists.gnu.org/archive/html/bug-barcode/2015-06/msg00000.html
reporting a build failure on OS X with a patch to fix the issue rather than a
workaround.
When building GNU barcode 0.99 on a system that doesn't have GNU libc calloc
(such
as OS X), a replacement implementation is used instead. However, the sample
binary
then fails to link because rpl_calloc is undefined. That happens because
sample_LDADD does not contain lib/libgnu.la, which would provide this symbol.
See
the attached patch, which fixes this.
Additionally, the version number in doc/barcode.texi wasn't updated for the 0.99
release.
I have an existing copyright assignment to the FSF.
--
Clemens Lang
MacPorts Developer
The sample binary will fail to link on systems that need a replacement for
calloc because their implementation isn't GNU-calloc compatible. For example,
OS X is affected by this.
Signed-off-by: Clemens Lang <[email protected]>
Upstream-Status: Pending
--- Makefile.am.orig 2015-10-19 19:14:29.000000000 +0200
+++ Makefile.am 2015-10-19 19:14:36.000000000 +0200
@@ -38,4 +38,4 @@
sample_SOURCES = sample.c
-sample_LDADD = libbarcode.la
+sample_LDADD = libbarcode.la lib/libgnu.la