Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation is missing the file valgrind/valgrind.h #727

Closed
Laizhongsheng opened this issue Jan 5, 2017 · 4 comments
Closed

Compilation is missing the file valgrind/valgrind.h #727

Laizhongsheng opened this issue Jan 5, 2017 · 4 comments
Assignees
Labels
Bug It might be a bug. TransByAI Translated by AI/GPT.
Milestone

Comments

@Laizhongsheng
Copy link

Laizhongsheng commented Jan 5, 2017

git clone https://github.com/ossrs/srs
cd srs/trunk;
./configure --disable-all --with-ssl' Error
if [ ! -d LINUX_2.6.32-358.el6.x86_64_DBG ]; then mkdir LINUX_2.6.32-358.el6.x86_64_DBG; fi
cc -DLINUX -DMD_HAVE_EPOLL -DDEBUG -Wall -g -DMD_HAVE_EPOLL -DMD_VALGRIND -c sched.c -o LINUX_2.6.32-358.el6.x86_64_DBG/sched.o
sched.c:52:31: ??:valgrind/valgrind.h:?????????
sched.c: ???'st_thread_exit'?:
sched.c:272: ??:??????'VALGRIND_STACK_DEREGISTER'
sched.c: ???'st_thread_create'?:
sched.c:642: ??:??????'VALGRIND_STACK_REGISTER'
make[1]: *** [LINUX_2.6.32-358.el6.x86_64_DBG/sched.o] Error 1
make[1]: Leaving directory `/opt/srs/trunk/objs/state-threads-1.9.1'
make: *** [linux-debug] Error 2
Build state-threads failed, ret=2

TRANS_BY_GPT3

@winlinvip winlinvip added this to the srs 3.0 release milestone Jan 6, 2017
@winlinvip
Copy link
Member

winlinvip commented Jan 6, 2017

Valgrind is not supported in SRS2.0. The current release is SRS2.
SRS3 supports valgrind. Is your system CentOS or Ubuntu? I have installed valgrind-devel for both, but still cannot find the header files?

TRANS_BY_GPT3

@Laizhongsheng
Copy link
Author

Laizhongsheng commented Jan 6, 2017

The system is Centos 6.0.

TRANS_BY_GPT3

@Laizhongsheng
Copy link
Author

Laizhongsheng commented Jan 6, 2017

After installing valgrind-devel, you can configure it.
yum -y install valgrind-devel

Compiling now, thank you.

TRANS_BY_GPT3

@winlinvip
Copy link
Member

winlinvip commented Jan 6, 2017

Oh, I understand. You have valgrind, but not devel. The script needs to be modified.

TRANS_BY_GPT3

@winlinvip winlinvip reopened this Jan 6, 2017
@winlinvip winlinvip added the Bug It might be a bug. label Jan 6, 2017
@winlinvip winlinvip self-assigned this Sep 18, 2021
@winlinvip winlinvip changed the title 编译缺少文件valgrind/valgrind.h Compilation is missing the file valgrind/valgrind.h Jul 28, 2023
@winlinvip winlinvip added the TransByAI Translated by AI/GPT. label Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug It might be a bug. TransByAI Translated by AI/GPT.
Projects
None yet
Development

No branches or pull requests

2 participants