Bug 164796 - databases/postgresql-pltcl refuse to compile with PostgreSQL 9.1
Summary: databases/postgresql-pltcl refuse to compile with PostgreSQL 9.1
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Chris Rees
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-05 15:00 UTC by Pierre DAVID
Modified: 2012-02-19 14:10 UTC (History)
0 users

See Also:


Attachments
file.diff (1.89 KB, patch)
2012-02-05 15:00 UTC, Pierre DAVID
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pierre DAVID 2012-02-05 15:00:17 UTC
database/postgresql-pltcl refuse to compile with PostgreSQL 9.1 and Tcl 8.6:

Fix: Patch to apply to master port (postgresql91-server).

Patch attached with submission follows:
How-To-Repeat: With postgresql-server-9.1.2_3 and tcl-8.6.b.2:

# cd /usr/ports/database/postgresql-pltcl
# make install
..

===>  Building for postgresql-pltcl-9.1.2_3
..

cc -O2 -pipe -fno-strict-aliasing -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wformat-security -fno-strict-aliasing -fwrapv -fPIC -DPIC -I/usr/local/include/tcl8.5 -I../../../src/include -I/usr/local/include -I/usr/local/include  -c -o pltcl.o pltcl.c
In file included from ../../../src/include/postgres.h:48,
                 from pltcl.c:9:
./../../src/include/utils/elog.h:69:28: error: utils/errcodes.h: No such file or directory
pltcl.c: In function 'compile_pltcl_function':
pltcl.c:1252: error: 'ERRCODE_OUT_OF_MEMORY' undeclared (first use in this function)
pltcl.c:1252: error: (Each undeclared identifier is reported only once
pltcl.c:1252: error: for each function it appears in.)
pltcl.c:1306: error: 'ERRCODE_FEATURE_NOT_SUPPORTED' undeclared (first use in this function)
gmake: *** [pltcl.o] Error 1
*** Error code 2

Stop in /usr/ports/databases/postgresql-pltcl.

===>>> make failed for databases/postgresql-pltcl
===>>> Aborting update
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2012-02-18 00:43:40 UTC
Responsible Changed
From-To: freebsd-ports-bugs->crees

Over to new maintainer.
Comment 2 Chris Rees freebsd_committer freebsd_triage 2012-02-18 17:35:53 UTC
State Changed
From-To: open->analyzed

Testing.
Comment 3 dfilter service freebsd_committer freebsd_triage 2012-02-19 14:02:41 UTC
crees       2012-02-19 14:02:26 UTC

  FreeBSD ports repository

  Modified files:
    databases/postgresql-pltcl Makefile 
  Log:
  Fix build with 9.1; apparently incomplete builds are unsupported by upstream,
  so force rebuild of src/backend before trying pl/tcl
  
  PR:             164796
  
  Revision  Changes    Path
  1.26      +2 -1      ports/databases/postgresql-pltcl/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 4 Chris Rees freebsd_committer freebsd_triage 2012-02-19 14:03:02 UTC
State Changed
From-To: analyzed->closed

Thanks for the report.  I've taken a different route to fixing it, 
though your way would work as well.