Fixed FTBFS with gcc 4.8 when using c++11 standard. #223

Merged
MicheleC merged 1 commits from fix/ftbfs/c++11 into master 3 years ago
Owner

When building with gcc 4.8.4 (Ubuntu Trusty) with -std=c++11, there was FTBFS caused by conflicting definitions of abs(). Removing "using namespace std;" solves the problem.
I believe the additional #ifdef for OpenBSD was a previous attempt to prevent such issue on earlier distribution (see commit 44654c9af5 from Francois, the description seems exactly what I thought).

When building with gcc 4.8.4 (Ubuntu Trusty) with -std=c++11, there was FTBFS caused by conflicting definitions of abs(). Removing "using namespace std;" solves the problem. I believe the additional #ifdef for OpenBSD was a previous attempt to prevent such issue on earlier distribution (see commit 44654c9af5 from Francois, the description seems exactly what I thought).
MicheleC added 1 commit 3 years ago
064d38f2c8
Fixed FTBFS with gcc 4.8 when using c++11 standard.
MicheleC added this to the R14.0.11 release milestone 3 years ago
MicheleC requested review from SlavekB 3 years ago
Poster
Owner

@SlavekB could you test build in FreeBSD to see if you have any issue?
@Francois not sure if you are building for OpenBSD, but if so could you give it a test?

Both, please use -std=c++11 as additional CXXFLAGS for the compiler.

@SlavekB could you test build in FreeBSD to see if you have any issue? @Francois not sure if you are building for OpenBSD, but if so could you give it a test? Both, please use -std=c++11 as additional CXXFLAGS for the compiler.
SlavekB approved these changes 3 years ago
SlavekB left a comment
Owner

Build on FreeBSD is successfull.

Build on FreeBSD is successfull.
MicheleC merged commit 064d38f2c8 into master 3 years ago
MicheleC deleted branch fix/ftbfs/c++11 3 years ago
Poster
Owner

Thanks for testing Slavek.

Thanks for testing Slavek.

Reviewers

SlavekB approved these changes 3 years ago
The pull request has been merged as 064d38f2c8.
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: TDE/tdebase#223
Loading…
There is no content yet.