-
Notifications
You must be signed in to change notification settings - Fork 439
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
Getting Error while building on FreeBSD 10.1 #81
Comments
Thanks. We'll take a look. What compiler and ver do you use? May the source be with you, Jess Portnoy -------- Original message -------- Getting Error while running make on FreeBSD 10.1 /root/tes/nginx-vod-module-master/vod/common.h:65:9: error: 'MIN' macro redefined [-Werror] Stop. Stop. Reply to this email directly or view it on GitHubhttps://github.com//issues/81. |
Please try to comment these 2 lines in vod/common.h (#define MIN & #define MAX) and let me know if you get any other errors. These can be easily solved by wrapping them with ifndef, but there may be other errors as we never compiled it on FreeBSD before Thanks Eran |
After commenting Those two lines..i`m getting this error.. cc -c -pipe -O -Wall -Wextra -Wpointer-arith -Wconditional-uninitialized -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/local/include -I objs -I src/http -I src/http/modules -I src/mail -o objs/addon/hls/mp4_to_annexb_filter.o /root/tes/nginx-vod-module-master//vod/hls/mp4_to_annexb_filter.c/root/tes/nginx-vod-module-master//vod/hls/mp4_to_annexb_filter.c:179:17: error: comparison of integers of different signs: 'uint32_t' (aka 'unsigned int') and 'int' [-Werror,-Wsign-compare] write_size = MIN(state->packet_size_left, buffer_end - buffer); ^ ~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~/usr/include/sys/param.h:285:23: note: expanded from macro 'MIN'#define MIN(a,b) (((a)<(b))?(a):(b)) ^1 error generated.* Error code 1 Thank you.. Please try to comment these 2 lines in vod/common.h (#define MIN & #define MAX) and let me know if you get any other errors. These can be easily solved by wrapping them with ifndef, but there may be other errors as we never compiled it on FreeBSD before Thanks Eran — |
OS : FreeBSD 10.1,Clang C compiler; clang version: 3.4.1.. Thank you Date: Thu, 16 Apr 2015 10:38:25 -0700 Thanks. We'll take a look. What compiler and ver do you use? May the source be with you, Jess Portnoy -------- Original message -------- From: Linuxbot notifications@github.com Date: To: kaltura/nginx-vod-module nginx-vod-module@noreply.github.com Subject: [nginx-vod-module] Getting Error while building on FreeBSD 10.1 (#81) Getting Error while running make on FreeBSD 10.1 Nginx Version: 1.6.2 stable /root/tes/nginx-vod-module-master/vod/common.h:65:9: error: 'MIN' macro redefined [-Werror] #define MIN(x, y) ngx_min(x, y) ^ /usr/include/sys/param.h:285:9: note: previous definition is here #define MIN(a,b) (((a)<(b))?(a):(b)) ^ In file included from /root/tes/nginx-vod-module-master//ngx_http_vod_conf.c:1: In file included from /root/tes/nginx-vod-module-master/ngx_http_vod_conf.h:6: In file included from /root/tes/nginx-vod-module-master/ngx_http_vod_submodule.h:5: In file included from /root/tes/nginx-vod-module-master/ngx_http_vod_request_parse.h:7: In file included from /root/tes/nginx-vod-module-master/vod/mp4_parser.h:5: /root/tes/nginx-vod-module-master/vod/common.h:66:9: error: 'MAX' macro redefined [-Werror] #define MAX(x, y) ngx_max(x, y) ^ /usr/include/sys/param.h:286:9: note: previous definition is here #define MAX(a,b) (((a)>(b))?(a):(b)) ^ 2 errors generated. *** Error code 1 Stop. make[1]: stopped in /root/nginx-1.6.2 *** Error code 1 Stop. make: stopped in /root/nginx-1.6.2 Reply to this email directly or view it on GitHubhttps://github.com//issues/81. — |
Thanks. I will create a similar ENV and test. May the source be with you, Jess Portnoy -------- Original message -------- OS : FreeBSD 10.1,Clang C compiler; clang version: 3.4.1.. Thank you Date: Thu, 16 Apr 2015 10:38:25 -0700 Thanks. We'll take a look. What compiler and ver do you use? May the source be with you, Jess Portnoy -------- Original message -------- From: Linuxbot notifications@github.com Date: To: kaltura/nginx-vod-module nginx-vod-module@noreply.github.com Subject: [nginx-vod-module] Getting Error while building on FreeBSD 10.1 (#81) Getting Error while running make on FreeBSD 10.1 Nginx Version: 1.6.2 stable /root/tes/nginx-vod-module-master/vod/common.h:65:9: error: 'MIN' macro redefined [-Werror] #define MIN(x, y) ngx_min(x, y) ^ /usr/include/sys/param.h:285:9: note: previous definition is here #define MIN(a,b) (((a)<(b))?(a):(b)) ^ In file included from /root/tes/nginx-vod-module-master//ngx_http_vod_conf.c:1: In file included from /root/tes/nginx-vod-module-master/ngx_http_vod_conf.h:6: In file included from /root/tes/nginx-vod-module-master/ngx_http_vod_submodule.h:5: In file included from /root/tes/nginx-vod-module-master/ngx_http_vod_request_parse.h:7: In file included from /root/tes/nginx-vod-module-master/vod/mp4_parser.h:5: /root/tes/nginx-vod-module-master/vod/common.h:66:9: error: 'MAX' macro redefined [-Werror] #define MAX(x, y) ngx_max(x, y) ^ /usr/include/sys/param.h:286:9: note: previous definition is here #define MAX(a,b) (((a)>(b))?(a):(b)) ^ 2 errors generated. *** Error code 1 Stop. make[1]: stopped in /root/nginx-1.6.2 *** Error code 1 Stop. make: stopped in /root/nginx-1.6.2 Reply to this email directly or view it on GitHubhttps://github.com//issues/81. Reply to this email directly or view it on GitHub. Reply to this email directly or view it on GitHubhttps://github.com//issues/81#issuecomment-93956568. |
Hello, I have created an instance on EC2 with the following AMI image - ami-4494132c : [root@ip-10-144-155-165 /tmp/nginx-vod-module]# clang -v Which compiled correctly. Can you please try checkout the latest master version and run: ./travis_build.shIt will auto build for you, this is just to see if that one passes, then we can try to compare configure flags to find the diff. Thanks, |
A few notes about building that way:
Finally, here is a build log from our FreeBSD machine: You may want to compare outputs. |
Another thing we can do, in parallel to that, is that you'll disable the 'treat warnings as errors' compiler option, and run make again. After removing that option, the build will probably succeed, and you'll get all the warnings that bother your compiler. Once you have that, please paste it on this thread, and we'll fix them. To remove this option, edit ./objs/Makefile, search for -Werror and remove it, for exmaple, I currently have: |
Hello @linuxbot, |
Sorry for delay.. I followed your Build log..It`s working now.. Thanks For your Support.. |
Welcome. |
Getting Error while running make on FreeBSD 10.1
Nginx Version: 1.6.2 stable
/root/tes/nginx-vod-module-master/vod/common.h:65:9: error: 'MIN' macro redefined [-Werror]
define MIN(x, y) ngx_min(x, y)
/usr/include/sys/param.h:285:9: note: previous definition is here
define MIN(a,b) (((a)<(b))?(a):(b))
In file included from /root/tes/nginx-vod-module-master//ngx_http_vod_conf.c:1:
In file included from /root/tes/nginx-vod-module-master/ngx_http_vod_conf.h:6:
In file included from /root/tes/nginx-vod-module-master/ngx_http_vod_submodule.h:5:
In file included from /root/tes/nginx-vod-module-master/ngx_http_vod_request_parse.h:7:
In file included from /root/tes/nginx-vod-module-master/vod/mp4_parser.h:5:
/root/tes/nginx-vod-module-master/vod/common.h:66:9: error: 'MAX' macro redefined [-Werror]
define MAX(x, y) ngx_max(x, y)
/usr/include/sys/param.h:286:9: note: previous definition is here
define MAX(a,b) (((a)>(b))?(a):(b))
2 errors generated.
*** Error code 1
Stop.
make[1]: stopped in /root/nginx-1.6.2
*** Error code 1
Stop.
make: stopped in /root/nginx-1.6.2
The text was updated successfully, but these errors were encountered: