chrislim2888 / IP2Location-C-Library

IP2Location C library enables the user to find the country, region, city, coordinates, zip code, time zone, ISP, domain name, connection type, area code, weather station code, weather station name, mobile, usage types, etc that any IP address or hostname originates from.
https://www.ip2location.com
MIT License
61 stars 30 forks source link

Problem building in autoreconf #66

Closed rperper closed 1 month ago

rperper commented 1 month ago

On a number of different Linux systems (AlmaLinux 8, Ubuntu 22.04 and others) using 8.6.1 or master, autoreconf reports this error:

autoreconf -i -v --force
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force 
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in '../..'.
libtoolize: copying file '../../ltmain.sh'
libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac,
libtoolize: and rerunning libtoolize and aclocal.
libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:8: installing '../../compile'
configure.ac:3: installing '../../missing'
BUG.am: error: 'install.sh' is an anachronism; use 'install-sh' instead
Makefile.am: installing '../../depcomp'
autoreconf: automake failed with exit status: 1

Others seem to get past it, what am I doing wrong? Thanks!

ip2location commented 1 month ago

I have tested under Debian 12, Ubuntu 22 and AlmaLinux 8, but I'm not able to reproduce the error mentioned.

Please make sure your machine has the latest auto tools and libtool installed then try again.

rperper commented 1 month ago

Yep, that was the case! When I deleted the system entirely and recreated it, I could recompile successfully. Thanks for your patience and help!

rperper commented 1 month ago

Just an additional note in case someone else runs into it. It turns out that this happens if you have a project inside a project. Projects need separate directories!