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

Bug#753218: libreoffice: FTBFS: configure: error: no. You are sure you have altlinuyhyph headers?



On Mon, Jun 30, 2014 at 09:31:30AM +0200, Rene Engelhard wrote:
> before it was fixed over 1 day[1] before you report this bug because I exactly
[...]
> [1] http://packages.qa.debian.org/h/hyphen/news/20140628T114949Z.html

by

$ cat 02_fix_hyphen_h_for_FILE.dpatch 
#! /bin/sh /usr/share/dpatch/dpatch-run
## 02_fix_hyphen_h_for_FILE.dpatch by  <rene@frodo>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: fix hyphen.h to #include <stdio.h> as otherwise FILE* is not defined and:
## DP: configure:32138: checking for hyphen.h
## DP: configure:32138: result: yes
## DP: configure:32146: checking for struct _HyphenDict.cset
## DP: configure:32146: x86_64-linux-gnu-gcc -c -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security  -D_FORTIFY_SOURCE=2  conftest.c >&5
## DP: In file included from conftest.c:101:0:
## DP: /usr/include/hyphen.h:97:35: error: unknown type name 'FILE'
## DP:  HyphenDict *hnj_hyphen_load_file (FILE *f);
## DP:                                    ^
## DP: configure:32146: $? = 1
## DP: configure: failed program was:

@DPATCH@
diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' hyphen-2.8.7~/hyphen.h hyphen-2.8.7/hyphen.h
--- hyphen-2.8.7~/hyphen.h	2014-06-28 12:26:29.000000000 +0200
+++ hyphen-2.8.7/hyphen.h	2014-06-28 12:27:47.469187586 +0200
@@ -55,6 +55,8 @@
 extern "C" {
 #endif /* __cplusplus */
 
+#include <stdio.h>
+
 typedef struct _HyphenDict HyphenDict;
 typedef struct _HyphenState HyphenState;
 typedef struct _HyphenTrans HyphenTrans;

I'd have linked the patch-tracker but....

Regards,

Rene


Reply to: