Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 624578

Summary: net-voip/yate-5.5.0-r1 : h323chan.cpp:3394:5: error: PTrace has not been declared
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Radio project <radio>
Status: CONFIRMED ---    
Severity: normal CC: deference
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
net-voip:yate-5.5.0-r1:20170711-043756.log
temp.tbz2

Description Toralf Förster gentoo-dev 2017-07-11 17:57:22 UTC
x86_64-pc-linux-gnu-g++ -Wall   -I.. -I.. -O2 -pipe -march=native -Wall -Wno-overloaded-virtual  -fno-exceptions -fPIC -DHAVE_GCC_FORMAT_CHECK -DHAVE_BLOCK_RETURN  -rdynamic -shared -Wl,--unresolved-symbols=ignore-in-shared-libs -Wl,--retain-symbols-file,/dev/null -Wl,-O1 -Wl,--as-needed -o h323chan.yate  -I/usr/include -DP_64BIT -DPTRACING=0 -DPASN_NOPRINTON -DPASN_LEANANDMEAN -D_REENTRANT -fno-exceptions -I/usr/include/openh323 h323chan.cpp  -L.. -lyate  -L/usr/lib64 -lopenh323 -L/usr/lib64 -lpt
h323chan.cpp: In member function ‘virtual void {anonymous}::H323Driver::initialize()’:
h323chan.cpp:3394:5: error: ‘PTrace’ has not been declared
     PTrace::Initialise(dbg,0,PTrace::Blocks | PTrace::Timestamp
     ^~~~~~
h323chan.cpp:3394:30: error: ‘PTrace’ has not been declared

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 13.0_20170706-210712

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-6.3.0 *

Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python3.6 (fallback)
  [3]   python3.5 (fallback)
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby21 (with Rubygems) *
  [2]   ruby22 (with Rubygems)
Comment 1 Toralf Förster gentoo-dev 2017-07-11 17:57:26 UTC
Created attachment 483146 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-07-11 17:57:29 UTC
Created attachment 483148 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2017-07-11 17:57:32 UTC
Created attachment 483150 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2017-07-11 17:57:35 UTC
Created attachment 483152 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2017-07-11 17:57:38 UTC
Created attachment 483154 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2017-07-11 17:57:41 UTC
Created attachment 483156 [details]
net-voip:yate-5.5.0-r1:20170711-043756.log
Comment 7 Toralf Förster gentoo-dev 2017-07-11 17:57:45 UTC
Created attachment 483158 [details]
temp.tbz2
Comment 8 deference 2017-07-21 02:33:17 UTC
I'm also experiencing this bug.
In case you've not yet figured it out, it's due to USE h323 being set.
Comment 9 Oleh 2017-09-21 02:05:29 UTC
this is a bit of what is going on:
h323chan.cpp using PTrace class from net-libs/ptlib. This class defined in object.h header in ptlib. yate h323chan.cpp only including ptlib.h and not object.h and for the following reason – newer version of ptlib.h header thats from newer ptlib (and which is not present in portage tree) automatically inludes object.h. Older, and the only version of ptlib is in portage tree, does not. manually including object.h from ptlib-2.10.11 in yate's h323chan.cpp does not work as it expects newer object.h. For some reason, newer versions of ptlib versions (they were masked) removed and only 2.10.11 kept. The fix for this would be:
1. update to newer ptlib
2. mask of h323 use for yate ebuild as there is no working ptlib versions in portage tree at all.
uptream version of ptlib is 2.17.6