Skip site navigation (1) Skip section navigation (2)

Re: got Postgresql working on FreeBSD-alpha

From: Alfred Perlstein <bright(at)wintelcom(dot)net>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: got Postgresql working on FreeBSD-alpha
Date: 2000-11-14 19:33:11
Message-ID: 20001114113310.M11449@fw.wintelcom.net (view raw or flat)
Thread:
Lists: pgsql-patches
* Alfred Perlstein <bright(at)wintelcom(dot)net> [001114 09:47] wrote:
> * Peter Eisentraut <peter_e(at)gmx(dot)net> [001114 09:11] wrote:
> > Alfred Perlstein writes:
> > 
> > > There's still some warnings that have me concerned:
> > > http://people.freebsd.org/~alfred/pgsql/build.log
> > 
> > In outfuncs.c, that was somebody's cute idea to print pointers like
> > 
> >    printf("%x", (int) ptr);
> > 
> > rather than
> > 
> >    printf("%p", ptr);
> > 
> > Same in s_lock.c.  The format warnings look like size_t being used as %d
> > or %u.  You'll probably have to add casts everywhere.
> 
> grr! :)
> 
> I'll take a shot at it.
> 

updated:

http://people.freebsd.org/~alfred/pgsql/port-alpha.diff

Make pgsql compile on FreeBSD-alpha.

Remove -m486 compile args for FreeBSD-i386.

Make the port use the TEST_AND_SET for alpha and i386 on FreeBSD.

Fix a lot of bogus string formats for outputting pointers (cast to int
and %u/%x replaced with no cast and %p), and 'Size'(size_t) are now
cast to 'unsigned long' and output with %lu/

Remove an unused variable.

-- 
-Alfred Perlstein - [bright(at)wintelcom(dot)net|alfred(at)freebsd(dot)org]
"I have the heart of a child; I keep it in a jar on my desk."

In response to

Responses

pgsql-patches by date

Next:From: Peter EisentrautDate: 2000-11-14 21:34:20
Subject: Re: patch for darwin/macosx-publicbeta
Previous:From: Peter EisentrautDate: 2000-11-14 18:03:42
Subject: Re: Re: [PATCHES] PostgreSQL virtual hosting support

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group