libmacaroons icon indicating copy to clipboard operation
libmacaroons copied to clipboard

syntax error in VERSION script

Open kyrias opened this issue 8 years ago • 2 comments

Getting the following error when trying to build the python bindings using python 3.6:

/usr/bin/ld:bindings/python/.libs/macaroons.ver:2: syntax error in VERSION script

Said file contains the following:

{ global:
local: *; };

Same issue as #16 that was closed without actually being addressed.

kyrias avatar Jun 15 '17 18:06 kyrias

It's been awhile since I saw this issue, so please forgive me if this doesn't fix things right away.

The root cause here is that the macaroons.ver file is generated early on and systems with both Python3 and Python2 don't play nice. I believe that you can solve this by completely cleaning the repository (I use git clean -xfd, which can/will destroy all files in the working directory that are not checked in) and then rebuilding with autoreconf -ivf && ./configure PYTHON=/path/to/chosen/python.

I believe Evan closed #16 because he found some joy in implementing PyMacaroons and it fixed his issue.

rescrv avatar Jun 15 '17 21:06 rescrv

I've taken another look at this now, and it looks like the problem comes down to how you build and use the python module. As of the commit I just pushed to github (I forgot to push awhile back... whooops), I can do:

  • git clean -xfd && autoreconf -ivf && ./configure PYTHON=/usr/bin/python2 && make && make check
  • git clean -xfd && autoreconf -ivf && ./configure PYTHON=/usr/bin/python3 && make && make check

I think this demonstrates a viable solution. If you could confirm, I would appreciate it. I'll leave the issue open a week or more longer, and if I don't hear anything I'll close it. If I do that, please reopen it with more information and we can work to resolve the problem. I am able to create the same problem you describe with older commits before the 2/3 bilingual-ness was added (9cc2f68e8166).

rescrv avatar Jun 16 '17 21:06 rescrv