Re: 7.1.3, IRIX 6.5 and gcc - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: 7.1.3, IRIX 6.5 and gcc
Date
Msg-id Pine.LNX.4.30.0108281715020.699-100000@peter.localdomain
Whole thread Raw
In response to Re: 7.1.3, IRIX 6.5 and gcc  (Bruno Mattarollo <bruno@web1.greenpeace.org>)
List pgsql-hackers
Bruno Mattarollo writes:

> Thanks Peter! That solved the problem and I could get postgresql 7.1.3 to
> compile.

Okay, the fix has been checked in for the next release.

> Actually it works :) It seems that for my needs now, this GCC is
> enough...

I'm referring to the note at http://freeware.sgi.com/howto.html:
   * gcc vs. cc
   Code that runs fine when compiled with SGI cc   and doesn't run when compiled with gcc might be   calling one of the
followingfunctions:
 
       inet_ntoa, inet_lnaof, inet_netof, inet_makeaddr, semctl
   (there may be others). These are functions   that get passed or return structs that are smaller than 16   bytes but
not8 bytes long. gcc and SGI cc   are incompatible in the way they pass these structs so   compiling with gcc and
linkingwith the SGI   libc.so (which was compiled with the SGI cc) is likely to   cause these problems. Note that this
problem  is pretty rare since such functions are not widely used.   This may be considered a bug in gcc but is too
involvedto fix I'm told.
 

PostgreSQL calls at least semctl(), but not necessarily during mere
"seeing if it works".  So be careful.

Check out the above site for more resources about open source software on
Irix.

-- 
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Status of ipcclean
Next
From: Peter Eisentraut
Date:
Subject: Re: NetBSD 1.5.1(HP300)