Updated Issue 203 - Monotone fails to build against eglibc version 2.15 (monotone)

[email protected]
Newsgroups gmane.comp.version-control.monotone.devel
Message-ID <[email protected]>
Hello,

The following issue has been updated:

203 - Monotone fails to build against eglibc version 2.15
Project: monotone
Status: Fixed
Reported by: Francis Russell
URL: https://code.monotone.ca/p/monotone/issues/203/
Labels:
 Type:Defect
 Priority:Medium

Comments (last first):

# 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/changelog

I'm thus closing this issue.

 Status: Fixed

# By Richard Hopkins, Feb 21, 2012:

I think this was fixed in da62cad10eda55aa233ac124273f3db4f541137a (https://code.monotone.ca/p/monotone/source/commit/da62cad10eda55aa233ac124273f3db4f541137a/). Try building from the latest zip, "https://code.monotone.ca/p/monotone/source/download/h:net.venge.monotone/"

# 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]



--
Issue: https://code.monotone.ca/p/monotone/issues/203/
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.