Ошибка компиляции с модулем кеширования

Igor Sysoev is at rambler-co.ru
Sat May 23 09:09:44 MSD 2009


On Sat, May 23, 2009 at 05:05:32AM +0200, Alrond wrote:

> 22 мая 2009 г. 19:15 пользователь Igor Sysoev <is at rambler-co.ru> написал:
> 
> >
> > Дополнительный патч.
> >
> 
> Патч помог пройти последнюю ошибку, но вернулись к предыдущей:
> 
>         objs/src/http/modules/ngx_http_upstream_ip_hash_module.o \
>         objs/src/http/modules/ngx_http_stub_status_module.o \
>         objs/ngx_modules.o \
>         -lcrypt /opt/pcre-7.9/.libs/libpcre.a
> /opt/openssl-0.9.8k/openssl/lib/libssl.a
> /opt/openssl-0.9.8k/openssl/lib/libcrypto.a -lz
> /opt/openssl-0.9.8k/openssl/lib/libcrypto.a(dso_dlfcn.o): In function
> `dlfcn_bind_func':
> dso_dlfcn.c:(.text+0x2e5): undefined reference to `dlsym'
> dso_dlfcn.c:(.text+0x3c6): undefined reference to `dlerror'
> /opt/openssl-0.9.8k/openssl/lib/libcrypto.a(dso_dlfcn.o): In function
> `dlfcn_bind_var':
> dso_dlfcn.c:(.text+0x451): undefined reference to `dlsym'
> dso_dlfcn.c:(.text+0x52d): undefined reference to `dlerror'
> /opt/openssl-0.9.8k/openssl/lib/libcrypto.a(dso_dlfcn.o): In function
> `dlfcn_unload':
> dso_dlfcn.c:(.text+0x593): undefined reference to `dlclose'
> /opt/openssl-0.9.8k/openssl/lib/libcrypto.a(dso_dlfcn.o): In function
> `dlfcn_load':
> dso_dlfcn.c:(.text+0x667): undefined reference to `dlopen'
> dso_dlfcn.c:(.text+0x6d8): undefined reference to `dlclose'
> dso_dlfcn.c:(.text+0x71d): undefined reference to `dlerror'
> collect2: ld returned 1 exit status
> make[1]: *** [objs/nginx] Error 1
> make[1]: Leaving directory `/opt/nginx-0.7.58'
> make: *** [build] Error 2

Обновлённый дополнительный патч.


-- 
Игорь Сысоев
http://sysoev.ru
-------------- next part --------------
Index: auto/os/features
===================================================================
--- auto/os/features	(revision 2196)
+++ auto/os/features	(working copy)
@@ -230,3 +230,25 @@
 ngx_feature_test="struct statvfs  fs;
                   statvfs(NULL, &fs);"
 . auto/feature
+
+
+ngx_feature="dlopen()"
+ngx_feature_name=
+ngx_feature_run=no
+ngx_feature_incs="#include <dlfcn.h>"
+ngx_feature_path=
+ngx_feature_libs=
+ngx_feature_test="dlopen(NULL, 0)"
+. auto/feature
+
+
+if [ $ngx_found != yes ]; then
+
+    ngx_feature="dlopen() in libdl"
+    ngx_feature_libs="-ldl"
+    . auto/feature
+
+    if [ $ngx_found = yes ]; then
+        NGX_LIBDL="-ldl"
+    fi
+fi
Index: auto/unix
===================================================================
--- auto/unix	(revision 2196)
+++ auto/unix	(working copy)
@@ -185,28 +185,6 @@
 fi
 
 
-ngx_feature="dlopen()"
-ngx_feature_name=
-ngx_feature_run=no
-ngx_feature_incs="#include <dlfcn.h>"
-ngx_feature_path=
-ngx_feature_libs=
-ngx_feature_test="dlopen(NULL, 0)"
-. auto/feature
-
-
-if [ $ngx_found != yes ]; then
-
-    ngx_feature="dlopen() in libdl"
-    ngx_feature_libs="-ldl"
-    . auto/feature
-
-    if [ $ngx_found = yes ]; then
-        NGX_LIBDL="-ldl"
-    fi
-fi
-
-
 ngx_feature="mmap(MAP_ANON|MAP_SHARED)"
 ngx_feature_name="NGX_HAVE_MAP_ANON"
 ngx_feature_run=yes
Index: auto/lib/openssl/make
===================================================================
--- auto/lib/openssl/make	(revision 2196)
+++ auto/lib/openssl/make	(working copy)
@@ -45,12 +45,24 @@
     ;;
 
     *)
+        case $OPENSSL in
+
+        /*)
+            ngx_prefix="$OPENSSL/openssl"
+        ;;
+
+        *)
+            ngx_prefix="$PWD/$OPENSSL/openssl"
+        ;;
+
+        esac
+
         cat << END                                            >> $NGX_MAKEFILE
 
 $OPENSSL/openssl/include/openssl/ssl.h:	$NGX_MAKEFILE
 	cd $OPENSSL \\
 	&& \$(MAKE) clean \\
-	&& ./config --prefix=$PWD/$OPENSSL/openssl no-shared $OPENSSL_OPT \\
+	&& ./config --prefix=$ngx_prefix no-shared $OPENSSL_OPT \\
 	&& \$(MAKE) \\
 	&& \$(MAKE) install
 


More information about the nginx-ru mailing list