Re: [netcdfgroup] Compilation error for netcdf-c-4.9.0

Also, make check fails with

make[1]: Entering directory 
`/local/home/sbasu/packages/src/netcdf-c-4.9.0/libnczarr'
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -std=gnu11 -DHAVE_CONFIG_H 
-I. -I..  -I../include -I../include -I../oc2 -I../libnczarr -D_LARGEFILE_SOURCE 
-I../libsrc4 -I../libncpoco -I/home/sbasu/packages/include  -O3 -fPIC 
-fomit-frame-pointer -fno-strict-aliasing -MT libnczarr_la-zmap_zip.lo -MD -MP 
-MF .deps/libnczarr_la-zmap_zip.Tpo -c -o libnczarr_la-zmap_zip.lo `test -f 
'zmap_zip.c' || echo './'`zmap_zip.c
libtool: compile:  gcc -std=gnu11 -DHAVE_CONFIG_H -I. -I.. -I../include 
-I../include -I../oc2 -I../libnczarr -D_LARGEFILE_SOURCE -I../libsrc4 
-I../libncpoco -I/home/sbasu/packages/include -O3 -fPIC -fomit-frame-pointer 
-fno-strict-aliasing -MT libnczarr_la-zmap_zip.lo -MD -MP -MF 
.deps/libnczarr_la-zmap_zip.Tpo -c zmap_zip.c  -fPIC -DPIC -o 
.libs/libnczarr_la-zmap_zip.o
zmap_zip.c:60:5: error: unknown type name 'zip_t'
     zip_t* archive;

(and many more similar errors follow).

> On 27 Sep, 2022, at 3:07 PM, Dennis Heimbigner <dmh@xxxxxxxx> wrote:
> 
> It is possible/probable that
> > undefined reference to `zip_open’
> 
> is caused by configure trying to test
> for the library.  If the configure completes
> and make check works, then you probably can
> ignore that error.
> 
> On 9/27/2022 9:01 AM, Sourish Basu wrote:
>> Hello all,
>> 
>> I’m trying to compile netcdf 4.9.0 on a linux machine, and it fails with 
>> several errors from zmap_zip.c. Error log attached. I’ve compiled netcdf on 
>> many platforms, but this error is new to me. I’ve checked that I have the 
>> zlib headers in /usr/include, and zlib-devel is installed. However, 
>> config.log does have an error message
>> 
>> undefined reference to `zip_open’
>> 
>> Not sure if that’s important, because then later in that same file it says
>> 
>> configure:8113: checking whether libzip library is available
>> configure:8115: result: yes
>> 
>> So not sure what to make of it.
>> 
>> Thanks for any help,
>> 
>> Sourish
>> 
>> _______________________________________________
>> NOTE: All exchanges posted to Unidata maintained email lists are
>> recorded in the Unidata inquiry tracking system and made publicly
>> available through the web.  Users who post to any of the lists we
>> maintain are reminded to remove any personal information that they
>> do not want to be made public.
>> 
>> 
>> netcdfgroup mailing list
>> netcdfgroup@xxxxxxxxxxxxxxxx <mailto:netcdfgroup@xxxxxxxxxxxxxxxx>
>> For list information or to unsubscribe,  visit: 
>> https://www.unidata.ucar.edu/mailing_lists/ 
>> <https://www.unidata.ucar.edu/mailing_lists/>
  • 2022 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: