Skip to content

Instantly share code, notes, and snippets.

@steeve

steeve/empty.go Secret

Last active August 29, 2015 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steeve/8f9adf78c282bb8ffc2f to your computer and use it in GitHub Desktop.
Save steeve/8f9adf78c282bb8ffc2f to your computer and use it in GitHub Desktop.
package libtorrent
root@63ee60112ff2:/Users/steeve/projects/go/src/github.com/steeve/libtorrent-go# file /tmp/go-build677295214/github.com/steeve/libtorrent-go/_obj/*.o
/tmp/go-build677295214/github.com/steeve/libtorrent-go/_obj/_all.o: Mach-O 64-bit object
/tmp/go-build677295214/github.com/steeve/libtorrent-go/_obj/_cgo_.o: Mach-O 64-bit executable
/tmp/go-build677295214/github.com/steeve/libtorrent-go/_obj/_cgo_export.o: Mach-O 64-bit object
/tmp/go-build677295214/github.com/steeve/libtorrent-go/_obj/_cgo_main.o: Mach-O 64-bit object
/tmp/go-build677295214/github.com/steeve/libtorrent-go/_obj/libtorrent.cgo2.o: Mach-O 64-bit object
/tmp/go-build677295214/github.com/steeve/libtorrent-go/_obj/libtorrent_wrap.o: Mach-O 64-bit object
root@63ee60112ff2:/Users/steeve/projects/go/src/github.com/steeve/libtorrent-go# x86_64-apple-darwin14-nm /tmp/go-build677295214/github.com/steeve/libtorrent-go/_obj/*.o | grep _cgo
warning: x86_64-apple-darwin14-nm: no name list
warning: x86_64-apple-darwin14-nm: no name list
warning: x86_64-apple-darwin14-nm: no name list
/tmp/go-build677295214/github.com/steeve/libtorrent-go/_obj/_cgo_.o:
0000000100000e90 T __cgo_allocate
0000000100000ea0 T __cgo_panic
0000000100000e80 T __cgo_topofstack
/tmp/go-build677295214/github.com/steeve/libtorrent-go/_obj/_cgo_main.o:
0000000000000030 T __cgo_allocate
00000000000005d8 S __cgo_allocate.eh
0000000000000040 T __cgo_panic
0000000000000600 S __cgo_panic.eh
0000000000000020 T __cgo_topofstack
00000000000005b0 S __cgo_topofstack.eh
U __cgo_allocate
U __cgo_panic
U __cgo_topofstack
root@63ee60112ff2:/Users/steeve/projects/go/src/github.com/steeve/libtorrent-go# x86_64-apple-darwin14-nm /tmp/go-build677295214/github.com/steeve/libtorrent-go.a | grep _cgo
warning: x86_64-apple-darwin14-nm: no name list
U __cgo_allocate
U __cgo_panic
U __cgo_topofstack
root@63ee60112ff2:/Users/steeve/projects/go/src/github.com/steeve/libtorrent-go#
CC=x86_64-apple-darwin14-cc CXX=x86_64-apple-darwin14-c++ PKG_CONFIG_PATH=/usr/x86_64-apple-darwin14/lib/pkgconfig CGO_ENABLED=1 go install -x -v
WORK=/tmp/go-build352243307
github.com/steeve/libtorrent-go
mkdir -p $WORK/github.com/steeve/libtorrent-go/_obj/
mkdir -p $WORK/github.com/steeve/
cd /Users/steeve/projects/go/src/github.com/steeve/libtorrent-go
pkg-config --cflags libtorrent-rasterbar
pkg-config --libs libtorrent-rasterbar
CGO_LDFLAGS="-g" "-O2" "-lm" "-lssl" "-lcrypto" "-lstdc++" "-L/usr/x86_64-apple-darwin14/lib" "-ltorrent-rasterbar" "-lboost_system" /usr/local/go/pkg/tool/linux_amd64/cgo -objdir $WORK/github.com/steeve/libtorrent-go/_obj/ -- -DTORRENT_NO_DEPRECATE -DTORRENT_USE_OPENSSL -DWITH_SHIPPED_GEOIP_H -DBOOST_ASIO_HASH_MAP_BUCKETS=1021 -DBOOST_EXCEPTION_DISABLE -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_DYN_LINK -I/usr/x86_64-apple-darwin14/include -I/usr/x86_64-apple-darwin14/include/libtorrent -I $WORK/github.com/steeve/libtorrent-go/_obj/ libtorrent.go
/usr/local/go/pkg/tool/linux_amd64/6c -F -V -w -trimpath $WORK -I $WORK/github.com/steeve/libtorrent-go/_obj/ -I /usr/local/go/pkg/darwin_amd64 -o $WORK/github.com/steeve/libtorrent-go/_obj/_cgo_defun.6 -D GOOS_darwin -D GOARCH_amd64 $WORK/github.com/steeve/libtorrent-go/_obj/_cgo_defun.c
x86_64-apple-darwin14-cc -I . -fPIC -m64 -pthread -fmessage-length=0 -fno-common -print-libgcc-file-name
x86_64-apple-darwin14-cc -I . -fPIC -m64 -pthread -fmessage-length=0 -fno-common -DTORRENT_NO_DEPRECATE -DTORRENT_USE_OPENSSL -DWITH_SHIPPED_GEOIP_H -DBOOST_ASIO_HASH_MAP_BUCKETS=1021 -DBOOST_EXCEPTION_DISABLE -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_DYN_LINK -I/usr/x86_64-apple-darwin14/include -I/usr/x86_64-apple-darwin14/include/libtorrent -I $WORK/github.com/steeve/libtorrent-go/_obj/ -g -O2 -o $WORK/github.com/steeve/libtorrent-go/_obj/_cgo_main.o -c $WORK/github.com/steeve/libtorrent-go/_obj/_cgo_main.c
x86_64-apple-darwin14-cc -I . -fPIC -m64 -pthread -fmessage-length=0 -fno-common -DTORRENT_NO_DEPRECATE -DTORRENT_USE_OPENSSL -DWITH_SHIPPED_GEOIP_H -DBOOST_ASIO_HASH_MAP_BUCKETS=1021 -DBOOST_EXCEPTION_DISABLE -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_DYN_LINK -I/usr/x86_64-apple-darwin14/include -I/usr/x86_64-apple-darwin14/include/libtorrent -I $WORK/github.com/steeve/libtorrent-go/_obj/ -g -O2 -o $WORK/github.com/steeve/libtorrent-go/_obj/_cgo_export.o -c $WORK/github.com/steeve/libtorrent-go/_obj/_cgo_export.c
x86_64-apple-darwin14-cc -I . -fPIC -m64 -pthread -fmessage-length=0 -fno-common -DTORRENT_NO_DEPRECATE -DTORRENT_USE_OPENSSL -DWITH_SHIPPED_GEOIP_H -DBOOST_ASIO_HASH_MAP_BUCKETS=1021 -DBOOST_EXCEPTION_DISABLE -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_DYN_LINK -I/usr/x86_64-apple-darwin14/include -I/usr/x86_64-apple-darwin14/include/libtorrent -I $WORK/github.com/steeve/libtorrent-go/_obj/ -g -O2 -o $WORK/github.com/steeve/libtorrent-go/_obj/libtorrent.cgo2.o -c $WORK/github.com/steeve/libtorrent-go/_obj/libtorrent.cgo2.c
x86_64-apple-darwin14-cc -I . -fPIC -m64 -pthread -fmessage-length=0 -fno-common -o $WORK/github.com/steeve/libtorrent-go/_obj/_cgo_.o $WORK/github.com/steeve/libtorrent-go/_obj/_cgo_main.o $WORK/github.com/steeve/libtorrent-go/_obj/_cgo_export.o $WORK/github.com/steeve/libtorrent-go/_obj/libtorrent.cgo2.o -g -O2 -lm -lssl -lcrypto -lstdc++ -L/usr/x86_64-apple-darwin14/lib -ltorrent-rasterbar -lboost_system
# github.com/steeve/libtorrent-go
clang: warning: argument unused during compilation: '-pthread'
/usr/local/go/pkg/tool/linux_amd64/cgo -objdir $WORK/github.com/steeve/libtorrent-go/_obj/ -dynimport $WORK/github.com/steeve/libtorrent-go/_obj/_cgo_.o -dynout $WORK/github.com/steeve/libtorrent-go/_obj/_cgo_import.c
/usr/local/go/pkg/tool/linux_amd64/6c -F -V -w -trimpath $WORK -I $WORK/github.com/steeve/libtorrent-go/_obj/ -I /usr/local/go/pkg/darwin_amd64 -o $WORK/github.com/steeve/libtorrent-go/_obj/_cgo_import.6 -D GOOS_darwin -D GOARCH_amd64 $WORK/github.com/steeve/libtorrent-go/_obj/_cgo_import.c
x86_64-apple-darwin14-cc -I . -fPIC -m64 -pthread -fmessage-length=0 -fno-common -o $WORK/github.com/steeve/libtorrent-go/_obj/_all.o $WORK/github.com/steeve/libtorrent-go/_obj/_cgo_export.o $WORK/github.com/steeve/libtorrent-go/_obj/libtorrent.cgo2.o -g -O2 -L/usr/x86_64-apple-darwin14/lib -Wl,-r -nostdlib
# github.com/steeve/libtorrent-go
clang: warning: argument unused during compilation: '-pthread'
swig -version
cd $WORK
/usr/local/go/pkg/tool/linux_amd64/6g -o ./github.com/steeve/libtorrent-go/_obj/_go_.6 -trimpath . -p command-line-arguments -complete -D _$WORK ./swig_intsize.go
cd /Users/steeve/projects/go/src/github.com/steeve/libtorrent-go
swig -go -intgosize 64 -module libtorrent -o $WORK/github.com/steeve/libtorrent-go/_obj/libtorrent_wrap.cxx -outdir $WORK/github.com/steeve/libtorrent-go/_obj/ -I/usr/x86_64-apple-darwin14/include -I/usr/x86_64-apple-darwin14/include/libtorrent -c++ libtorrent.swigcxx
/usr/local/go/pkg/tool/linux_amd64/6c -F -V -w -trimpath $WORK -I $WORK/github.com/steeve/libtorrent-go/_obj/ -I /usr/local/go/pkg/darwin_amd64 -o $WORK/github.com/steeve/libtorrent-go/_obj/libtorrent_gc.6 -D GOOS_darwin -D GOARCH_amd64 $WORK/github.com/steeve/libtorrent-go/_obj/libtorrent_gc.c
# github.com/steeve/libtorrent-go
warning: $WORK/github.com/steeve/libtorrent-go/_obj/libtorrent_gc.c:14 initialize pointer to an integer: ""._wrap___DBL_MIN_10_EXP__
warning: $WORK/github.com/steeve/libtorrent-go/_obj/libtorrent_gc.c:22 initialize pointer to an integer: ""._wrap___DBL_MIN_EXP__
warning: $WORK/github.com/steeve/libtorrent-go/_obj/libtorrent_gc.c:30 initialize pointer to an integer: ""._wrap___FLT_MIN_10_EXP__
warning: $WORK/github.com/steeve/libtorrent-go/_obj/libtorrent_gc.c:38 initialize pointer to an integer: ""._wrap___FLT_MIN_EXP__
warning: $WORK/github.com/steeve/libtorrent-go/_obj/libtorrent_gc.c:46 initialize pointer to an integer: ""._wrap___LDBL_MIN_10_EXP__
warning: $WORK/github.com/steeve/libtorrent-go/_obj/libtorrent_gc.c:54 initialize pointer to an integer: ""._wrap___LDBL_MIN_EXP__
warning: $WORK/github.com/steeve/libtorrent-go/_obj/libtorrent_gc.c:62 initialize pointer to an integer: ""._wrap_success
warning: $WORK/github.com/steeve/libtorrent-go/_obj/libtorrent_gc.c:70 initialize pointer to an integer: ""._wrap_address_family_not_supported
[CUT HERE AS IT REPEATS FOR EACH FUNCTION, SO THAT'S A LOT]
warning: $WORK/github.com/steeve/libtorrent-go/_obj/libtorrent_gc.c:25158 initialize pointer to an integer: ""._wrap_set_piece_hashes__SWIG_1
warning: $WORK/github.com/steeve/libtorrent-go/_obj/libtorrent_gc.c:25166 initialize pointer to an integer: ""._wrap_set_piece_hashes__SWIG_2
x86_64-apple-darwin14-c++ -I . -fPIC -m64 -pthread -fmessage-length=0 -fno-common -DTORRENT_NO_DEPRECATE -DTORRENT_USE_OPENSSL -DWITH_SHIPPED_GEOIP_H -DBOOST_ASIO_HASH_MAP_BUCKETS=1021 -DBOOST_EXCEPTION_DISABLE -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_DYN_LINK -I/usr/x86_64-apple-darwin14/include -I/usr/x86_64-apple-darwin14/include/libtorrent -g -O2 -o $WORK/github.com/steeve/libtorrent-go/_obj/libtorrent_wrap.o -c $WORK/github.com/steeve/libtorrent-go/_obj/libtorrent_wrap.cxx
# github.com/steeve/libtorrent-go
/tmp/go-build352243307/github.com/steeve/libtorrent-go/_obj/libtorrent_wrap.cxx:2802:3: warning: empty struct has size 0 in C, size 1 in C++ [-Wextern-c-compat]
struct swigargs {
^
/tmp/go-build352243307/github.com/steeve/libtorrent-go/_obj/libtorrent_wrap.cxx:3035:3: warning: empty struct has size 0 in C, size 1 in C++ [-Wextern-c-compat]
struct swigargs {
^
/tmp/go-build352243307/github.com/steeve/libtorrent-go/_obj/libtorrent_wrap.cxx:10009:3: warning: empty struct has size 0 in C, size 1 in C++ [-Wextern-c-compat]
struct swigargs {
^
3 warnings generated.
/usr/local/go/pkg/tool/linux_amd64/6g -o $WORK/github.com/steeve/libtorrent-go.a -trimpath $WORK -p github.com/steeve/libtorrent-go -D _/Users/steeve/projects/go/src/github.com/steeve/libtorrent-go -I $WORK -pack ./gna.go $WORK/github.com/steeve/libtorrent-go/_obj/_cgo_gotypes.go $WORK/github.com/steeve/libtorrent-go/_obj/libtorrent.cgo1.go $WORK/github.com/steeve/libtorrent-go/_obj/libtorrent.go
pack r $WORK/github.com/steeve/libtorrent-go.a $WORK/github.com/steeve/libtorrent-go/_obj/_cgo_import.6 $WORK/github.com/steeve/libtorrent-go/_obj/_cgo_defun.6 $WORK/github.com/steeve/libtorrent-go/_obj/_all.o $WORK/github.com/steeve/libtorrent-go/_obj/libtorrent_gc.6 $WORK/github.com/steeve/libtorrent-go/_obj/libtorrent_wrap.o # internal
mkdir -p /Users/steeve/projects/go/pkg/darwin_amd64/github.com/steeve/
cp $WORK/github.com/steeve/libtorrent-go.a /Users/steeve/projects/go/pkg/darwin_amd64/github.com/steeve/libtorrent-go.a
package libtorrent
// #cgo pkg-config: libtorrent-rasterbar
// #cgo LDFLAGS: -lm -lssl -lcrypto -lstdc++
import "C"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment