CodisLabs / CodisLabs/codis

make 代码报错

Open
#1,599 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
13.2k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

make 时候出现这个错误,是我的库版本有问题 ?

make[2]: 离开目录“/usr/local/src/github.com/CodisLabs/codis/extern/redis-3.2.4/src”
make[1]: 离开目录“/usr/local/src/github.com/CodisLabs/codis/extern/redis-3.2.4”
fatal: Not a git repository (or any of the parent directories): .git
go build -i -o bin/codis-dashboard ./cmd/dashboard
# github.com/CodisLabs/codis/vendor/github.com/spinlock/jemalloc-go
vendor/github.com/spinlock/jemalloc-go/je_jemalloc.c:796:1: 错误:对‘secure_getenv’的静态声明出现在非静态声明之后
{
^
In file included from vendor/github.com/spinlock/jemalloc-go/jemalloc/internal/jemalloc_internal_decls.h:42:0,
from vendor/github.com/spinlock/jemalloc-go/jemalloc/internal/jemalloc_internal.h:5,
from vendor/github.com/spinlock/jemalloc-go/je_jemalloc.c:2:
/usr/include/stdlib.h:569:14: 附注:‘secure_getenv’的上一个声明在此
extern char *secure_getenv (const char *__name)
^
make: *** [codis-dashboard] 错误 2

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.