From: Mantis B. T. <no...@bu...> - 2012-10-10 10:55:36
|
The following issue has been ASSIGNED. ====================================================================== http://bugs.bacula.org/view.php?id=1938 ====================================================================== Reported By: alexandro Assigned To: marcovw ====================================================================== Project: bacula Issue ID: 1938 Category: configure/build process Reproducibility: always Severity: major Priority: normal Status: assigned ====================================================================== Date Submitted: 2012-10-06 22:18 BST Last Modified: 2012-10-10 11:55 BST ====================================================================== Summary: Can't build bacula on Debian GNU/Hurd Description: GNU/Hurd has no limits for maximum path length. And it has not MAXPATHLEN and PATH_MAX defined. http://www.gnu.org/software/hurd/hurd/porting/guidelines.html#PATH_MAX_tt_MAX_PATH_tt_MAXPATHL make[3]: Leaving directory `/home/alexandro-guest/bacula-cur/src/lib' ==>Entering directory /home/alexandro-guest/bacula-cur/src/findlib make[3]: Entering directory `/home/alexandro-guest/bacula-cur/src/findlib' Compiling find.c Compiling match.c Compiling find_one.c find_one.c: In function 'bool have_ignoredir(FF_PKT*)': find_one.c:306:18: error: 'MAXPATHLEN' was not declared in this scope find_one.c:320:14: error: 'tmp_name' was not declared in this scope make[3]: *** [find_one.lo] Error 1 make[3]: Leaving directory `/home/alexandro-guest/bacula-cur/src/findlib' ====== Error in /home/alexandro-guest/bacula-cur/src/findlib ====== ==>Entering directory /home/alexandro-guest/bacula-cur/src/filed make[3]: Entering directory `/home/alexandro-guest/bacula-cur/src/filed' Compiling filed.c In file included from /usr/include/python2.7/Python.h:8:0, from filed.c:42: /usr/include/python2.7/pyconfig.h:1183:0: warning: "_XOPEN_SOURCE" redefined [enabled by default] In file included from /usr/include/stdint.h:26:0, from /usr/lib/gcc/i486-gnu/4.7/include/stdint.h:3, from ../bacula.h:68, from filed.c:35: /usr/include/features.h:165:0: note: this is the location of the previous definition In file included from filed.h:69:0, from filed.c:36: xattr.h:60:16: error: 'PATH_MAX' was not declared in this scope make[3]: *** [filed.o] Error 1 make[3]: Leaving directory `/home/alexandro-guest/bacula-cur/src/filed' ====== Error in /home/alexandro-guest/bacula-cur/src/filed ====== All other errors look like result of this errors. ====================================================================== ---------------------------------------------------------------------- (0006516) alexandro (reporter) - 2012-10-06 23:46 http://bugs.bacula.org/view.php?id=1938#c6516 ---------------------------------------------------------------------- if define MAXPATHLEN and PATH_MAX to some value, then bacula can be built (without acl and xattr support). ---------------------------------------------------------------------- (0006517) kern (administrator) - 2012-10-07 08:31 http://bugs.bacula.org/view.php?id=1938#c6517 ---------------------------------------------------------------------- I am not 100% sure about this, but it seems to me that MAXPATHLEN and PATH_MAX are POSIX standard names. Thus either HURD lacks them, which would be a bug in HURD (or at least a POSIX incompatibility) or they are included in some header file that Bacula does not know about. I suggest you search your /usr/include files to see if and where these two variables are defined. Then we can see what would be an appropriate solution. ---------------------------------------------------------------------- (0006518) alexandro (reporter) - 2012-10-07 09:39 http://bugs.bacula.org/view.php?id=1938#c6518 ---------------------------------------------------------------------- No, this names are not POSIX. At least this is written in Hurd documentation for porters: http://www.gnu.org/software/hurd/hurd/porting/guidelines.html#PATH_MAX_tt_MAX_PATH_tt_MAXPATHL Issue History Date Modified Username Field Change ====================================================================== 2012-10-06 22:18 alexandro New Issue 2012-10-06 23:46 alexandro Note Added: 0006516 2012-10-07 08:31 kern Note Added: 0006517 2012-10-07 08:31 kern Status new => feedback 2012-10-07 09:39 alexandro Note Added: 0006518 2012-10-07 09:39 alexandro Status feedback => new 2012-10-10 11:55 marcovw Assigned To => marcovw 2012-10-10 11:55 marcovw Status new => assigned ====================================================================== |