Bug 187478 - net/openh323-1.19.0.1_6 does not compile
Summary: net/openh323-1.19.0.1_6 does not compile
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-12 14:40 UTC by janow49420
Modified: 2014-07-22 19:02 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description janow49420 2014-03-12 14:40:01 UTC
Port does not compile:

/usr/local/include/ptlib/array.h:391:3: warning: first operand of this 'memcmp' call is a pointer to dynamic class 'const PBaseArray<unsigned int>'; vtable pointer will be compared [-Wdynamic-class-memaccess]
  PCLASSINFO(PBaseArray, PAbstractArray);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/ptlib/object.h:1381:35: note: expanded from macro 'PCLASSINFO'
      { return (Comparison)memcmp(this, &obj, sizeof(cls)); } \
                           ~~~~~~ ^
/usr/local/include/ptlib/array.h:616:26: note: in instantiation of member function 'PBaseArray<unsigned int>::CompareObjectMemoryDirect' requested here
template <class T> class PScalarArray : public PBaseArray<T>
                         ^
/usr/local/include/ptlib/array.h:391:3: note: explicitly cast the pointer to silence this warning
  PCLASSINFO(PBaseArray, PAbstractArray);
  ^
/usr/local/include/ptlib/object.h:1381:35: note: expanded from macro 'PCLASSINFO'
      { return (Comparison)memcmp(this, &obj, sizeof(cls)); } \
                                  ^
In file included from h225_2.cxx:7:
In file included from /usr/local/include/ptlib.h:161:
In file included from /usr/local/include/ptlib/contain.h:814:
/usr/local/include/ptlib/dict.h:997:3: warning: first operand of this 'memcmp' call is a pointer to dynamic class 'const PDictionary<POrdinalKey, PReadWriteMutex::Nest>'; vtable pointer will be compared [-Wdynamic-class-memaccess]
  PCLASSINFO(PDictionary, PAbstractDictionary);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/ptlib/object.h:1381:35: note: expanded from macro 'PCLASSINFO'
      { return (Comparison)memcmp(this, &obj, sizeof(cls)); } \
                           ~~~~~~ ^
/usr/local/include/ptlib/syncthrd.h:294:7: note: in instantiation of member function 'PDictionary<POrdinalKey, PReadWriteMutex::Nest>::CompareObjectMemoryDirect' requested here
class PReadWriteMutex : public PObject
      ^
/usr/local/include/ptlib/dict.h:997:3: note: explicitly cast the pointer to silence this warning
  PCLASSINFO(PDictionary, PAbstractDictionary);
  ^
/usr/local/include/ptlib/object.h:1381:35: note: expanded from macro 'PCLASSINFO'
      { return (Comparison)memcmp(this, &obj, sizeof(cls)); } \
                                  ^
888 warnings and 8 errors generated.
gmake[3]: *** [/usr/ports/net/openh323/work/openh323_v1_19_0_1/lib/obj_r/h225_2.o] Error 1
gmake[3]: Leaving directory `/usr/ports/net/openh323/work/openh323_v1_19_0_1/src'
gmake[2]: *** [opt] Error 2
gmake[2]: Leaving directory `/usr/ports/net/openh323/work/openh323_v1_19_0_1'
gmake[1]: *** [optshared] Error 2
gmake[1]: Leaving directory `/usr/ports/net/openh323/work/openh323_v1_19_0_1'
===> Compilation failed unexpectedly.

How-To-Repeat: Merge port
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2014-03-12 15:46:25 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-ports-bugs

ports PR.
Comment 2 John Marino freebsd_committer freebsd_triage 2014-07-22 19:02:30 UTC
it's compiling everywhere now:
http://portsmon.freebsd.org/portoverview.py?category=net&portname=openh323