Parallel-NetCDF / PnetCDF

Source code repository of PnetCDF library and utilities
https://parallel-netcdf.github.io
Other
83 stars 23 forks source link

m4 problem in autoreconf #134

Open VictorEijkhout opened 8 months ago

VictorEijkhout commented 8 months ago
configure.ac:452: error: m4_defn: undefined macro: LT_PACKAGE_VERSION
m4/libtool.m4:40: LT_PREREQ is expanded from...
configure.ac:452: the top level
autom4te: error: /work/00434/eijkhout/m4/installation-m4-1.4.19-milan-gcc13/bin/m4 failed with exit status: 1
aclocal: error: /work/00434/eijkhout/autoconf/installation-autoconf-2.72-milan-gcc13/bin/autom4te failed with exit status: 1
autoreconf: error: aclocal failed with exit status: 1

I have compiler m4/autoconf/automake/libtool from source since my system did not have the latest versions you requested. Did I miss something in the setup? The Gnu pages seem to indicate that configure/make on each of these should be enough.

wkliao commented 8 months ago

If building PnetCDF using its official releases, you do not need to run autoreconf. Running command configure is sufficient. Running autoreconf is only required when building from a clone of GitHub repo.

VictorEijkhout commented 8 months ago

Right. I'm now able to build the official release.

But I'm still wondering (just a little) where this problem with installing from a git clone comes from.

wkliao commented 8 months ago

Maybe your libtool version is older than 2.4.6. Please check with command "libtool --version".

VictorEijkhout commented 8 months ago
libtool --version
libtool (GNU libtool) 2.4.7
Written by Gordon Matzigkeit, 1996

Copyright (C) 2014 Free Software Foundation, Inc

Besides, it says the macro is undefined. I tried setting it as an environment variable but that didn't help.

wkliao commented 8 months ago

I tested it with libtool 2.4.6 only. Maybe there is a conflict when using 2.4.7. Could you give 2.4.6 a try?