monotone

Issue 203: Monotone fails to build against eglibc version 2.15

Reported by Francis Russell, Feb 20, 2012

eglibc is now the glibc of choice in both Debian and Ubuntu. Ubuntu 
precise contains eglibc 2.15 and have encountered build issues due 
to it defining a struct file_handle. This conflicts with the 
definition of file_handle in fnctl.h.

Here's the Ubuntu build log:

g++  -I.     -I/usr/include/lua5.1         -D_FORTIFY_SOURCE=2  -g 
-O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat 
-Wformat-security -Wall -W -Wno-unused -c -o src/rcs_file.o 
src/rcs_file.cc
  src/rcs_file.cc:45:1: error: redefinition of 'struct file_handle'
  /usr/include/i386-linux-gnu/bits/fcntl.h:239:8: error: previous 
definition of 'struct file_handle'
  src/rcs_file.cc: In function 'void parse_rcs_file(const 
string&, rcs_file&)':
  src/rcs_file.cc:492:34: error: no matching function for call to 
'file_handle::file_handle(const string&)'
  src/rcs_file.cc:492:34: note: candidates are:
  /usr/include/i386-linux-gnu/bits/fcntl.h:239:8: note: 
file_handle::file_handle()
  /usr/include/i386-linux-gnu/bits/fcntl.h:239:8: note:   candidate 
expects 0 arguments, 1 provided
  /usr/include/i386-linux-gnu/bits/fcntl.h:239:8: note: 
file_handle::file_handle(const file_handle&)
  /usr/include/i386-linux-gnu/bits/fcntl.h:239:8: note:   no known 
conversion for argument 1 from 'const string {aka const 
std::basic_string<char>}' to 'const file_handle&'
  src/rcs_file.cc:493:40: error: 'struct file_handle' has no member 
named 'fd'
  src/rcs_file.cc:493:51: error: 'struct file_handle' has no member 
named 'length'
  make[4]: *** [src/rcs_file.o] Error 1
  make[4]: Leaving directory `/build/buildd/monotone-1.0'
  make[3]: *** [all-recursive] Error 1
  make[3]: Leaving directory `/build/buildd/monotone-1.0'
  make[2]: *** [all] Error 2
  make[2]: Leaving directory `/build/buildd/monotone-1.0'
  dh_auto_build: make -j1 INFO_DEPS= returned exit code 2
  make[1]: *** [override_dh_auto_build] Error 2
  make[1]: Leaving directory `/build/buildd/monotone-1.0'
  make: *** [binary] Error 2
  dpkg-buildpackage: error: /usr/bin/fakeroot debian/rules binary 
gave error exit status 2
  
*********************************************************************
*********
  Build finished at 20120208-1656
  FAILED [dpkg-buildpackage died]

Comment 2 by Markus Wanner, Jun 25, 2012

I'm unable to find the corresponding debian bug number, but the 
changelog clearly indicates that Debian ships the above mentioned 
fix since 1.0-5:
http://packages.debian.org/changelogs/pool/main/m/monotone/current/ch
angelog

I'm thus closing this issue.
Status: Fixed

Created: 12 years 2 months ago by Francis Russell

Updated: 11 years 10 months ago

Status: Fixed

Followed by: 2 persons

Labels:
Type:Defect
Priority:Medium

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status