problem with compilation on solaris 10u5
Igor Sysoev
is at rambler-co.ru
Wed Jun 3 08:45:02 MSD 2009
On Wed, Jun 03, 2009 at 12:09:45AM +0200, Radovan P?tec wrote:
> hello,
>
> i have problem with compilation of nginx-0.7.59 on solaris 10u5. i
> got stuck on this:
>
> Undefined first referenced
> symbol in file
> timer_create objs/src/event/modules/
> ngx_eventport_module.o
> timer_delete objs/src/event/modules/
> ngx_eventport_module.o
> timer_settime objs/src/event/modules/
> ngx_eventport_module.o
> sched_yield objs/src/core/ngx_spinlock.o
> ld: fatal: Symbol referencing errors. No output written to objs/nginx
>
> i use gcc 3.4.3. compilation log is in attachment.
The patch.
--
Igor Sysoev
http://sysoev.ru/en/
-------------- next part --------------
Index: auto/os/features
===================================================================
--- auto/os/features (revision 2234)
+++ auto/os/features (working copy)
@@ -252,3 +252,25 @@
NGX_LIBDL="-ldl"
fi
fi
+
+
+ngx_feature="sched_yield()"
+ngx_feature_name="NGX_HAVE_SCHED_YIELD"
+ngx_feature_run=no
+ngx_feature_incs="#include <sched.h>"
+ngx_feature_path=
+ngx_feature_libs=
+ngx_feature_test="sched_yield()"
+. auto/feature
+
+
+if [ $ngx_found != yes ]; then
+
+ ngx_feature="sched_yield() in librt"
+ ngx_feature_libs="-lrt"
+ . auto/feature
+
+ if [ $ngx_found = yes ]; then
+ CORE_LIBS="$CORE_LIBS -lrt"
+ fi
+fi
Index: auto/unix
===================================================================
--- auto/unix (revision 2234)
+++ auto/unix (working copy)
@@ -163,28 +163,6 @@
. auto/feature
-ngx_feature="sched_yield()"
-ngx_feature_name="NGX_HAVE_SCHED_YIELD"
-ngx_feature_run=no
-ngx_feature_incs="#include <sched.h>"
-ngx_feature_path=
-ngx_feature_libs=
-ngx_feature_test="sched_yield()"
-. auto/feature
-
-
-if [ $ngx_found != yes ]; then
-
- ngx_feature="sched_yield() in librt"
- ngx_feature_libs="-lrt"
- . auto/feature
-
- if [ $ngx_found = yes ]; then
- CORE_LIBS="$CORE_LIBS -lrt"
- fi
-fi
-
-
ngx_feature="mmap(MAP_ANON|MAP_SHARED)"
ngx_feature_name="NGX_HAVE_MAP_ANON"
ngx_feature_run=yes
More information about the nginx
mailing list