Project

General

Profile

Actions

Bug #1316

closed

HAVE_SYNCFS, acconfig.h, #define HAVE_SYNCFS 1

Added by Michael Rack almost 13 years ago. Updated over 12 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
-
Target version:
% Done:

0%

Source:
Tags:
Backport:
Regression:
Severity:
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

While compile from source, i ran into the folowing Problem:

localhost ceph-0.31 # find -type f -name '*.h' -exec grep -iH 'syncfs' {} \;
./src/acconfig.h:/* Define to 1 if you have the `syncfs' function. */
./src/acconfig.h:#define HAVE_SYNCFS 1
./src/acconfig.h:/* we have syncfs */
./src/acconfig.h:#define HAVE_SYS_SYNCFS 1
./src/common/sync_filesystem.h:  /* On Linux, newer versions of glibc have a function called syncfs that
./src/common/sync_filesystem.h:#ifdef HAVE_SYS_SYNCFS
./src/common/sync_filesystem.h:  return syncfs(fd);

/bin/sh ../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I.    -Wall -D__CEPH__ -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_THREAD_SAFE -rdynamic -Wtype-limits -Wignored-qualifiers -Winit-self -Wpointer-arith -fno-strict-aliasing -Wnon-virtual-dtor -Wno-invalid-offsetof -Wstrict-null-sentinel   -g -O2 -MT MonitorStore.lo -MD -MP -MF .deps/MonitorStore.Tpo -c -o MonitorStore.lo `test -f 'mon/MonitorStore.cc' || echo './'`mon/MonitorStore.cc
 g++ -DHAVE_CONFIG_H -I. -Wall -D__CEPH__ -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_THREAD_SAFE -rdynamic -Wtype-limits -Wignored-qualifiers -Winit-self -Wpointer-arith -fno-strict-aliasing -Wnon-virtual-dtor -Wno-invalid-offsetof -Wstrict-null-sentinel -g -O2 -MT MonitorStore.lo -MD -MP -MF .deps/MonitorStore.Tpo -c mon/MonitorStore.cc  -fPIC -DPIC -o .libs/MonitorStore.o
In file included from mon/MonitorStore.cc:23:
./common/sync_filesystem.h: In function 'int sync_filesystem(int)':
./common/sync_filesystem.h:27: error: 'syncfs' was not declared in this scope
make[3]: *** [MonitorStore.lo] Error 1
make[3]: Leaving directory `/usr/src/ceph-0.31/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/ceph-0.31/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/ceph-0.31/src'
make: *** [all-recursive] Error 1

To Build ceph, i removed the SYNC-FS Part from ./src/common/sync_filesystem.h

This should be corrected.

Installed glib-2.28.8 and glibc-2.14

Actions

Also available in: Atom PDF