build_ruby
build_ruby copied to clipboard
Can't build packages for ubuntu 14.x
When running:
./build_ruby -r 2.1.0 -i 37s~trusty -d ubuntu:14.04
I get:
make[2]: Entering directory `/tmp/ruby-2.1.0/ext/readline'
compiling readline.c
readline.c: In function 'Init_readline':
readline.c:1977:26: error: 'Function' undeclared (first use in this function)
rl_pre_input_hook = (Function *)readline_pre_input_hook;
^
readline.c:1977:26: note: each undeclared identifier is reported only once for each function it appears in
readline.c:1977:36: error: expected expression before ')' token
rl_pre_input_hook = (Function *)readline_pre_input_hook;
^
make[2]: *** [readline.o] Error 1
make[1]: *** [ext/readline/all] Error 2
make[1]: make[2]: Leaving directory `/tmp/ruby-2.1.0/ext/readline'
*** Waiting for unfinished jobs....
compiling ossl_pkcs5.c
compiling ossl_pkey_rsa.c
compiling ossl_cipher.c
compiling ossl_bn.c
compiling ossl_engine.c
linking shared-object dl/callback.so
compiling ossl_ssl_session.c
make[2]: Leaving directory `/tmp/ruby-2.1.0/ext/dl/callback'
compiling ossl_pkey_dsa.c
compiling ossl_x509crl.c
compiling openssl_missing.c
compiling ossl_digest.c
compiling ossl_x509revoked.c
compiling ossl_rand.c
compiling ossl_pkey_dh.c
compiling ossl_x509req.c
compiling ossl_pkey.c
compiling ossl_ns_spki.c
compiling ossl_config.c
compiling ossl_hmac.c
compiling ossl_bio.c
compiling ossl_x509ext.c
installing default openssl libraries
linking shared-object openssl.so
make[2]: Leaving directory `/tmp/ruby-2.1.0/ext/openssl'
make[1]: Leaving directory `/tmp/ruby-2.1.0'
make: *** [build-ext] Error 2
panic: The command [/bin/sh -c make -j4 install DESTDIR=/tmp/fpm] returned a non-zero code: 2
goroutine 1 [running]:
runtime.panic(0x287dc0, 0xc210097630)
/usr/local/Cellar/go/1.2.1/libexec/src/pkg/runtime/panic.c:266 +0xb6
main.buildRuby(0xc2100526a0)
/Users/will/www/go/src/github.com/wjessop/build_ruby/build_ruby.go:100 +0x818
github.com/codegangsta/cli.(*App).Run(0xc21000f640, 0xc21000a000, 0x7, 0x7, 0xc, ...)
/Users/will/www/go/src/github.com/codegangsta/cli/app.go:106 +0x839
main.main()
/Users/will/www/go/src/github.com/wjessop/build_ruby/build_ruby.go:69 +0x2bc
goroutine 6 [runnable]:
net/http.(*persistConn).readLoop(0xc21005f500)
/usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/http/transport.go:778 +0x68f
created by net/http.(*Transport).dialConn
/usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/http/transport.go:528 +0x607
goroutine 5 [syscall]:
runtime.goexit()
/usr/local/Cellar/go/1.2.1/libexec/src/pkg/runtime/proc.c:1394
goroutine 7 [select]:
net/http.(*persistConn).writeLoop(0xc21005f500)
/usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/http/transport.go:791 +0x271
created by net/http.(*Transport).dialConn
/usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/http/transport.go:529 +0x61e
Relevant notes and patch:
https://www.ruby-forum.com/topic/4510270 https://gist.github.com/mislav/a18b9d7f0dc5b9efc162