NOAA-EMC / NCEPLIBS-ip2

Other
1 stars 4 forks source link

info_and_log compilation errors #3

Closed opoplawski closed 3 years ago

opoplawski commented 4 years ago

Trying to build with ./build_ip2.sh gnu_general libver=ip2 results in:

+ make message MSGSRC=ip2_info_and_log4.c LIB=libip2_4.a
gcc -c ip2_info_and_log4.c
ip2_info_and_log4.c:5:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    5 |  char *ip2_4.a_brief_info(char *infoline);
      |             ^
ip2_info_and_log4.c:6:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    6 |  int ip2_4.a_library_info(void);
      |           ^
ip2_info_and_log4.c:7:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    7 |  int ip2_4.a_building_log(void);
      |           ^
ip2_info_and_log4.c:9:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    9 |  void ip2_4.a_brief_info_(char *oneline, size_t n) {
      |            ^
ip2_info_and_log4.c:15:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
   15 |  void ip2_4.a_library_info_(void) {
      |            ^
ip2_info_and_log4.c:19:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
   19 |  void ip2_4.a_building_log_(void) {
      |            ^
ip2_info_and_log4.c:23:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
   23 |  char *ip2_4.a_brief_info(char *infoline) {
      |             ^
ip2_info_and_log4.c:35:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
   35 |  int ip2_4.a_library_info(void) {
      |           ^
ip2_info_and_log4.c:49:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
   49 |  int ip2_4.a_building_log(void) {
      |           ^
make: *** [Makefile:32: message] Error 1

This does not appear to prevent building the rest of the library, so not really sure what is going on here.

edwardhartnett commented 3 years ago

Howdy Orion! I didn't know you used these packages too! ;-)

Is this issue still relevant?

There is a CMake build. We are no longer supporting the legacy build scripts...

GeorgeGayno-NOAA commented 3 years ago

Howdy Orion! I didn't know you used these packages too! ;-)

Is this issue still relevant?

There is a CMake build. We are no longer supporting the legacy build scripts...

This is the old build system. You can close this.

opoplawski commented 3 years ago

Howdy Orion! I didn't know you used these packages too! ;-)

Oh, I pop up all over the place :). I package wgrib2 for Fedora as well, and there has been a request to add ip2 support to it.

There is a CMake build. We are no longer supporting the legacy build scripts...

Excellent. Starting to poke at that (and splib as you'll have seen as well).