Hello!

On Fri, 26 Apr 2013 at 22:27:05 (+0300), Alexander Shikoff wrote:

> Привет.

> Не могу собрать devel/m4 на 7.2-RELEASE:

> ===>  Building for m4-1.4.16_1,1
> [...]
> cc -std=gnu99  -I.    -I/usr/local/include  -O2 -fno-strict-aliasing -pipe 
> -MT execute.o -MD -MP -MF .deps/execute.Tpo -c -o execute.o execute.c
> In file included from execute.c:47:
> ./spawn.h:28:25: error: spawn.h: No such file or directory
> In file included from execute.c:47:
> ./spawn.h:554: error: expected ';', ',' or ')' before '*' token
> ./spawn.h:588: error: expected ')' before '*' token
> ./spawn.h:613: error: expected ')' before '*' token
> ./spawn.h:746: error: expected ')' before '*' token
> ./spawn.h:812: error: expected ')' before '*' token
> ./spawn.h:1039: error: expected ')' before '*' token
> ./spawn.h:1069: error: expected ')' before '*' token
> ./spawn.h:1104: error: expected ')' before '*' token
> ./spawn.h:1139: error: expected ')' before '*' token
> ./spawn.h:1172: error: expected ')' before '*' token
> execute.c: In function 'execute':
> execute.c:204: error: 'posix_spawn_file_actions_t' undeclared (first use in 
> this function)
> execute.c:204: error: (Each undeclared identifier is reported only once
> execute.c:204: error: for each function it appears in.)
> execute.c:204: error: expected ';' before 'actions'
> execute.c:206: error: 'posix_spawnattr_t' undeclared (first use in this 
> function)
> execute.c:206: error: expected ';' before 'attrs'
> execute.c:218: warning: implicit declaration of function 
> 'posix_spawn_file_actions_init'
> execute.c:218: error: 'actions' undeclared (first use in this function)
> execute.c:221: warning: implicit declaration of function 
> 'posix_spawn_file_actions_addopen'
> execute.c:239: warning: implicit declaration of function 
> 'posix_spawnattr_init'
> execute.c:239: error: 'attrs' undeclared (first use in this function)
> execute.c:241: warning: implicit declaration of function 
> 'posix_spawnattr_setsigmask'
> execute.c:244: warning: implicit declaration of function 
> 'posix_spawnattr_setflags'
> execute.c:247: warning: implicit declaration of function 'posix_spawnp'
> execute.c:253: warning: implicit declaration of function 
> 'posix_spawn_file_actions_destroy'
> execute.c:255: warning: implicit declaration of function 
> 'posix_spawnattr_destroy'
> *** Error code 1

> Действительно, файла spawn.h нигде нет.
> На 9.1-RELEASE собирается, и файл spawn.h есть.

Можно попробовать просто скопировать его с 9-ки на 7-ку вместе с нужными
ему инклюдами, которых нет на 7-ке. Хак грубый, но иногда помогает =)
Также можно поискать в портах, у какого пакета есть такой файл и
проанализировать, тот ли это пакет, который заменяет функционал в базе.

Ну, и, судя по ошибкам (правда, тут я не очень спец), gcc обновить не
помешает (из портов собрать поновее версию, чем в базе 7-ки).

Ах да, и ещё вариант: если 7.2 ещё не EOL, то написать мейнтейнеру
порта, чтобы поправил.

> У кого-то наблюдается такое же? Спасибо.

-- 
George L. Yermulnik
[YZ-RIPE]

Ответить