ratpoison build failure above v 1.4.3

PILCH Hartmut <[email protected]>
Newsgroups gmane.comp.window-managers.ratpoison.devel
Message-ID <[email protected]>
When trying to build RPM packages for ratpoison version 1.4.5 or 1.4.4 I get
the following error:

 gcc -DHAVE_CONFIG_H -I.   -I/usr/include/freetype2     -g -O2 -Wall -O2 -MT history.o -MD -MP -MF .deps/history.Tpo -c -o history.o history.c
 history.c:78:1: error: static declaration of 'getline' follows non-static declaration
 /usr/include/stdio.h:653:20: note: previous declaration of 'getline' was here
 make[1]: *** [history.o] Error 1
 make[1]: Leaving directory `/usr/src/packages/BUILD/ratpoison-1.4.5/src'
 make: *** [check-recursive] Error 1
 error: Bad exit status from /var/tmp/rpm-tmp.wafaO1 (%build)

Line 653 of stdio.h reads

 extern _IO_ssize_t getline (char **__restrict __lineptr,
			    size_t *__restrict __n,
			    FILE *__restrict __stream) __wur;

It is contained in a

   #ifdef	__USE_XOPEN2K8
   ...
   #endif

section.

This happens with the xf86 architecture and IIRC also for i586 for which in
any case I also failed to build anything above v. 1.4.3.

I am working on an Opensuse 11.3 system and could supply more specifics but
can't see which may be relevant at the moment.

--
Hartmut Pilch 裴寒牧 ピルヒ・ハルトムート	http://a2e.de/phm

_______________________________________________
Ratpoison-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/ratpoison-devel
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.