Bug 228730

Summary: graphics/mandelbulber does not build with clang 6.0
Product: Ports & Packages Reporter: Don Lewis <truckman>
Component: Individual Port(s)Assignee: Dmitry Marakasov <amdmi3>
Status: Closed Overcome By Events    
Severity: Affects Some People Keywords: patch
Priority: --- Flags: bugzilla: maintainer-feedback? (amdmi3)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch to unbreak mandelbulber build with clang 6.0 none

Description Don Lewis freebsd_committer freebsd_triage 2018-06-04 00:32:13 UTC
Created attachment 193977 [details]
patch to unbreak mandelbulber build with clang 6.0

mandelbuilber 1.13.1 is pretty far out of date ...

It also fails to build with clang 6.0, with three types of errors:
  invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]

  type 'double' cannot be narrowed to 'unsigned short' in initializer list [-Wc++11-narrowing]

  non-constant-expression cannot be narrowed from type 'int' to 'guint16' (aka 'unsigned short') in initializer list [-Wc++11-narrowing]

  non-constant-expression cannot be narrowed from type 'int' to 'unsigned short' in initializer list [-Wc++11-narrowing]

  assigning to 'int' from incompatible type '__bind<int &, sockaddr *&, unsigned int &>'

The attached patch fixes the build for me.