mochadelight
04-21-2010, 08:23 PM
Ok So this is the skinny. I have Nginx on my system installed from a repo. I want to compile it from source because the source files are newer and have some functionality that I will need soon. I am running Centos 5.3 64-bit. I am getting an error when I try to compile. Any ideas? Error here:
make install clean
make -f objs/Makefile install
make[1]: Entering directory `/media/nginx-0.8.35'
gcc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Wunused-function -Wunused-variable -Wunused-value -Werror -g -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
-o objs/src/core/nginx.o \
src/core/nginx.c
cc1: warnings being treated as errors
src/core/nginx.c: In function ‘ngx_set_user’:
src/core/nginx.c:1098: warning: unused parameter ‘cmd’
src/core/nginx.c: In function ‘ngx_set_env’:
src/core/nginx.c:1161: warning: unused parameter ‘cmd’
src/core/nginx.c: In function ‘ngx_set_priority’:
src/core/nginx.c:1191: warning: unused parameter ‘cmd’
src/core/nginx.c: In function ‘ngx_set_cpu_affinity’:
src/core/nginx.c:1231: warning: unused parameter ‘cmd’
make[1]: *** [objs/src/core/nginx.o] Error 1
make[1]: Leaving directory `/media/nginx-0.8.35'
make: *** [install] Error 2
xerophyte
04-21-2010, 09:27 PM
did you run ./configure --help
The Universes
04-21-2010, 09:52 PM
Did you run "make install clean"?
qualityhostings
04-22-2010, 12:08 AM
Did you run "make install clean"?
His post shows that he used make install clean
The Universes
04-22-2010, 01:41 AM
His post shows that he used make install clean
Well, thats not right.
He needs to run the configure script first and then run make and make install.
mochadelight
04-22-2010, 11:01 AM
I did run the configure first. It did not show anything out of the ordinary. I will post it later on today so you may see all the lines that the configure statement resulted in.
mochadelight
04-22-2010, 08:36 PM
./configure --user=nginx --group=nginx --prefix=/path2/share/nginx --sbin-path=/path2/sbin/nginx --conf-path=/path2/nginx/nginx.conf --error-log-path=/path/log/nginx/error.log --http-log-path=/path2/log/nginx/access.log --http-client-body-temp-path=/path/lib/nginx/tmp/client_body --http-proxy-temp-path=/path/lib/nginx/tmp/proxy --http-fastcgi-temp-path=/path/lib/nginx/tmp/fastcgi --pid-path=/path/run/nginx.pid --lock-path=/path/lock/subsys/nginx --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_gzip_static_module --with-http_stub_status_module --with-http_perl_module --with-mail --with-mail_ssl_module --with-cc-opt='-O3 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' --add-module=/path_to_source/nginx-accesskey-2.0.3 --with-http_secure_link_module --add-module=/path_to_source//nginx_mp4_streaming_public
checking for OS
+ Linux 2.6.29.5-grsec-hostnoc-4.2.0-x86_64-libata x86_64
checking for C compiler ... found
+ using GNU C compiler
+ gcc version: 4.1.2 20080704 (Red Hat 4.1.2-44)
checking for gcc -pipe switch ... found
checking for gcc builtin atomic operations ... found
checking for gcc variadic macros ... found
checking for C99 variadic macros ... found
checking for unistd.h ... found
checking for inttypes.h ... found
checking for limits.h ... found
checking for sys/filio.h ... not found
checking for sys/param.h ... found
checking for sys/mount.h ... found
checking for sys/statvfs.h ... found
checking for crypt.h ... found
checking for Linux specific features
checking for epoll ... found
checking for sendfile() ... found
checking for sendfile64() ... found
checking for sys/prctl.h ... found
checking for prctl(PR_SET_DUMPABLE) ... found
checking for sched_setaffinity() ... found
checking for crypt_r() ... found
checking for sys/vfs.h ... found
checking for poll() ... found
checking for /dev/poll ... not found
checking for kqueue ... not found
checking for crypt() ... not found
checking for crypt() in libcrypt ... found
checking for F_READAHEAD ... not found
checking for posix_fadvise() ... found
checking for O_DIRECT ... found
checking for F_NOCACHE ... not found
checking for directio() ... not found
checking for statfs() ... found
checking for statvfs() ... found
checking for dlopen() ... not found
checking for dlopen() in libdl ... found
checking for sched_yield() ... found
configuring additional modules
adding module in /media/nginx-accesskey-2.0.3
+ ngx_http_accesskey_module was configured
adding module in /media/nginx_mp4_streaming_public
+ ngx_http_mp4_streaming_lite_module was configured
checking for PCRE library ... found
checking for OpenSSL library ... found
checking for zlib library ... found
checking for perl
+ perl version: v5.8.8 built for x86_64-linux-thread-multi
+ perl interpreter multiplicity found
creating objs/Makefile
checking for int size ... 4 bytes
checking for long size ... 8 bytes
checking for long long size ... 8 bytes
checking for void * size ... 8 bytes
checking for uint64_t ... found
checking for sig_atomic_t ... found
checking for sig_atomic_t size ... 4 bytes
checking for socklen_t ... found
checking for in_addr_t ... found
checking for in_port_t ... found
checking for rlim_t ... found
checking for uintptr_t ... uintptr_t found
checking for system endianess ... little endianess
checking for size_t size ... 8 bytes
checking for off_t size ... 8 bytes
checking for time_t size ... 8 bytes
checking for setproctitle() ... not found
checking for pread() ... found
checking for pwrite() ... found
checking for strerror_r() ... found but is not working
checking for gnu style strerror_r() ... found
checking for sys_errlist[] ... found
checking for localtime_r() ... found
checking for posix_memalign() ... found
checking for memalign() ... found
checking for mmap(MAP_ANON|MAP_SHARED) ... found
checking for mmap("/dev/zero", MAP_SHARED) ... found
checking for System V shared memory ... found
checking for struct msghdr.msg_control ... found
checking for ioctl(FIONBIO) ... found
checking for struct tm.tm_gmtoff ... found
checking for struct dirent.d_namlen ... not found
checking for struct dirent.d_type ... found
Configuration summary
+ using system PCRE library
+ using system OpenSSL library
+ md5: using OpenSSL library
+ sha1: using OpenSSL library
+ using system zlib library
nginx path prefix: "/path2/share/nginx"
nginx binary file: "/path2/sbin/nginx"
nginx configuration prefix: "/etc/nginx"
nginx configuration file: "/etc/nginx/nginx.conf"
nginx pid file: "/path/run/nginx.pid"
nginx error log file: "/path/log/nginx/error.log"
nginx http access log file: "/path/log/nginx/access.log"
nginx http client request body temporary files: "/path/lib/nginx/tmp/client_body"
nginx http proxy temporary files: "/path/lib/nginx/tmp/proxy"
nginx http fastcgi temporary files: "/path/lib/nginx/tmp/fastcgi"
The Universes
04-22-2010, 10:01 PM
That looks fine assuming all the paths are what you wanted. Did you try running make after that?
mochadelight
04-23-2010, 07:48 PM
i figured it out, but it took a little time, just didn't use the option -Werror