[devel] Как пройти сборку если требуется /dev/shm ?

Dmitry V. Levin ldv на altlinux.org
Пт Янв 2 00:41:50 MSK 2015


Hi,

On Tue, Dec 30, 2014 at 04:53:59PM +0300, Andrew V. Stepanov wrote:
> И рассмотрим семафор Posix.
> 
> $ cat 1.c
> #include <semaphore.h>
> #include <stdio.h>
> #include <errno.h>
> #include <stdlib.h>
> #include <unistd.h>
> #include <sys/types.h>
> 
> #include <sys/stat.h>
> #include <fcntl.h>
> #include <sys/mman.h>
> 
> int main(int argc, char **argv)
> {
>         sem_t *mutex;
> 
>         if ((mutex = sem_open("mysemaphore", O_CREAT, 0644, 1)) == 
> SEM_FAILED) {
>                 perror("semaphore initilization");
>                 exit(1);
>         }
> 
>         exit(0);
> }
> 
> $ gcc 1.c -lpthread
> 
> $ ./a.out
> semaphore initilization: Function not implemented

Используйте hasher >= 1.3.23-alt1 и собирайте на tmpfs.


-- 
ldv
----------- следующая часть -----------
Было удалено вложение не в текстовом формате...
Имя     : отсутствует
Тип     : application/pgp-signature
Размер  : 181 байтов
Описание: отсутствует
Url     : <http://lists.altlinux.org/pipermail/devel/attachments/20150101/8e7c74fe/attachment.bin>


Подробная информация о списке рассылки Devel