CVS broken - large file support?

Started by Christopher Kings-Lynneover 23 years ago10 messages
#1Christopher Kings-Lynne
chriskl@familyhealth.com.au

On FreeBSD/Alpha, CVS gives:

gmake[4]: Entering directory `/home/chriskl/pgsql-head/src/backend/parser'
gmake[4]: Nothing to be done for `all'.
gmake[4]: Leaving directory `/home/chriskl/pgsql-head/src/backend/parser'
gcc -pipe -O -g -Wall -Wmissing-prototypes -Wmissing-declarations -I../../..
/src/interfaces/libpq -I../../../src/include -c -o common.o common.c -MMD
In file included from common.c:21:
pg_backup_archiver.h:168: syntax error before `off_t'
gmake[3]: *** [common.o] Error 1
gmake[3]: Leaving directory `/home/chriskl/pgsql-head/src/bin/pg_dump'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/home/chriskl/pgsql-head/src/bin'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/home/chriskl/pgsql-head/src'
gmake: *** [all] Error 2

Chris

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Christopher Kings-Lynne (#1)
Re: CVS broken - large file support?

"Christopher Kings-Lynne" <chriskl@familyhealth.com.au> writes:

On FreeBSD/Alpha, CVS gives [trouble]

I'm currently having to use "configure --disable-largefile" on HPUX;
looks like you'll have to do the same until Peter finishes ironing out
the wrinkles with autoconfiguring largefile support. It would be
helpful if you'd poke into your system headers and find out (a) can you
do large files at all, and if so (b) what is the correct magic
combination of #defines for your system.

regards, tom lane

#3Peter Eisentraut
peter_e@gmx.net
In reply to: Christopher Kings-Lynne (#1)
Re: CVS broken - large file support?

Christopher Kings-Lynne writes:

On FreeBSD/Alpha, CVS gives:

pg_backup_archiver.h:168: syntax error before `off_t'

I have added sys/types.h, so off_t should now be available.

--
Peter Eisentraut peter_e@gmx.net

#4Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Peter Eisentraut (#3)
Re: CVS broken - large file support?

Peter, did you go around and remove sys/types.h from all the include
files now that it is in c.h?

---------------------------------------------------------------------------

Peter Eisentraut wrote:

Christopher Kings-Lynne writes:

On FreeBSD/Alpha, CVS gives:

