Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: nginx-1.0.2
On Tue, May 10, 2011 at 09:12:19PM +0700, Denis F. Latypoff wrote:
> 10.05.2011, 19:29, "Igor Sysoev" <igor@xxxxxxxxx>:
> > éÚÍÅÎÅÎÉÑ × nginx 1.0.2 šššššššššššššššššššššššššššššššššššššššššš10.05.2011
> >
> > šššš*) äÏÂÁ×ÌÅÎÉÅ: ÔÅÐÅÒØ ÒÁÚÄÅÌÑÅÍÙÅ ÚÏÎÙ É ËÜÛÉ ÉÓÐÏÌØÚÕÀÔ ÓÅÍÁÆÏÒÙ POSIX.
> >
>
> ÷ centos ÓÅÍÁÆÏÒÙ × libpthread.
>
> [root@gostats nginx-1.0.2]# cat sem.c
> #include <semaphore.h>
> int
> main (void)
> {
> sem_t sem;
> if (sem_init(&sem, 1, 0) == -1)
> return 1;
> sem_destroy(&sem);
> return 0;
> }
> [root@gostats nginx-1.0.2]# gcc sem.c
> /tmp/ccMUxgLl.o: In function `main':
> sem.c:(.text+0x17): undefined reference to `sem_init'
> sem.c:(.text+0x2e): undefined reference to `sem_destroy'
> collect2: ld returned 1 exit status
> [root@gostats nginx-1.0.2]# gcc -lpthread sem.c
> [root@gostats nginx-1.0.2]# ./a.out && echo $?
> 0
á ÏÎÉ ÔÁÍ ÑÄÅÒÎÙÅ ?
--
Igor Sysoev
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
|