Project

General

Profile

Actions

Bug #452

closed

INSTALL instructions are outdated, and do not work on Ubuntu 12.04

Added by Pavel Lishin almost 9 years ago. Updated almost 4 years ago.

Status:
Resolved
Priority:
Low
Assignee:
-
Target version:
Start date:
2015-06-04
Due date:
% Done:

0%

Estimated time:
Patch Available:
Found in Versions:
Confirmed:
No
Branch:
Security:
Help Needed:

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
Actions #1

Updated by Pavel Lishin almost 9 years ago

Crap, title is wrong, this is on an Ubuntu 12.04 virtualbox.

Actions #2

Updated by Pavel Lishin almost 9 years ago

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.

Actions #3

Updated by Pavel Lishin almost 9 years ago

Argh, can't edit my own comments, totally screwed up the formatting there.

Actions #4

Updated by Pierre-Louis Bonicoli almost 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
Actions #5

Updated by Pierre-Louis Bonicoli almost 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).

Actions

Also available in: Atom PDF