artifact_id;status_id;status_name;priority;submitter_id;submitter_name;assigned_to_id;assigned_to_name;open_date;close_date;last_modified_date;summary;details;"Category";"Group";"Resolution"
1010657;1;"Open";3;115560;"Michail Galanin";100;"Nobody";"2009-06-17 06:15";"";"2012-09-24 02:14";"Build failure on FreeBSD";"[root@free ~/pg_migrator-8.4-rc1]# USE_PGXS=1 gmake prefix=/usr/local/postgres84 install
< ... >
cc -O2 -fno-strict-aliasing -pipe  -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -DFRONTEND -I. -I/usr/local/include -I. -I/usr/local/include/postgresql/server -I/usr/local/include/postgresql/internal -I/usr/local/include -I/usr/local/include/libxml2 -I/usr/local/include  -I/usr/local/include -I. -I/usr/local/include/postgresql/server -I/usr/local/include/postgresql/internal -I/usr/local/include -I/usr/local/include/libxml2 -I/usr/local/include  -I/usr/local/include  -c -o file.o file.c                                                      
file.c: In function 'copy_file':                                                                                             
file.c:169: warning: implicit declaration of function 'open'                                                                 
file.c:169: error: 'O_RDONLY' undeclared (first use in this function)                                                        
file.c:169: error: (Each undeclared identifier is reported only once                                                         
file.c:169: error: for each function it appears in.)                                                                         
file.c:172: error: 'O_RDWR' undeclared (first use in this function)                                                          
file.c:172: error: 'O_CREAT' undeclared (first use in this function)                                                         
file.c:172: error: 'O_EXCL' undeclared (first use in this function)                                                          
file.c: In function 'copyAndUpdateFile':                                                                                     
file.c:389: error: 'O_RDONLY' undeclared (first use in this function)                                                        
file.c:392: error: 'O_RDWR' undeclared (first use in this function)                                                          
file.c:392: error: 'O_CREAT' undeclared (first use in this function)                                                         
file.c:392: error: 'O_EXCL' undeclared (first use in this function)                                                          
file.c: In function 'pg_scandir':                                                                                            
file.c:478: warning: passing argument 3 of 'scandir' from incompatible pointer type                                          
gmake[1]: *** [file.o] Ошибка 1                                                                                              
gmake[1]: Leaving directory `/root/pg_migrator-8.4-rc1/src'                                                                  
gmake: *** [install] Ошибка 2                                                                      




When I add line ""#include <fcntl.h>"" to file.c, I get other problem:


cc -O2 -fno-strict-aliasing -pipe  -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -DFRONTEND -I. -I/usr/local/include -I. -I/usr/local/include/postgresql/server -I/usr/local/include/postgresql/internal -I/usr/local/include -I/usr/local/include/libxml2 -I/usr/local/include  -I/usr/local/include -I. -I/usr/local/include/postgresql/server -I/usr/local/include/postgresql/internal -I/usr/local/include -I/usr/local/include/libxml2 -I/usr/local/include  -I/usr/local/include  -c -o pg_migrator.o pg_migrator.c
pg_migrator.c: In function 'check_cluster_versions':
pg_migrator.c:539: error: 'PG_MAJORVERSION' undeclared (first use in this function)
pg_migrator.c:539: error: (Each undeclared identifier is reported only once
pg_migrator.c:539: error: for each function it appears in.)
gmake[1]: *** [pg_migrator.o] Ошибка 1
gmake[1]: Leaving directory `/root/pg_migrator-8.4-rc1/src'
gmake: *** [install] Ошибка 2
";"None";"None";"None"