Bug 195493 - databases/postgresql93-server port install with dtrace enabled fails
Summary: databases/postgresql93-server port install with dtrace enabled fails
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: pgsql
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-29 09:43 UTC by weberge42
Modified: 2018-02-08 17:18 UTC (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description weberge42 2014-11-29 09:43:49 UTC
A fresh install of postgresql93-server port fails with dtrace enabled:
Freebsd uname -a:
FreeBSD freebsd 10.1-RELEASE FreeBSD 10.1-RELEASE #0 r274401: Tue Nov 11 21:02:49 UTC 2014     root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64

running on vmware workstation


steps:
cd /usr/ports/databases/postgresql93-server
make config
- enable dtrace
- enable optimized_cflags
make install



config.status: linking src/backend/port/dynloader/freebsd.h to src/include/dynloader.h
config.status: linking src/include/port/freebsd.h to src/include/pg_config_os.h
config.status: linking src/makefiles/Makefile.freebsd to src/Makefile.port
===>  Building for postgresql93-server-9.3.5

  =========== BACKUP YOUR DATA! =============
  As always, backup your data before
  upgrading. If the upgrade leads to a higher
  minor revision (e.g. 8.3.x -> 8.4), a dump
  and restore of all databases is
  required. This is *NOT* done by the port!

  Press ctrl-C *now* if you need to pg_dump.
  ===========================================
gmake[2]: Entering directory `/usr/ports/databases/postgresql93-server/work/postgresql-9.3.5/src/backend'
prereqdir=`cd 'parser/' >/dev/null && pwd` && \
  cd '../../src/include/parser/' && rm -f gram.h && \
  ln -s "$prereqdir/gram.h" .
prereqdir=`cd 'utils/' >/dev/null && pwd` && \
  cd '../../src/include/utils/' && rm -f fmgroids.h && \
  ln -s "$prereqdir/fmgroids.h" .
gmake -C utils probes.h
gmake[3]: Entering directory `/usr/ports/databases/postgresql93-server/work/postgresql-9.3.5/src/backend/utils'
dtrace -C -h -s probes.d -o probes.h.tmp
dtrace: failed to compile script probes.d: line 150: failed to resolve INP_IPV4: Unknown variable name
gmake[3]: *** [probes.h] Error 1
gmake[3]: Leaving directory `/usr/ports/databases/postgresql93-server/work/postgresql-9.3.5/src/backend/utils'
gmake[2]: *** [utils/probes.h] Error 2
gmake[2]: Leaving directory `/usr/ports/databases/postgresql93-server/work/postgresql-9.3.5/src/backend'
*** Error code 2

Stop.
make[1]: stopped in /usr/ports/databases/postgresql93-server
*** Error code 1

Stop.


port builds fine without dtrace
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2014-11-29 11:44:26 UTC
Fix Summary and assign.
Comment 2 decibel 2015-04-30 08:46:07 UTC
Same issue with 9.4.1 (via postgresql94-plperl).
Comment 3 Bernd Haug 2015-06-21 17:12:43 UTC
Same when building client only, databases/postgresql93-client, installed as dependency of www/nginx when selecting the PostgreSQL integration, and enabling dtrace integration when configuring PostgreSQL for client. Parent postgresql93-server is version 9.3.9, ports last fetched 2015-06-20 around noon. Output:

===>  Building for postgresql93-client-9.3.9
gmake[4]: Entering directory '/usr/ports/databases/postgresql93-client/work/postgresql-9.3.9/src/backend'
prereqdir=`cd 'parser/' >/dev/null && pwd` && \
  cd '../../src/include/parser/' && rm -f gram.h && \
  ln -s "$prereqdir/gram.h" .
prereqdir=`cd 'utils/' >/dev/null && pwd` && \
  cd '../../src/include/utils/' && rm -f fmgroids.h && \
  ln -s "$prereqdir/fmgroids.h" .
gmake -C utils probes.h
gmake[5]: Entering directory '/usr/ports/databases/postgresql93-client/work/postgresql-9.3.9/src/backend/utils'
dtrace -C -h -s probes.d -o probes.h.tmp
dtrace: failed to compile script probes.d: "/usr/lib/dtrace/regs_x86.d", line 30: failed to resolve INP_IPV4: Unknown variable name
Makefile:38: recipe for target 'probes.h' failed
gmake[5]: *** [probes.h] Error 1
gmake[5]: Leaving directory '/usr/ports/databases/postgresql93-client/work/postgresql-9.3.9/src/backend/utils'
Makefile:157: recipe for target 'utils/probes.h' failed
gmake[4]: *** [utils/probes.h] Error 2
gmake[4]: Leaving directory '/usr/ports/databases/postgresql93-client/work/postgresql-9.3.9/src/backend'
*** Error code 2

Stop.
make[3]: stopped in /usr/ports/databases/postgresql93-client
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/databases/postgresql93-client
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/www/nginx
*** Error code 1

Stop.
make: stopped in /usr/ports/www/nginx
Comment 4 Walter Schwarzenfeld freebsd_triage 2018-01-12 02:55:19 UTC
10.1 RELEASE is EOL. Compiles fine on 10.4 with DTRACE=on. Seems solved or overcome by events.