Ticket #397 (new wishlist)

Opened 8 years ago


Reported by: baker Owned by: somebody
Priority: trivial Milestone: All Platforms
Component: ALL modules Version: 7.8
Keywords: Cc:


I've been running into compilation failures with the Intel C compiler when I #define _XOPEN_SOURCE 500. I also disable GCC-specific code -- such as inline assembly language that confuses the Intel compiler's tracking of uninitialized variables -- using -no-gcc.

The latest issue I ran into is the use of the IP socket field h_addr, which has been superseded by h_addr_list. It is used in a dozen or so files. The GNU extensions #define h_addr, but I cannot enable them. The other option is to #define _BSD_SOURCE. This makes sense overall because I think much of the Earthworm code that came from Unix uses BSD APIs.

I suggest adding -D_BSD_SOURCE to CPPFLAGS in the Earthworm environment variable initialization scripts.

Note: See TracTickets for help on using tickets.