Bug 230203 - net/opal fail to build with message: cannot initialize a parameter of type 'unsigned int' with an rvalue of type 'nullptr_t'
Summary: net/opal fail to build with message: cannot initialize a parameter of type 'u...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-gnome mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-30 22:27 UTC by VVD
Modified: 2018-12-02 17:24 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (gnome)


Attachments
Replace "NULL" on "0" in initialization of "unsigned int options" in include/h323/h323ep.h (605 bytes, patch)
2018-07-30 22:27 UTC, VVD
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description VVD 2018-07-30 22:27:38 UTC
Created attachment 195661 [details]
Replace "NULL" on "0" in initialization of "unsigned int options" in include/h323/h323ep.h

After update gcc from 6.4 to 7.3 net/opal fail to build with error message:

> In file included from /tmp/work/usr/ports/net/opal/work/opal-3.10.10/src/opal/console_mgr.cxx:39:
> /tmp/work/usr/ports/net/opal/work/opal-3.10.10/include/h323/h323ep.h:148:20: error: cannot initialize a parameter of type
>       'unsigned int' with an rvalue of type 'nullptr_t'
>      unsigned int options = NULL,      ///<  options to pass to conneciton

Patch is trivial - replace NULL on 0.

Just put my patch in net/opal/files - work for me on 11.2 amd64 and i386.
Comment 1 VVD 2018-11-10 02:27:43 UTC
Can anybody commit the patch?
Comment 2 Hans-Joachim Lindback 2018-12-02 17:24:41 UTC
Patch compiled also for me. 11-2-p5 i386