SCM

[#1010657] Build failure on FreeBSD

View Trackers | Bugs | Download .csv | Monitor

Date:
2009-06-17 06:15
Priority:
3
State:
Open
Submitted by:
Michail Galanin (negram)
Assigned to:
Nobody (None)
Category:
Group:
Resolution:
None
 
Summary:
Build failure on FreeBSD

Detailed description
[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

Followup

No Followups Have Been Posted

Attached Files:

Changes:

No Changes Have Been Made to This Item

Powered By FusionForge