Last active
August 29, 2015 14:20
-
-
Save g00cey/1d4df2d4da86fd1d0180 to your computer and use it in GitHub Desktop.
opensslを自分でビルドしたものを各公式パッケージプログラムにそのまま利用させられるか?を確認。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo rm -rf /usr/local/openssl-1.0.1e | |
make clean | |
export CFLAGS="-fPIC" | |
./config --prefix=/usr/local/openssl-1.0.1e \ | |
shared zlib shared \ | |
enable-camellia enable-seed enable-tlsext enable-rfc3779 enable-cms enable-md2 | |
make | |
sudo make install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[vagrant@localhost lib64]$ objdump -p /usr/local/openssl-1.0.1e/lib/libssl.so | |
/usr/local/openssl-1.0.1e/lib/libssl.so: file format elf64-x86-64 | |
Program Header: | |
LOAD off 0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**21 | |
filesz 0x000000000005f3fc memsz 0x000000000005f3fc flags r-x | |
LOAD off 0x000000000005f400 vaddr 0x000000000025f400 paddr 0x000000000025f400 align 2**21 | |
filesz 0x0000000000009360 memsz 0x0000000000009468 flags rw- | |
DYNAMIC off 0x00000000000624e8 vaddr 0x00000000002624e8 paddr 0x00000000002624e8 align 2**3 | |
filesz 0x00000000000001d0 memsz 0x00000000000001d0 flags rw- | |
NOTE off 0x0000000000000190 vaddr 0x0000000000000190 paddr 0x0000000000000190 align 2**2 | |
filesz 0x0000000000000024 memsz 0x0000000000000024 flags r-- | |
EH_FRAME off 0x00000000000585e4 vaddr 0x00000000000585e4 paddr 0x00000000000585e4 align 2**2 | |
filesz 0x00000000000012e4 memsz 0x00000000000012e4 flags r-- | |
STACK off 0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**3 | |
filesz 0x0000000000000000 memsz 0x0000000000000000 flags rw- | |
Dynamic Section: | |
NEEDED libcrypto.so.1.0.0 | |
NEEDED libdl.so.2 | |
NEEDED libz.so.1 | |
NEEDED libc.so.6 | |
SONAME libssl.so.1.0.0 | |
SYMBOLIC 0x0000000000000000 | |
INIT 0x00000000000159b0 | |
FINI 0x00000000000519e8 | |
GNU_HASH 0x00000000000001b8 | |
STRTAB 0x0000000000006b38 | |
SYMTAB 0x00000000000014b0 | |
STRSZ 0x000000000000438a | |
SYMENT 0x0000000000000018 | |
PLTGOT 0x0000000000262780 | |
PLTRELSZ 0x0000000000002100 | |
PLTREL 0x0000000000000007 | |
JMPREL 0x00000000000138b0 | |
RELA 0x000000000000b618 | |
RELASZ 0x0000000000008298 | |
RELAENT 0x0000000000000018 | |
VERNEED 0x000000000000b5f8 | |
VERNEEDNUM 0x0000000000000001 | |
VERSYM 0x000000000000aec2 | |
RELACOUNT 0x0000000000000565 | |
Version References: | |
required from libc.so.6: | |
0x09691a75 0x00 02 GLIBC_2.2.5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo rm -rf /usr/local/openssl-1.0.1e-version | |
make clean | |
export CFLAGS="-fPIC" | |
./config --prefix=/usr/local/openssl-1.0.1e-version \ | |
shared zlib shared \ | |
enable-camellia enable-seed enable-tlsext enable-rfc3779 enable-cms enable-md2 | |
Wl,--version-script=/home/vagrant/openssl-1.0.1m/openssl.ld -Wl,-Bsymbolic-functions | |
make | |
sudo make install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[vagrant@localhost lib64]$ objdump -p /usr/local/openssl-1.0.1e-version/lib/libssl.so.1.0.0 | |
/usr/local/openssl-1.0.1e-version/lib/libssl.so.1.0.0: file format elf64-x86-64 | |
Program Header: | |
LOAD off 0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**21 | |
filesz 0x000000000005f3fc memsz 0x000000000005f3fc flags r-x | |
LOAD off 0x000000000005f400 vaddr 0x000000000025f400 paddr 0x000000000025f400 align 2**21 | |
filesz 0x0000000000009360 memsz 0x0000000000009468 flags rw- | |
DYNAMIC off 0x00000000000624e8 vaddr 0x00000000002624e8 paddr 0x00000000002624e8 align 2**3 | |
filesz 0x00000000000001d0 memsz 0x00000000000001d0 flags rw- | |
NOTE off 0x0000000000000190 vaddr 0x0000000000000190 paddr 0x0000000000000190 align 2**2 | |
filesz 0x0000000000000024 memsz 0x0000000000000024 flags r-- | |
EH_FRAME off 0x00000000000585e4 vaddr 0x00000000000585e4 paddr 0x00000000000585e4 align 2**2 | |
filesz 0x00000000000012e4 memsz 0x00000000000012e4 flags r-- | |
STACK off 0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**3 | |
filesz 0x0000000000000000 memsz 0x0000000000000000 flags rw- | |
Dynamic Section: | |
NEEDED libcrypto.so.1.0.0 | |
NEEDED libdl.so.2 | |
NEEDED libz.so.1 | |
NEEDED libc.so.6 | |
SONAME libssl.so.1.0.0 | |
SYMBOLIC 0x0000000000000000 | |
INIT 0x00000000000159b0 | |
FINI 0x00000000000519e8 | |
GNU_HASH 0x00000000000001b8 | |
STRTAB 0x0000000000006b38 | |
SYMTAB 0x00000000000014b0 | |
STRSZ 0x000000000000438a | |
SYMENT 0x0000000000000018 | |
PLTGOT 0x0000000000262780 | |
PLTRELSZ 0x0000000000002100 | |
PLTREL 0x0000000000000007 | |
JMPREL 0x00000000000138b0 | |
RELA 0x000000000000b618 | |
RELASZ 0x0000000000008298 | |
RELAENT 0x0000000000000018 | |
VERNEED 0x000000000000b5f8 | |
VERNEEDNUM 0x0000000000000001 | |
VERSYM 0x000000000000aec2 | |
RELACOUNT 0x0000000000000565 | |
Version References: | |
required from libc.so.6: | |
0x09691a75 0x00 02 GLIBC_2.2.5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo rm -rf /usr/local/openssl-1.0.1m | |
make clean | |
#./config --prefix=/usr/local/openssl-1.0.1m zlib shared \ | |
# enable-camellia enable-seed enable-tlsext enable-rfc3779 enable-cms enable-md2 \ | |
# -Wl,--version-script=/home/vagrant/openssl-1.0.1m/openssl.ld -Wl,-Bsymbolic-functions | |
# -fPIC | |
export CFLAGS="-fPIC" | |
./config --prefix=/usr/local/openssl-1.0.1m \ | |
shared zlib threads \ | |
enable-camellia enable-seed enable-tlsext enable-rfc3779 enable-cms enable-md2 | |
make | |
sudo make install | |
~ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo rm -rf /usr/local/openssl-1.0.1m | |
make clean | |
export CFLAGS="-fPIC" | |
./config --prefix=/usr/local/openssl-1.0.1m \ | |
shared zlib shared \ | |
enable-camellia enable-seed enable-tlsext enable-rfc3779 enable-cms enable-md2 | |
make | |
sudo make install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[vagrant@localhost lib64]$ objdump -p /usr/local/openssl-1.0.1m/lib/libssl.so | |
/usr/local/openssl-1.0.1m/lib/libssl.so: file format elf64-x86-64 | |
Program Header: | |
LOAD off 0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**21 | |
filesz 0x0000000000060b3c memsz 0x0000000000060b3c flags r-x | |
LOAD off 0x0000000000061000 vaddr 0x0000000000261000 paddr 0x0000000000261000 align 2**21 | |
filesz 0x0000000000009470 memsz 0x0000000000009588 flags rw- | |
DYNAMIC off 0x0000000000064148 vaddr 0x0000000000264148 paddr 0x0000000000264148 align 2**3 | |
filesz 0x00000000000001d0 memsz 0x00000000000001d0 flags rw- | |
NOTE off 0x0000000000000190 vaddr 0x0000000000000190 paddr 0x0000000000000190 align 2**2 | |
filesz 0x0000000000000024 memsz 0x0000000000000024 flags r-- | |
EH_FRAME off 0x0000000000059c2c vaddr 0x0000000000059c2c paddr 0x0000000000059c2c align 2**2 | |
filesz 0x000000000000130c memsz 0x000000000000130c flags r-- | |
STACK off 0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**3 | |
filesz 0x0000000000000000 memsz 0x0000000000000000 flags rw- | |
Dynamic Section: | |
NEEDED libcrypto.so.1.0.0 | |
NEEDED libdl.so.2 | |
NEEDED libz.so.1 | |
NEEDED libc.so.6 | |
SONAME libssl.so.1.0.0 | |
SYMBOLIC 0x0000000000000000 | |
INIT 0x0000000000015bb0 | |
FINI 0x0000000000052dc8 | |
GNU_HASH 0x00000000000001b8 | |
STRTAB 0x0000000000006bf0 | |
SYMTAB 0x00000000000014c0 | |
STRSZ 0x00000000000043fd | |
SYMENT 0x0000000000000018 | |
PLTGOT 0x00000000002643e0 | |
PLTRELSZ 0x0000000000002160 | |
PLTREL 0x0000000000000007 | |
JMPREL 0x0000000000013a50 | |
RELA 0x000000000000b758 | |
RELASZ 0x00000000000082f8 | |
RELAENT 0x0000000000000018 | |
VERNEED 0x000000000000b738 | |
VERNEEDNUM 0x0000000000000001 | |
VERSYM 0x000000000000afee | |
RELACOUNT 0x0000000000000569 | |
Version References: | |
required from libc.so.6: | |
0x09691a75 0x00 02 GLIBC_2.2.5 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo rm -rf /usr/local/openssl-1.0.1m-version | |
make clean | |
export CFLAGS="-fPIC" | |
./config --prefix=/usr/local/openssl-1.0.1m-version \ | |
shared zlib shared \ | |
enable-camellia enable-seed enable-tlsext enable-rfc3779 enable-cms enable-md2 | |
Wl,--version-script=/home/vagrant/openssl-1.0.1m/openssl.ld -Wl,-Bsymbolic-functions | |
make | |
sudo make install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[vagrant@localhost lib64]$ objdump -p /usr/local/openssl-1.0.1m-version/lib/libssl.so | |
/usr/local/openssl-1.0.1m-version/lib/libssl.so: file format elf64-x86-64 | |
Program Header: | |
LOAD off 0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**21 | |
filesz 0x0000000000060b3c memsz 0x0000000000060b3c flags r-x | |
LOAD off 0x0000000000061000 vaddr 0x0000000000261000 paddr 0x0000000000261000 align 2**21 | |
filesz 0x0000000000009470 memsz 0x0000000000009588 flags rw- | |
DYNAMIC off 0x0000000000064148 vaddr 0x0000000000264148 paddr 0x0000000000264148 align 2**3 | |
filesz 0x00000000000001d0 memsz 0x00000000000001d0 flags rw- | |
NOTE off 0x0000000000000190 vaddr 0x0000000000000190 paddr 0x0000000000000190 align 2**2 | |
filesz 0x0000000000000024 memsz 0x0000000000000024 flags r-- | |
EH_FRAME off 0x0000000000059c2c vaddr 0x0000000000059c2c paddr 0x0000000000059c2c align 2**2 | |
filesz 0x000000000000130c memsz 0x000000000000130c flags r-- | |
STACK off 0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**3 | |
filesz 0x0000000000000000 memsz 0x0000000000000000 flags rw- | |
Dynamic Section: | |
NEEDED libcrypto.so.1.0.0 | |
NEEDED libdl.so.2 | |
NEEDED libz.so.1 | |
NEEDED libc.so.6 | |
SONAME libssl.so.1.0.0 | |
SYMBOLIC 0x0000000000000000 | |
INIT 0x0000000000015bb0 | |
FINI 0x0000000000052dc8 | |
GNU_HASH 0x00000000000001b8 | |
STRTAB 0x0000000000006bf0 | |
SYMTAB 0x00000000000014c0 | |
STRSZ 0x00000000000043fd | |
SYMENT 0x0000000000000018 | |
PLTGOT 0x00000000002643e0 | |
PLTRELSZ 0x0000000000002160 | |
PLTREL 0x0000000000000007 | |
JMPREL 0x0000000000013a50 | |
RELA 0x000000000000b758 | |
RELASZ 0x00000000000082f8 | |
RELAENT 0x0000000000000018 | |
VERNEED 0x000000000000b738 | |
VERNEEDNUM 0x0000000000000001 | |
VERSYM 0x000000000000afee | |
RELACOUNT 0x0000000000000569 | |
Version References: | |
required from libc.so.6: | |
0x09691a75 0x00 02 GLIBC_2.2.5 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[vagrant@localhost bin]$ cd /usr/bin | |
[vagrant@localhost bin]$ sudo rm openssl | |
[vagrant@localhost bin]$ sudo ln -s /usr/local/openssl-1.0.1m/bin/openssl | |
[vagrant@localhost bin]$ sudo ln -s /usr/local/openssl-1.0.1m/bin/c_rehash | |
これでいいかな。。。。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment