hello guys i am compiling in 32bit ubuntu 12.04LTS GO Vesrion 1.6.2 (32bit)
openssl version OpenSSL 1.0.1 14 Mar 2012 i have required library also /lib/i386-linux-gnu/libcrypto.so.1.0.0 /usr/lib/i386-linux-gnu/libcrypto.a /usr/lib/i386-linux-gnu/libcrypto.so /usr/lib/i386-linux-gnu/pkgconfig/libcrypto.pc I am able to create static binary in 64bit ubuntu 10.04,14.04 but i don't know why i am not able to create in 32bit ubuntu I am getting this error ,i don't any clue please help go build --ldflags '-extldflags "-static"' encrypto.go # command-line-arguments /usr/local/go/pkg/tool/linux_386/link: running gcc failed: exit status 1 /tmp/go-link-283149086/000000.o: In function `unixDlOpen': /root/gocode/src/github.com/xeodou/go-sqlcipher/sqlite3-binding.c:37085: warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libcrypto.a(c_zlib.o): In function `bio_zlib_free': (.text+0x4f): undefined reference to `inflateEnd' /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libcrypto.a(c_zlib.o): In function `bio_zlib_free': (.text+0x6b): undefined reference to `deflateEnd' /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libcrypto.a(c_zlib.o): In function `bio_zlib_ctrl': (.text+0x252): undefined reference to `deflate' /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libcrypto.a(c_zlib.o): In function `bio_zlib_ctrl': (.text+0x310): undefined reference to `zError' /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libcrypto.a(c_zlib.o): In function `zlib_stateful_expand_block': (.text+0x3ac): undefined reference to `inflate' /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libcrypto.a(c_zlib.o): In function `zlib_stateful_compress_block': (.text+0x43f): undefined reference to `deflate' /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libcrypto.a(c_zlib.o): In function `zlib_stateful_finish': (.text+0x49d): undefined reference to `inflateEnd' /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libcrypto.a(c_zlib.o): In function `zlib_stateful_finish': (.text+0x4a8): undefined reference to `deflateEnd' /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libcrypto.a(c_zlib.o): In function `zlib_stateful_init': (.text+0x55b): undefined reference to `inflateInit_' /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libcrypto.a(c_zlib.o): In function `zlib_stateful_init': (.text+0x5d0): undefined reference to `deflateInit_' /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libcrypto.a(c_zlib.o): In function `bio_zlib_read': (.text+0x800): undefined reference to `inflate' /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libcrypto.a(c_zlib.o): In function `bio_zlib_read': (.text+0x88a): undefined reference to `zError' /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libcrypto.a(c_zlib.o): In function `bio_zlib_read': (.text+0x8fb): undefined reference to `inflateInit_' /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libcrypto.a(c_zlib.o): In function `bio_zlib_write': (.text+0x9f6): undefined reference to `deflate' /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libcrypto.a(c_zlib.o): In function `bio_zlib_write': (.text+0xa78): undefined reference to `zError' /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libcrypto.a(c_zlib.o): In function `bio_zlib_write': (.text+0xb1e): undefined reference to `deflateInit_' collect2: ld returned 1 exit status Thanks -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.