ports/173851: graphics/libfpx: can't compile with clang
Kevin Lo
kevlo at FreeBSD.org
Fri Nov 23 05:30:00 UTC 2012
>Number: 173851
>Category: ports
>Synopsis: graphics/libfpx: can't compile with clang
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Fri Nov 23 05:30:00 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Kevin Lo
>Release: 10.0-CURRENT
>Organization:
>Environment:
10.0-CURRENT FreeBSD 10.0-CURRENT
>Description:
c++ -O2 -pipe -DHAVE_WCHAR_H -DHAVE_DLFCN_H -DHAVE_SYS_TIME_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_MOUNT_H -Qunused-arguments -fstack-protector -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wpointer-arith -Wno-uninitialized -Wno-empty-body -Wno-string-plus-int -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-conversion -fno-rtti -fno-exceptions -fno-strict-aliasing -DHAVE_WCHAR_H -DHAVE_DLFCN_H -DHAVE_SYS_TIME_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_MOUNT_H -I/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/oless/h -I/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/jpeg -I/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/ole -I/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/basics -I/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/ri_image -I/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/oless -I/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/fpx -I/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/. -I/usr/local/include -D_UNIX -c /usr/ports/graphics/libf
px/work/libfpx-1.3.1-1/oless/entry.cxx -o entry.o
In file included from /usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/oless/dir.cxx:12:
In file included from /usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/oless/msfhead.cxx:18:
In file included from /usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/oless/h/msf.hxx:131:
/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/oless/h/dir.hxx:144:11: error: private field '_bpad' is not used [-Werror,-Wunused-private-field]
BYTE _bpad[CBDIRPAD];
^
In file included from /usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/oless/dir.cxx:12:
In file included from /usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/oless/msfhead.cxx:18:
In file included from /usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/oless/h/msf.hxx:131:
1 error generated.
/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/oless/h/dir.hxx:144:11: error: private field '_bpad' is not used [-Werror,-Wunused-private-field]
BYTE _bpad[CBDIRPAD];
^
1 error generated.
*** [dir.So] Error code 1
*** [dir.o] Error code 1
2 errors
*** [do-build] Error code 1
>How-To-Repeat:
>Fix:
--- graphics/libfpx/files/patch-unused-privates.orig 2012-11-23 13:20:10.000000000 +0800
+++ graphics/libfpx/files/patch-unused-privates 2012-11-23 13:12:30.000000000 +0800
@@ -12,3 +12,14 @@
- OLEStorage* resultStorage; // Result FPX Image storage
// Geometric parameters
+--- oless/h/dir.hxx.orig 2012-11-23 13:08:46.000000000 +0800
++++ oless/h/dir.hxx 2012-11-23 13:09:02.000000000 +0800
+@@ -140,8 +140,6 @@
+ private:
+ inline BYTE GetBitFlags() const;
+ inline void SetBitFlags(BYTE bValue, BYTE bMask);
+-
+- BYTE _bpad[CBDIRPAD];
+ };
+
+ //+-------------------------------------------------------------------------
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list