pg_backup_archiver.h:168: syntax error before `off_t'

I have added sys/types.h, so off_t should now be available.

--
Peter Eisentraut peter_e@gmx.net

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#5Sean Chittenden
sean@chittenden.org
In reply to: Tom Lane (#2)
Re: CVS broken - large file support?

On FreeBSD/Alpha, CVS gives [trouble]

I'm currently having to use "configure --disable-largefile" on HPUX;
looks like you'll have to do the same until Peter finishes ironing out
the wrinkles with autoconfiguring largefile support. It would be
helpful if you'd poke into your system headers and find out (a) can you
do large files at all, and if so (b) what is the correct magic
combination of #defines for your system.

FreeBSD 5.0-CURRENT, gcc 3.1 and 3.2 both have this same problem even
with largefile disabled. Help? -sc

gmake[4]: Leaving directory `/usr/home/sean/open_source/postgresql/pgsql/src/backend/parser'
gcc -pipe -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../src/interfaces/libpq -I../../../src/include -c -o pg_dump.o pg_dump.c
gcc -pipe -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../src/interfaces/libpq -I../../../src/include -c -o common.o common.c
In file included from common.c:21:
pg_backup_archiver.h:168: syntax error before "off_t"
gmake[3]: *** [common.o] Error 1
gmake[3]: Leaving directory `/usr/home/sean/open_source/postgresql/pgsql/src/bin/pg_dump'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/usr/home/sean/open_source/postgresql/pgsql/src/bin'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/usr/home/sean/open_source/postgresql/pgsql/src'
gmake: *** [all] Error 2
*** Error code 2

Stop in /usr/home/sean/open_source/postgresql/pgsql.

--
Sean Chittenden

#6Sean Chittenden
sean@chittenden.org
In reply to: Sean Chittenden (#5)
1 attachment(s)
Re: CVS broken - large file support?

On FreeBSD/Alpha, CVS gives [trouble]

I'm currently having to use "configure --disable-largefile" on HPUX;
looks like you'll have to do the same until Peter finishes ironing out
the wrinkles with autoconfiguring largefile support. It would be
helpful if you'd poke into your system headers and find out (a) can you
do large files at all, and if so (b) what is the correct magic
combination of #defines for your system.

FreeBSD 5.0-CURRENT, gcc 3.1 and 3.2 both have this same problem even
with largefile disabled. Help? -sc

For those interested and with commit powers, including sys/types.h in
pg_backup_archiver.h fixes this build problem. -sc

gcc -pipe -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../src/interfaces/libpq -I../../../src/include -c -o common.o common.c
In file included from common.c:21:
pg_backup_archiver.h:168: syntax error before "off_t"
gmake[3]: *** [common.o] Error 1

--
Sean Chittenden

Attachments:

patchtext/plain; charset=us-asciiDownload
Index: pg_backup_archiver.h
===================================================================
RCS file: /projects/cvsroot/pgsql-server/src/bin/pg_dump/pg_backup_archiver.h,v
retrieving revision 1.46
diff -u -r1.46 pg_backup_archiver.h
--- pg_backup_archiver.h	2002/08/20 17:54:44	1.46
+++ pg_backup_archiver.h	2002/08/21 23:01:14
@@ -29,6 +29,7 @@
 
 #include <time.h>
 #include <errno.h>
+#include <sys/types.h>
 
 #include "pqexpbuffer.h"
 #define LOBBUFSIZE 32768
#7Sean Chittenden
sean@chittenden.org
In reply to: Sean Chittenden (#6)
1 attachment(s)
Re: CVS broken - large file support?

On FreeBSD/Alpha, CVS gives [trouble]

I'm currently having to use "configure --disable-largefile" on HPUX;
looks like you'll have to do the same until Peter finishes ironing out
the wrinkles with autoconfiguring largefile support. It would be
helpful if you'd poke into your system headers and find out (a) can you
do large files at all, and if so (b) what is the correct magic
combination of #defines for your system.

FreeBSD 5.0-CURRENT, gcc 3.1 and 3.2 both have this same problem even
with largefile disabled. Help? -sc

For those interested and with commit powers, including sys/types.h in
pg_backup_archiver.h fixes this build problem. -sc

gcc -pipe -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../src/interfaces/libpq -I../../../src/include -c -o common.o common.c
In file included from common.c:21:
pg_backup_archiver.h:168: syntax error before "off_t"
gmake[3]: *** [common.o] Error 1

'nother trivial type-o/patch that gets building working with
--disable-largefile. -sc

--
Sean Chittenden

Attachments:

patchtext/plain; charset=us-asciiDownload
Index: src/backend/utils/mb/conversion_procs/ascii_and_mic/Makefile
===================================================================
RCS file: /projects/cvsroot/pgsql-server/src/backend/utils/mb/conversion_procs/ascii_and_mic/Makefile,v
retrieving revision 1.2
diff -u -r1.2 Makefile
--- src/backend/utils/mb/conversion_procs/ascii_and_mic/Makefile	2002/08/21 21:33:55	1.2
+++ src/backend/utils/mb/conversion_procs/ascii_and_mic/Makefile	2002/08/22 02:10:28
@@ -1,4 +1,4 @@
-]#-------------------------------------------------------------------------
+#-------------------------------------------------------------------------
 #
 # $Id: Makefile,v 1.2 2002/08/21 21:33:55 momjian Exp $
 #
#8Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Sean Chittenden (#7)
Re: CVS broken - large file support?

Yea, that was my booboo, fixed now.

---------------------------------------------------------------------------

Sean Chittenden wrote:

On FreeBSD/Alpha, CVS gives [trouble]

I'm currently having to use "configure --disable-largefile" on HPUX;
looks like you'll have to do the same until Peter finishes ironing out
the wrinkles with autoconfiguring largefile support. It would be
helpful if you'd poke into your system headers and find out (a) can you
do large files at all, and if so (b) what is the correct magic
combination of #defines for your system.

FreeBSD 5.0-CURRENT, gcc 3.1 and 3.2 both have this same problem even
with largefile disabled. Help? -sc

For those interested and with commit powers, including sys/types.h in
pg_backup_archiver.h fixes this build problem. -sc

gcc -pipe -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../src/interfaces/libpq -I../../../src/include -c -o common.o common.c
In file included from common.c:21:
pg_backup_archiver.h:168: syntax error before "off_t"
gmake[3]: *** [common.o] Error 1

'nother trivial type-o/patch that gets building working with
--disable-largefile. -sc

--
Sean Chittenden

[ Attachment, skipping... ]

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#9Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Bruce Momjian (#4)
Re: CVS broken - large file support?

Peter, I have received no reply to this question.

---------------------------------------------------------------------------

Bruce Momjian wrote:

Peter, did you go around and remove sys/types.h from all the include
files now that it is in c.h?

---------------------------------------------------------------------------

Peter Eisentraut wrote:

Christopher Kings-Lynne writes:

On FreeBSD/Alpha, CVS gives:

pg_backup_archiver.h:168: syntax error before `off_t'

I have added sys/types.h, so off_t should now be available.

--
Peter Eisentraut peter_e@gmx.net

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

-- 
Bruce Momjian                        |  http://candle.pha.pa.us
pgman@candle.pha.pa.us               |  (610) 359-1001
+  If your life is a hard drive,     |  13 Roberts Road
+  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#10Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Bruce Momjian (#4)
Re: CVS broken - large file support?

Done and committed with clean compile.

---------------------------------------------------------------------------

Bruce Momjian wrote:

Peter, did you go around and remove sys/types.h from all the include
files now that it is in c.h?

---------------------------------------------------------------------------

Peter Eisentraut wrote:

Christopher Kings-Lynne writes:

On FreeBSD/Alpha, CVS gives:

pg_backup_archiver.h:168: syntax error before `off_t'

I have added sys/types.h, so off_t should now be available.

--
Peter Eisentraut peter_e@gmx.net

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

-- 
Bruce Momjian                        |  http://candle.pha.pa.us
pgman@candle.pha.pa.us               |  (610) 359-1001
+  If your life is a hard drive,     |  13 Roberts Road
+  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073