bugzilla-daemon at main.slony.info bugzilla-daemon at main.slony.info
Mon Aug 23 06:16:25 PDT 2010
http://www.slony.info/bugzilla/show_bug.cgi?id=90

Steve Singer <ssinger at ca.afilias.info> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|WORKSFORME                  |
             Status|RESOLVED                    |REOPENED

--- Comment #3 from Steve Singer <ssinger at ca.afilias.info> 2010-08-23 06:16:25 PDT ---
No this bug (or something really similar still exists).  We can not build on
Solaris with the Sun compiler.

The problem is that slonik and log_shipper are client side programs that are
including postgres.h.   postgres.h should really only be included by programs
that link in with the postgresql server (ie triggers).  There are some inline
functions that get included by postgres.h that call other backend functions. 
Since this inline functions don't actually get called gcc seems to not care
about the undefined symbols.  The Sun compiler on Solaris isn't as forgiving.

Ideally we wouldn't include postgres.h from slonik, we are currently using it
for type definitions (int64 uint32 etc...) and a few other things.  I suspect
replacing the postgres typedefs with C99 stye int32_t ones would go a long way
towards helping but this will cause grief for win32 with many versions of
visual C because they didn't have the C99 types until recently.  Since I don't
have access to a Win32/Visual studio development environment I'm somewhat
afraid to make these changes without fixing them (I do have access to a Solaris
environment)

-- 
Configure bugmail: http://www.slony.info/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Slony1-bugs mailing list