Bug #452
closedINSTALL instructions are outdated, and do not work on Ubuntu 12.04
Added by Pavel Lishin over 9 years ago. Updated over 4 years ago.
0%
Description
I tried following the instructions in INSTALL, and they didn't work - there were gcc complaints, some steps were missing, and there was a known issue that was only described on an FAQ page in the wiki.
Files
bip-452.patch (4.69 KB) bip-452.patch | Pavel Lishin, 2015-06-04 03:58 |
Updated by Pavel Lishin over 9 years ago
Crap, title is wrong, this is on an Ubuntu 12.04 virtualbox.
Updated by Pavel Lishin over 9 years ago
- File bip-452.patch bip-452.patch added
Problem 1:
vagrant@precise32:/vagrant$ autoreconf Can't exec "libtoolize": No such file or directory at /usr/bin/autoreconf line 196. Use of uninitialized value in pattern match (m//) at /usr/bin/autoreconf line 196. configure.ac:11: required file `./compile' not found configure.ac:11: `automake --add-missing' can install `compile' configure.ac:3: required file `./install-sh' not found configure.ac:3: `automake --add-missing' can install `install-sh' configure.ac:3: required file `./missing' not found configure.ac:3: `automake --add-missing' can install `missing' Makefile.am: required file `./depcomp' not found Makefile.am: `automake --add-missing' can install `depcomp' configure.ac: required file `./ylwrap' not found configure.ac: `automake --add-missing' can install `ylwrap' autoreconf: automake failed with exit status: 1
Solution 1:
Run sudo apt-get install build-essential libtool
first (should be added to INSTALL or FAQ wiki page)
Problem 2:
vagrant@precise32:/vagrant$ autoreconf configure.ac:11: required file `./compile' not found configure.ac:11: `automake --add-missing' can install `compile' configure.ac:3: required file `./install-sh' not found configure.ac:3: `automake --add-missing' can install `install-sh' configure.ac:3: required file `./missing' not found configure.ac:3: `automake --add-missing' can install `missing' Makefile.am: required file `./depcomp' not found Makefile.am: `automake --add-missing' can install `depcomp' configure.ac: required file `./ylwrap' not found configure.ac: `automake --add-missing' can install `ylwrap' autoreconf: automake failed with exit status: 1
Solution 2:
vagrant@precise32:/vagrant$ automake --add-missing configure.ac:11: installing `./compile' configure.ac:3: installing `./install-sh' configure.ac:3: installing `./missing' Makefile.am: installing `./depcomp' configure.ac: installing `./ylwrap'
Problem 3:
After running ./configure
, make
fails.
vagrant@precise32:/vagrant$ make test -f src/conf.c || /bin/bash ./ylwrap src/conf.y y.tab.c src/conf.c y.tab.h src/conf.h y.output src/conf.output -- bison -y -d updating src/conf.h test -f src/lex.c || /bin/bash ./ylwrap src/lex.l lex.yy.c src/lex.c -- flex make all-am make[1]: Entering directory `/vagrant' depbase=`echo src/conf.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ gcc -DHAVE_CONFIG_H -I. -I./src -Wall -Wextra -Werror -g -O2 -fPIE -MT src/conf.o -MD -MP -MF $depbase.Tpo -c -o src/conf.o src/conf.c &&\ mv -f $depbase.Tpo $depbase.Po depbase=`echo src/lex.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ gcc -DHAVE_CONFIG_H -I. -I./src -Wall -Wextra -Werror -g -O2 -fPIE -MT src/lex.o -MD -MP -MF $depbase.Tpo -c -o src/lex.o src/lex.c &&\ mv -f $depbase.Tpo $depbase.Po depbase=`echo src/bip.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ gcc -DHAVE_CONFIG_H -I. -I./src -Wall -Wextra -Werror -g -O2 -fPIE -MT src/bip.o -MD -MP -MF $depbase.Tpo -c -o src/bip.o src/bip.c &&\ mv -f $depbase.Tpo $depbase.Po src/bip.c: In function 'main': src/bip.c:1315:7: error: ignoring return value of 'write', declared with attribute warn_unused_result [-Werror=unused-result] cc1: all warnings being treated as errors make[1]: *** [src/bip.o] Error 1 make[1]: Leaving directory `/vagrant' make: *** [all] Error 2
Solution 3:
See attached patch file.
Updated by Pavel Lishin over 9 years ago
Argh, can't edit my own comments, totally screwed up the formatting there.
Updated by Pierre-Louis Bonicoli over 9 years ago
- Subject changed from INSTALL instructions are outdated, and do not work on OS X 10.9.5 to INSTALL instructions are outdated, and do not work on Ubuntu 12.04
Updated by Pierre-Louis Bonicoli over 4 years ago
- Status changed from New to Resolved
- Target version set to 0.9.0
source:INSTALL refers to source:README which provides specific instructions (63453bad41681d8c7c98ee279f80a16312deb7e5).