Issue Details (XML | Word | Printable)

Key: CORE-6245
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Egor Pugin
Reporter: Treeve Jelbert
Votes: 0
Watchers: 2

If you were logged in you would be able to see more operations.
Firebird Core

build fails with glibc-2.31

Created: 10/Feb/20 07:45 PM   Updated: 08/Apr/20 08:33 AM
Component/s: Build Issues / Porting
Affects Version/s: 3.0.5
Fix Version/s: None

File Attachments: 1. File firebird3-git.bz2 (4 kB)
2. File time.h (7 kB)

linux-5.5.2, glibc-2.31, gcc-9.2.0

QA Status: Cannot be tested

 Description  « Hide
[51/551] Building CXX object src/CMakeFiles/common.dir/common/classes/NoThrowTimeStamp.cpp.o
FAILED: src/CMakeFiles/common.dir/common/classes/NoThrowTimeStamp.cpp.o
/var/lib/sorcery/build/c++ -I/var/git/db/firebird3/src/include -I/var/git/db/firebird3/src/include/gen -Isrc/include -Isrc/include/gen -march=native -mtune=native -m64 -pipe -O3 -Wno-narrowing -Wno-deprecated-declarations -Wno-invalid-offsetof -fno-sized-deallocation -fno-delete-null-pointer-checks -flifetime-dse=1 -fcheck-new -Wno-deprecated -fPIC -O3 -DNDEBUG -MD -MT src/CMakeFiles/common.dir/common/classes/NoThrowTimeStamp.cpp.o -MF src/CMakeFiles/common.dir/common/classes/NoThrowTimeStamp.cpp.o.d -o src/CMakeFiles/common.dir/common/classes/NoThrowTimeStamp.cpp.o -c /var/git/db/firebird3/src/common/classes/NoThrowTimeStamp.cpp
In file included from /var/git/db/firebird3/src/include/firebird.h:38,
                 from /var/git/db/firebird3/src/common/classes/NoThrowTimeStamp.cpp:27:
/var/git/db/firebird3/src/common/classes/NoThrowTimeStamp.cpp: In static member function 'static Firebird::NoThrowTimeStamp Firebird::NoThrowTimeStamp::getCurrentTimeStamp(const char**)':
src/include/gen/autoconfig.h:675:41: error: too few arguments to function 'int gettimeofday(timeval*, void*)'
  675 | #define GETTIMEOFDAY(x) gettimeofday((x))
      | ^
/var/git/db/firebird3/src/common/classes/NoThrowTimeStamp.cpp:86:2: note: in expansion of macro 'GETTIMEOFDAY'
   86 | GETTIMEOFDAY(&tp);
      | ^~~~~~~~~~~~
In file included from /var/git/db/firebird3/src/include/../common/classes/NoThrowTimeStamp.h:34,
                 from /var/git/db/firebird3/src/common/classes/NoThrowTimeStamp.cpp:41:
/usr/include/sys/time.h:66:12: note: declared here
   66 | extern int gettimeofday (struct timeval *__restrict __tv,
      | ^~~~~~~~~~~~

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Treeve Jelbert added a comment - 10/Feb/20 07:49 PM
compile log
also copy of time.h

Alexander Peshkov added a comment - 11/Feb/20 08:11 AM
That's definitely an issue with cmake build. cmake is not our 'official' build, please use instead.

Alexander Peshkov added a comment - 08/Apr/20 08:33 AM
Egor, I've checked with glibc-2.31, autoconf build works fine, please fix cmake issues.