bug-diffutils
[Top][All Lists]
Advanced

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

[bug-diffutils] simple fix for FreeBSD build problem with diffutils-3.2.


From: Nelson H. F. Beebe
Subject: [bug-diffutils] simple fix for FreeBSD build problem with diffutils-3.2.37-f0b0
Date: Thu, 1 Nov 2012 07:45:20 -0600 (MDT)

The Makefile for one of the test programs needed by "make check" in
diffutils-3.2.37-f0 is missing essential library flags that broke
the build on FreeBSD 9.0:

    gcc -std=gnu99 -g -O2 -o test-sh-quote test-sh-quote.o libtests.a
        ../lib/libdiffutils.a libtests.a
    ../lib/libdiffutils.a(xalloc-die.o): In function `xalloc_die':
    /local/build/bare/diffutils-3.2.37-f0b0/lib/xalloc-die.c:34: undefined 
reference to `libintl_gettext'
    ../lib/libdiffutils.a(error.o): In function `print_errno_message':
    /local/build/bare/diffutils-3.2.37-f0b0/lib/error.c:188: undefined 
reference to `libintl_gettext'
    ../lib/libdiffutils.a(quotearg.o): In function `gettext_quote':
    /local/build/bare/diffutils-3.2.37-f0b0/lib/quotearg.c:195: undefined 
reference to `libintl_gettext'

I built it manually with

    gcc -std=gnu99 -g -O2 -o test-sh-quote test-sh-quote.o libtests.a \
        ../lib/libdiffutils.a libtests.a -L/usr/local/lib -lintl

then restarted the make; all tests passed, and I've installed the new
version of diffutils.

-------------------------------------------------------------------------------
- Nelson H. F. Beebe                    Tel: +1 801 581 5254                  -
- University of Utah                    FAX: +1 801 581 4148                  -
- Department of Mathematics, 110 LCB    Internet e-mail: address@hidden  -
- 155 S 1400 E RM 233                       address@hidden  address@hidden -
- Salt Lake City, UT 84112-0090, USA    URL: http://www.math.utah.edu/~beebe/ -
-------------------------------------------------------------------------------



reply via email to

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