Menu

Solaris Compile problem

Developers
2005-07-14
2013-10-17
  • Nobody/Anonymous

    # make
    make  all-recursive
    make[1]: Entering directory `/usr/local/src/nco-3.0.1'
    Making all in data
    make[2]: Entering directory `/usr/local/src/nco-3.0.1/data'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/usr/local/src/nco-3.0.1/data'
    Making all in doc
    make[2]: Entering directory `/usr/local/src/nco-3.0.1/doc'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/usr/local/src/nco-3.0.1/doc'
    Making all in src
    make[2]: Entering directory `/usr/local/src/nco-3.0.1/src'
    Making all in nco
    make[3]: Entering directory `/usr/local/src/nco-3.0.1/src/nco'
    if /bin/bash ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
    -I../..   -I/usr/local/include -DNC_64BIT_OFFSET=0  -g -O2 -std=c99
    -D_BSD_SOURCE -MT nco_fl_utl.lo -MD -MP -MF ".deps/nco_fl_utl.Tpo" -c -o
    nco_fl_utl.lo nco_fl_utl.c; \
    then mv -f ".deps/nco_fl_utl.Tpo" ".deps/nco_fl_utl.Plo"; else rm -f
    ".deps/nco_fl_utl.Tpo"; exit 1; fi
    gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/local/include
    -DNC_64BIT_OFFSET=0 -g -O2 -std=c99 -D_BSD_SOURCE -MT nco_fl_utl.lo -MD
    -MP -MF .deps/nco_fl_utl.Tpo -c nco_fl_utl.c -o nco_fl_utl.o
    nco_fl_utl.c: In function `nco_fl_lst_mk':
    nco_fl_utl.c:143: warning: implicit declaration of function `strdup'
    nco_fl_utl.c: In function `nco_fl_mk_lcl':
    nco_fl_utl.c:620: error: incompatible types in assignment
    nco_fl_utl.c: In function `nco_fl_out_open':
    nco_fl_utl.c:969: warning: implicit declaration of function `strcasecmp'
    make[3]: *** [nco_fl_utl.lo] Error 1
    make[3]: Leaving directory `/usr/local/src/nco-3.0.1/src/nco'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/usr/local/src/nco-3.0.1/src'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/usr/local/src/nco-3.0.1'
    make: *** [all] Error 2

    Configured with

    # cat co*bjm
    #!/usr/bin/csh
    setenv LDFLAGS  "-L/usr/local/lib -L/usr/local/SUNWspro_V10/lib
    -L/usr/local/src/HDF5-1.7.46/src/.libs"
    setenv PATH /usr/local/SUNWspro_V10/bin:$PATH
    setenv CC gcc
    setenv CXX g++
    setenv LD_LIBRARY_PATH /usr/local/SUNWspro_V10/lib:$LD_LIBRARY_PATH
    ./configure \
    CPPFLAGS=-DNC_64BIT_OFFSET='0' \
    --disable-shared

    make clean
    make

     
    • Charlie Zender

      Charlie Zender - 2005-07-14

      This is odd. It looks like you're mixing gcc compilers
      with Solaris compiler paths.
      Try adding 

      '-DNEED_STRCASECMP  -DNEED_STRDUP'

      to CPPFLAGS and reconfigure and rebuild and let us know what happens.
      Also, it should work fine on solaris with the native
      cc/CC compilers is you want to try that.
      See nco/configure.eg for an example.

      Charlie

       

Log in to post a comment.