falzm / httpdump

Basic HTTP server dumping received requests content

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fail to make the project

litterbear opened this issue · comments

[23:41:18]root@devstack:~/gsoc/httpdump# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.3 LTS
Release:        14.04
Codename:       trusty

[23:41:44]root@devstack:~/gsoc/httpdump# go version
go version go1.4.2 linux/amd64

I install gb by go get github.com/constabulary/gb/...

I fail to make the project

[23:43:13]root@devstack:~/gsoc/httpdump# make
gb build -ldflags " \
                -X main.version=0.1.0 \
                -X main.buildDate='2016-03-06' \
                "
usage: 6l [options] main.6
  -1    use alternate profiling code
  -8    assume 64-bit addresses
  -B info
        define ELF NT_GNU_BUILD_ID note
  -C    check Go calls to C code
  -D addr
        data address
  -E sym
        entry symbol
  -I interp
        set ELF interp
  -L dir
        add dir to library path
  -H head
        header type
  -K    add stack underflow checks
  -O    print pc-line tables
  -Q    debug byte-register code gen
  -R rnd
        address rounding
  -S    check type signatures
  -T addr
        text address
  -V    print version and exit
  -W    disassemble input
  -X name value
        define string data
  -Z    clear stack frame on entry
  -a    disassemble output
  -c    dump call graph
  -d    disable dynamic executable
  -extld ld
        linker to run in external mode
  -extldflags ldflags
        flags for external linker
  -f    ignore version mismatch
  -g    disable go package data checks
  -installsuffix suffix
        pkg directory suffix
  -k sym
        set field tracking symbol
  -linkmode mode
        set link mode (internal, external, auto)
  -n    dump symbol table
  -o outfile
        set output file
  -r dir1:dir2:...
        set ELF dynamic linker search path
  -race
        enable race detector
  -s    disable symbol table
  -shared
        generate shared object (implies -linkmode external)
  -tmpdir dir
        leave temporary files in this directory
  -u    reject unsafe packages
  -v    print link trace
  -w    disable DWARF generation
# httpdump
httpdump
FATAL: command "build" failed: exit status 1
make: *** [httpdump] Error 1

Hi

This might have to do with the Go version that you use: could you upgrade to 1.5 or 1.6? Alternatively, you can use the pre-compiled versions.

Thanks :)
The pre-compiled versions work!