bugCERTI - Bugs: bug #53592, Mac OS Sierra:...

 
 

bug #53592: Mac OS Sierra: /Users/xxx/certi/libHLA/SemaphorePosix.hh:5:10: fatal error: 'features.h' file not found

Submitter:  None
Submitted:  Mon 09 Apr 2018 03:47:02 PM UTC
   
 
Category:  libHLA Severity:  * 3 - Normal
Item Group:  Compilation error Status:  Fixed
Privacy:  Public Assigned to:  cardoso
Open/Closed:  Open Release:  * GIT-master
Reproducibility:  None Fixed Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Tue 19 Jun 2018 01:35:53 PM UTC, comment #6: 

Issue Fixed thus changing status.

JbCh <jb_ch>
Group administrator
Wed 23 May 2018 01:29:56 PM UTC, comment #5: 

Hi Jean-Baptiste,

Thank you again.
I just tested in my MacOS Sierra 10.12.6 and it works fine!
Billard ball federation works as well Ptolemy federates.

We still need to do the following workaround (after El Capitan)
sudo
cd /usr/local/lib
ln -s $CERTI_INSTALL/lib/* .

Quoting Christopher, "Recent macOS releases have a hard time with shared libraries, so create links in /usr/local/lib".

Anonymous
Wed 23 May 2018 06:19:44 AM UTC, comment #4: 

Hello,

The commit 3e8989280 won't compile due to an inconsistent merge (my bad).

All is fixed in 024509487f67 (current head) of br_jbch_4.0.0, please use this one to test/confirm


JbCh <jb_ch>
Group administrator
Wed 23 May 2018 05:51:38 AM UTC, comment #3: 

Hello,

I have implemented a bugfix/workaround for this problem in

branch: br_jbch_4.0.0
commit: 3e8989280

Please test and confirm if it works for you on your MacOS platform.

Thanks

JbCh <jb_ch>
Group administrator
Thu 12 Apr 2018 07:32:23 PM UTC, comment #2: 

features.h is glibc specific, see the header of /usr/include/features.h

/* Copyright (C) 1991-2016 Free Software Foundation, Inc.
   This file is part of the GNU C Library.

including it on mac is a bug
removing it on linux is a potential source of bugs

Anonymous
Mon 09 Apr 2018 03:54:52 PM UTC, comment #1: 

Some inputs:
- branche "br_jbch_4.0.0" has been used
- "features.h" is included in libHLA/SemaphorePosix.hh
- The error is not appearing on Linux OS

We tried to comment out the inclusion of the <features.h> header and it seems to compile properly on the Mac OS Sierra 10.12.6 (clang compiler) as well as on my Fedora 24 (using g++ 5.3.1)

JbCh <jb_ch>
Group administrator
Mon 09 Apr 2018 03:47:02 PM UTC, original submission:  

I'm using Mac OS Sierra 10.12.6. I have:
cmake version 3.9.4
Apple LLVM version 9.0.0 (clang-900.0.37)
GNU Make 3.81

After "cmake -DCMAKE_INSTALL_PREFIX= ..." and "make", I received this error msg:

(...)

> [  8%] Building CXX object libHLA/CMakeFiles/HLA.dir/SemaphorePosix.cc.o
> In file included from /Users/j.cardoso/certi400/certi/libHLA/SemaphorePosix.cc:12:
> /Users/j.cardoso/certi400/certi/libHLA/SemaphorePosix.hh:5:10: fatal error: 'features.h' file not found
> #include <features.h>
>          ^~~~~~~~~~~~
> 1 error generated.
> make[2]: * [libHLA/CMakeFiles/HLA.dir/SemaphorePosix.cc.o] Error 1
> make[1]: * [libHLA/CMakeFiles/HLA.dir/all] Error 2
> make: * [all] Error 2





Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jb_ch (Posted a comment)
  •  

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-06-19 jb_ch StatusWorks For Me Fixed
    2018-05-23 jb_ch StatusIn Progress Works For Me
        Assigned tojb_ch cardoso
    2018-04-10 jb_ch Fixed ReleaseGIT-master None
    2018-04-09 jb_ch StatusNone In Progress
        Assigned toNone jb_ch

    Back to the top

    Powered by Savane 3.13-cf05.
    Corresponding source code