Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autogen.sh doesn't work on OS X #138

Open
ilovezfs opened this issue Feb 28, 2016 · 10 comments
Open

autogen.sh doesn't work on OS X #138

ilovezfs opened this issue Feb 28, 2016 · 10 comments

Comments

@ilovezfs
Copy link

I noticed the 4store URL was no longer active, so was trying to update the Homebrew formula with the release tarball here. However, there is no configure provided and autogen.sh fails:

==> ./autogen.sh
Preparing the 4store build system...please wait

Found GNU Autoconf version 2.69
Found GNU Automake version 1.15
Found GNU Libtool version 2.4.6

Warning: Several files expected of projects that conform to the GNU
coding standards were not found.  The files were automatically added
for you since you do not have a 'foreign' declaration specified.

Considered adding 'foreign' to AM_INIT_AUTOMAKE in configure.ac
or to AUTOMAKE_OPTIONS in your top-level Makefile.am file.


Automatically preparing build ... Warning: autoreconf failed
Attempting to run the preparation steps individually

Preparing build ... ERROR: aclocal failed

@ilovezfs
Copy link
Author

ilovezfs commented Apr 4, 2016

This is caused by the tagged tarballs not containing neither a .version file nor the .git directory. It would be great if either a .version could be checked into the repository, or separate release tarballs containing .version were made available, preferably with autogen.sh already having been run so we can remove the dependencies on automake, autoconf, and libtool as well. Thanks!

@ilovezfs
Copy link
Author

ilovezfs commented Apr 4, 2016

Also is there a reason for autogen.sh not just running autoreconf -fvi?

@swh
Copy link
Collaborator

swh commented Apr 7, 2016

There's no good reason for any of that as far as I know.

Happy to merge a pull request with those changes.

@ilovezfs
Copy link
Author

ilovezfs commented Apr 7, 2016

Not sure how a PR can fix the lack of a .version file in the tarball or Autotools not having already been run so that there would be a distributed configure, Makefile, etc. in the tarball too. But yes, a PR could replace autogen.sh with one that just runs autoreconf -fvi.

@ilovezfs
Copy link
Author

ilovezfs commented Apr 7, 2016

Typically projects have separate source archive and release tarballs listed on this page: https://github.com/garlik/4store/releases and the release tarballs have had Autotools already run and other such distribution tweaks like the .version thing.

@swh
Copy link
Collaborator

swh commented Apr 7, 2016

OK... I don't think I've ever seen that page before, looks like it's built automatically from the repo? How do we control what tarball gets built?

@swh
Copy link
Collaborator

swh commented Apr 7, 2016

Ah, nevermind, just seen the draft a new release link.

OK, I'll add it to the todo list.

@chenrui333
Copy link

@swh 👋 I am still seeing autogen issue with macos build

Warning: Several files expected of projects that conform to the GNU
coding standards were not found.  The files were automatically added
for you since you do not have a 'foreign' declaration specified.

Considered adding 'foreign' to AM_INIT_AUTOMAKE in configure.ac
or to AUTOMAKE_OPTIONS in your top-level Makefile.am file.


Automatically preparing build ... Warning: autoreconf failed
Attempting to run the preparation steps individually

Preparing build ... ERROR: aclocal failed

relates to Homebrew/homebrew-core#171366

@swh
Copy link
Collaborator

swh commented May 10, 2024

That's interesting - I got a build to succeed on OSX (14.4.1) with home-brew libraries, but it failed to execute.

@swh
Copy link
Collaborator

swh commented May 10, 2024

Head adds foreign to AM_INIT_AUTOMAKE, see if that helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants