Re: complain.c:(.text+0x6df): undefined reference to `ostream_printf'

Akim Demaille <[email protected]>
Newsgroups gmane.comp.parsers.bison.bugs
Message-ID <[email protected]>
Hi Lars,

> Le 23 juil. 2020 à 13:57, Lars Wendler <[email protected]> a écrit :
> 
> Hello list,
> 
> since commit 1438b79e80634d60df2ed03b689db83f5318d81e bison fails to
> build for me with the following error:

Bummer...

> x86_64-pc-linux-gnu-gcc   -march=native -mtune=native -O2 -pipe
> -Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common -Wl,--as-needed -o
> src/bison src/bison-AnnotationList.o src/bison-InadequacyList.o
> src/bison-Sbitset.o src/bison-assoc.o src/bison-closure.o
> src/bison-complain.o src/bison-conflicts.o src/bison-counterexample.o
> src/bison-derivation.o src/bison-derives.o src/bison-files.o
> src/bison-fixits.o src/bison-getargs.o src/bison-glyphs.o
> src/bison-gram.o src/bison-graphviz.o src/bison-ielr.o src/bison-lalr.o
> src/bison-location.o src/bison-lr0.o src/bison-lssi.o src/bison-main.o
> src/bison-muscle-tab.o src/bison-named-ref.o src/bison-nullable.o
> src/bison-output.o src/bison-parse-gram.o src/bison-parse-simulation.o
> src/bison-print-graph.o src/bison-print-xml.o src/bison-print.o
> src/bison-reader.o src/bison-reduce.o src/bison-relation.o
> src/bison-scan-code-c.o src/bison-scan-gram-c.o src/bison-scan-skel-c.o
> src/bison-state.o src/bison-state-item.o src/bison-symlist.o
> src/bison-symtab.o src/bison-tables.o src/bison-uniqstr.o
> lib/libbison.a              -lreadline /usr/lib64/libtextstyle.so
> /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:
> src/bison-complain.o: in function `complains':
> complain.c:(.text+0x6df): undefined reference to `ostream_printf'
> collect2: error: ld returned 1 exit status make: *** [Makefile:4402:
> src/bison] Error 1

I think the problem is "simply" that your version of libtextstyle is too old.

I'm using 0.20.5.

https://alpha.gnu.org/gnu/gettext/libtextstyle-0.20.5.tar.gz

Cheers!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.