Menu

#272 OpenBSD porting

Development Queue
open
nobody
None
5
2012-06-03
2012-02-10
No

While porting pgxc to OpenBSD for testing purposes, I found following defects:

1) EPROTO constant in gtm code. This constatnt seems absent in BSD, so i solved it by adding following line to src/include/port/openbsd.h:
#define EPROTO EIO

2) u_int8_t and similar constants not defined in pqcomm.c and others. Solved by adding
#include <sys/types.h> to src/include/pqcomm.h

3) BSD port system wants untarred distribution directorly name with version numper. Could you please consider making not simply "pgxc" dir inside of pgxc_vX.Y.Z.tgz but something like pgxc-X.Y.Z inside of pgxc-X.Y.Z.tgz for future releases.

4) src/pl/plpgsql does not want to compile at all because grammar has errors at least from point of view of OpenBSD's bison.
Solved this problem by taking code from postgresql-9.1.2.tgz which contains generated files.

Changes are trivial, so i do not post patches here. Thnks!

Discussion

  • Abbas Butt

    Abbas Butt - 2012-03-06
    • milestone: 2411330 --> 2663467
     
  • Michael Paquier

    Michael Paquier - 2012-05-31

    A patch would be welcome to solve that.
    We have no buildfarms or environments to test OpenBSD directly.

     
  • Koichi Suzuki

    Koichi Suzuki - 2012-06-03
    • milestone: 2663467 --> Development Queue
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.