[BTC-dev] Static build crapocalypse.
Stanislav Datskovskiy
stas at loper-os.org
Thu Apr 2 01:00:41 UTC 2015
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
For the record. this is retarded.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
iQEcBAEBCgAGBQJVHJRqAAoJELmCKKABq//HgAwH/1skYDLaUAhTqVYzph4CBrxB
BKwwMwZ2xSDPvVjNPjme+itpigkuByrZmeP1/HAalE57VbPh56OlK8iqS25nJLiW
NR8lasKOUqnx9h5fS7kYgaYa4c0msz/T2fyn5VnOWliUGRIjQ9tt2hM+GGzkogLV
HwTVtQw4TJxKuKADJ94bJYKEknds2i+3VVNFUAU7/wgC0Qsr2srlC/Qm+tOPekpL
sTgOnOwtd2E/EyAFZgtr3NDrZgeAULajepiKmfGVdGj6MUDr2Rj2DcsiPoWoyK2q
5ztGtb0Cv31TdB+VdFAaJ2kI1uoZREg+6NzWLjK5ereCb4bCRwmAm7M9LQGIs6w=
=Sk9C
-----END PGP SIGNATURE-----
-------------- next part --------------
Normally, we get:
[... snip of dependencies building as expected ...]
----------------------------------------------------------------------------------------------------------------------------------------------------------
Found realpath.
Found curl.
Found 'openssl-1.0.1g', skipping...
Found 'db-4.8.30', skipping...
Found 'boost_1_52_0', skipping...
g++ -c -pthread -Wno-invalid-offsetof -Wformat -g -DNOPCH -I/home/stas/bitcoin-v0_5_3_1/ourlibs/include -I/home/stas/bitcoin-v0_5_3_1/ourlibs/include
-I/home/stas/bitcoin-v0_5_3_1/ourlibs/include -fno-stack-protector -fstack-protector-all -Wstack-protector -Wl,-z,relro -Wl,-z,now -D_FORTIFY_SOURCE=2 -O2 -MMD -o
obj/nogui/checkpoints.o checkpoints.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
g++ -c -pthread -Wno-invalid-offsetof -Wformat -g -DNOPCH -I/home/stas/bitcoin-v0_5_3_1/ourlibs/include -I/home/stas/bitcoin-v0_5_3_1/ourlibs/include
-I/home/stas/bitcoin-v0_5_3_1/ourlibs/include -fno-stack-protector -fstack-protector-all -Wstack-protector -Wl,-z,relro -Wl,-z,now -D_FORTIFY_SOURCE=2 -O2 -MMD -o
obj/nogui/crypter.o crypter.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
g++ -c -pthread -Wno-invalid-offsetof -Wformat -g -DNOPCH -I/home/stas/bitcoin-v0_5_3_1/ourlibs/include -I/home/stas/bitcoin-v0_5_3_1/ourlibs/include
-I/home/stas/bitcoin-v0_5_3_1/ourlibs/include -fno-stack-protector -fstack-protector-all -Wstack-protector -Wl,-z,relro -Wl,-z,now -D_FORTIFY_SOURCE=2 -O2 -MMD -o
obj/nogui/db.o db.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
g++ -c -pthread -Wno-invalid-offsetof -Wformat -g -DNOPCH -I/home/stas/bitcoin-v0_5_3_1/ourlibs/include -I/home/stas/bitcoin-v0_5_3_1/ourlibs/include
-I/home/stas/bitcoin-v0_5_3_1/ourlibs/include -fno-stack-protector -fstack-protector-all -Wstack-protector -Wl,-z,relro -Wl,-z,now -D_FORTIFY_SOURCE=2 -O2 -MMD -o
obj/nogui/init.o init.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
g++ -c -pthread -Wno-invalid-offsetof -Wformat -g -DNOPCH -I/home/stas/bitcoin-v0_5_3_1/ourlibs/include -I/home/stas/bitcoin-v0_5_3_1/ourlibs/include
-I/home/stas/bitcoin-v0_5_3_1/ourlibs/include -fno-stack-protector -fstack-protector-all -Wstack-protector -Wl,-z,relro -Wl,-z,now -D_FORTIFY_SOURCE=2 -O2 -MMD -o
obj/nogui/irc.o irc.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
g++ -c -pthread -Wno-invalid-offsetof -Wformat -g -DNOPCH -I/home/stas/bitcoin-v0_5_3_1/ourlibs/include -I/home/stas/bitcoin-v0_5_3_1/ourlibs/include
-I/home/stas/bitcoin-v0_5_3_1/ourlibs/include -fno-stack-protector -fstack-protector-all -Wstack-protector -Wl,-z,relro -Wl,-z,now -D_FORTIFY_SOURCE=2 -O2 -MMD -o
obj/nogui/keystore.o keystore.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
g++ -c -pthread -Wno-invalid-offsetof -Wformat -g -DNOPCH -I/home/stas/bitcoin-v0_5_3_1/ourlibs/include -I/home/stas/bitcoin-v0_5_3_1/ourlibs/include
-I/home/stas/bitcoin-v0_5_3_1/ourlibs/include -fno-stack-protector -fstack-protector-all -Wstack-protector -Wl,-z,relro -Wl,-z,now -D_FORTIFY_SOURCE=2 -O2 -MMD -o
obj/nogui/main.o main.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
g++ -c -pthread -Wno-invalid-offsetof -Wformat -g -DNOPCH -I/home/stas/bitcoin-v0_5_3_1/ourlibs/include -I/home/stas/bitcoin-v0_5_3_1/ourlibs/include
-I/home/stas/bitcoin-v0_5_3_1/ourlibs/include -fno-stack-protector -fstack-protector-all -Wstack-protector -Wl,-z,relro -Wl,-z,now -D_FORTIFY_SOURCE=2 -O2 -MMD -o
obj/nogui/net.o net.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
g++ -c -pthread -Wno-invalid-offsetof -Wformat -g -DNOPCH -I/home/stas/bitcoin-v0_5_3_1/ourlibs/include -I/home/stas/bitcoin-v0_5_3_1/ourlibs/include
-I/home/stas/bitcoin-v0_5_3_1/ourlibs/include -fno-stack-protector -fstack-protector-all -Wstack-protector -Wl,-z,relro -Wl,-z,now -D_FORTIFY_SOURCE=2 -O2 -MMD -o
obj/nogui/protocol.o protocol.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
In file included from protocol.cpp:7:0:
util.h:650:8: error: � does not name a type
inline uint32_t ByteReverse(uint32_t value)
^
makefile.unix:120: recipe for target 'obj/nogui/protocol.o' failed
make: *** [obj/nogui/protocol.o] Error 1
strip: 'bitcoind': No such file
----------------------------------------------------------------------------------------------------------------------------------------------------------
Then we apply asciilifeform-kills-integer-retardation.patch.
Let's try that build again:
----------------------------------------------------------------------------------------------------------------------------------------------------------
Found realpath.
Found curl.
Found 'openssl-1.0.1g', skipping...
Found 'db-4.8.30', skipping...
Found 'boost_1_52_0', skipping...
g++ -pthread -Wno-invalid-offsetof -Wformat -g -DNOPCH -I/home/stas/bitcoin-v0_5_3_1/ourlibs/include -I/home/stas/bitcoin-v0_5_3_1/ourlibs/include
-I/home/stas/bitcoin-v0_5_3_1/ourlibs/include -fno-stack-protector -fstack-protector-all -Wstack-protector -Wl,-z,relro -Wl,-z,now -D_FORTIFY_SOURCE=2 -O2 -o bitcoind
obj/nogui/checkpoints.o obj/nogui/crypter.o obj/nogui/db.o obj/nogui/init.o obj/nogui/irc.o obj/nogui/keystore.o obj/nogui/main.o obj/nogui/net.o obj/nogui/protocol.o
obj/nogui/bitcoinrpc.o obj/nogui/script.o obj/nogui/util.o obj/nogui/wallet.o -L/home/stas/bitcoin-v0_5_3_1/ourlibs/lib -L/home/stas/bitcoin-v0_5_3_1/ourlibs/lib
-L/home/stas/bitcoin-v0_5_3_1/ourlibs/lib -Wl,-Bstatic -l boost_system -l boost_filesystem -l boost_program_options -l boost_thread -l db_cxx -l ssl -l crypto
-static-libgcc -Wl,-Bstatic -l pthread
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lssl
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lcrypto
obj/nogui/bitcoinrpc.o: In function `getaddrinfo':
/home/stas/bitcoin-v0_5_3_1/ourlibs/include/boost/asio/detail/impl/socket_ops.ipp:2900: warning: Using 'getaddrinfo' in statically linked applications requires at runtime
the shared libraries from the glibc version used for linking
obj/nogui/net.o: In function `Lookup':
/home/stas/bitcoin-v0_5_3_1/bitcoin/src/net.cpp:238: warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the
glibc version used for linking
collect2: error: ld returned 1 exit status
makefile.unix:127: recipe for target 'bitcoind' failed
make: *** [bitcoind] Error 1
strip: 'bitcoind': No such file
Done!
----------------------------------------------------------------------------------------------------------------------------------------------------------
Q: Which gcc?
A:
$ gcc --version
gcc (Gentoo 4.8.3 p1.1, pie-0.5.9) 4.8.3
Q: WTF.
A: I know.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: message.txt.sig
Type: application/octet-stream
Size: 490 bytes
Desc: not available
URL: <http://therealbitcoin.org/ml/btc-dev/attachments/20150401/message_905f3216f2a8c7f575682a5cf0b6b1d602ab8dc4.txt.sig>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: asciilifeform-kills-integer-retardation.patch
Type: text/x-patch
Size: 1163 bytes
Desc: not available
URL: <http://therealbitcoin.org/ml/btc-dev/attachments/20150401/asciilifeform-kills-integer-retardation_8685d541f20bcfe8d8cc9fefba663dd861f7b237.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: asciilifeform-kills-integer-retardation.patch.sig
Type: application/octet-stream
Size: 490 bytes
Desc: not available
URL: <http://therealbitcoin.org/ml/btc-dev/attachments/20150401/asciilifeform-kills-integer-retardation_1689cdcb62380ffd3c978bb7225946cb432ef2f1.patch.sig>
More information about the BTC-dev
mailing list