public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
* [alternatives] building an app that uses gettext
@ 2021-07-18  1:47 Doug Henderson
  2021-07-18  8:23 ` Marco Atzeri
  2021-07-18 15:21 ` Brian Inglis
  0 siblings, 2 replies; 3+ messages in thread
From: Doug Henderson @ 2021-07-18  1:47 UTC (permalink / raw)
  To: Cygwin Apps

HI,
I have not previously built an app that uses gettext. The relevant
parts of the  makefile are:

VERSION = 1.16
CFLAGS = -g -Wall -D_GNU_SOURCE
LDFLAGS += -g

alternatives: alternatives.o

alternatives.o: alternatives.c
    $(CC) $(CFLAGS) -DVERSION=\"$(VERSION)\" -c alternatives.c

I am getting many

/usr/lib/gcc/x86_64-pc-cygwin/10/../../../../x86_64-pc-cygwin/bin/ld:
/usr/src/alternatives-1.16-1.src/alternatives-1.16-1.x86_64/build/alternatives.c:1389:
undefined reference to `libintl_gettext'

messages while linking.

I have installed the gettext-devel and libgettextpo-devel and
libintl-devel packages, but I can't seem to properly rewrite the
CFLAGS or LDFLAGS despite several attempts.

Can someone recommend a simple cygwin package that uses gettext and
the cygintl-8.dll

TIA,
Doug

-- 
Doug Henderson, Calgary, Alberta, Canada - from gmail.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [alternatives] building an app that uses gettext
  2021-07-18  1:47 [alternatives] building an app that uses gettext Doug Henderson
@ 2021-07-18  8:23 ` Marco Atzeri
  2021-07-18 15:21 ` Brian Inglis
  1 sibling, 0 replies; 3+ messages in thread
From: Marco Atzeri @ 2021-07-18  8:23 UTC (permalink / raw)
  To: cygwin-apps

On 18.07.2021 03:47, Doug Henderson via Cygwin-apps wrote:
> HI,
> I have not previously built an app that uses gettext. The relevant
> parts of the  makefile are:
> 
> VERSION = 1.16
> CFLAGS = -g -Wall -D_GNU_SOURCE
> LDFLAGS += -g
> 
> alternatives: alternatives.o
> 
> alternatives.o: alternatives.c
>      $(CC) $(CFLAGS) -DVERSION=\"$(VERSION)\" -c alternatives.c
> 

what is the linking recipe for "alternatives" or "alternatives$(EXT)"?

> I am getting many
> 
> /usr/lib/gcc/x86_64-pc-cygwin/10/../../../../x86_64-pc-cygwin/bin/ld:
> /usr/src/alternatives-1.16-1.src/alternatives-1.16-1.x86_64/build/alternatives.c:1389:
> undefined reference to `libintl_gettext' >
> messages while linking.

it is defined in libintl.dll.a so LDFLAGS should include -lintl

> I have installed the gettext-devel and libgettextpo-devel and
> libintl-devel packages, but I can't seem to properly rewrite the
> CFLAGS or LDFLAGS despite several attempts.
> 
> Can someone recommend a simple cygwin package that uses gettext and
> the cygintl-8.dll
> 
> TIA,
> Doug
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [alternatives] building an app that uses gettext
  2021-07-18  1:47 [alternatives] building an app that uses gettext Doug Henderson
  2021-07-18  8:23 ` Marco Atzeri
@ 2021-07-18 15:21 ` Brian Inglis
  1 sibling, 0 replies; 3+ messages in thread
From: Brian Inglis @ 2021-07-18 15:21 UTC (permalink / raw)
  To: cygwin-apps

On 2021-07-17 19:47, Doug Henderson via Cygwin-apps wrote:
> HI,
> I have not previously built an app that uses gettext. The relevant
> parts of the  makefile are:
> 
> VERSION = 1.16
> CFLAGS = -g -Wall -D_GNU_SOURCE
> LDFLAGS += -g
> 
> alternatives: alternatives.o
> 
> alternatives.o: alternatives.c
>      $(CC) $(CFLAGS) -DVERSION=\"$(VERSION)\" -c alternatives.c
> 
> I am getting many
> 
> /usr/lib/gcc/x86_64-pc-cygwin/10/../../../../x86_64-pc-cygwin/bin/ld:
> /usr/src/alternatives-1.16-1.src/alternatives-1.16-1.x86_64/build/alternatives.c:1389:
> undefined reference to `libintl_gettext'
> 
> messages while linking.
> 
> I have installed the gettext-devel and libgettextpo-devel and
> libintl-devel packages, but I can't seem to properly rewrite the
> CFLAGS or LDFLAGS despite several attempts.
> 
> Can someone recommend a simple cygwin package that uses gettext and
> the cygintl-8.dll

Look under /usr/share/locale/ for possibilities.
Search for packages with contents there using

	$ cygcheck -p usr/share/locale/
or

	https://cygwin.com/cgi-bin2/package-grep.cgi?arch=x86_64&grep=usr%2Fshare%2Flocale%2F

The best known are probably bash, coreutils, and mintty, or any editors, 
but I would suggest attr for size.

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
[Data in binary units and prefixes, physical quantities in SI.]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-07-18 15:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-18  1:47 [alternatives] building an app that uses gettext Doug Henderson
2021-07-18  8:23 ` Marco Atzeri
2021-07-18 15:21 ` Brian Inglis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).