ports/181960: graphics/opencv-core: error: use of undeclared identifier 'isatty' inline int IsATTY(int fd) { return isatty(fd); }
O. Hartmann
ohartman at zedat.fu-berlin.de
Mon Sep 9 08:40:00 UTC 2013
>Number: 181960
>Category: ports
>Synopsis: graphics/opencv-core: error: use of undeclared identifier 'isatty' inline int IsATTY(int fd) { return isatty(fd); }
>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: Mon Sep 09 08:40:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: O. Hartmann
>Release: FreeBSD 10.0-CURRENT/amd64
>Organization:
FU Berlin
>Environment:
FreeBSD 10.0-CURRENT #0 r255386: Sun Sep 8 12:44:03 CEST 2013 amd64
CXXFLAGS = -std=c++11 -sdtlib=libc++ in /etc/src.conf (it is said not to affect ports building)
>Description:
Since x11/kdelibs4 is broken on most recent CURRENT with the iconv replacemnet update AND with outdated gcc stuff gone (CLANG only now), a rebuild of important port x11/kdelibs4 via
portmaster -dfr kdelibs ends up with a dropout of port graphics/opencv-core, which also doesn't build separately anymore.
[...]
[ 24%] Building CXX object modules/ts/CMakeFiles/opencv_ts.dir/src/ts_gtest.o
In file included from /usr/ports/graphics/opencv-core/work/OpenCV-2.3.1/modules/ts/src/ts_gtest.cpp:39:
In file included from /usr/ports/graphics/opencv-core/work/OpenCV-2.3.1/modules/ts/src/precomp.hpp:7:
In file included from /usr/ports/graphics/opencv-core/work/OpenCV-2.3.1/modules/ts/include/opencv2/ts/ts.hpp:10:
/usr/ports/graphics/opencv-core/work/OpenCV-2.3.1/modules/ts/include/opencv2/ts/ts_gtest.h:2378:36: error: use of undeclared identifier 'isatty'
inline int IsATTY(int fd) { return isatty(fd); }
^
/usr/ports/graphics/opencv-core/work/OpenCV-2.3.1/modules/ts/include/opencv2/ts/ts_gtest.h:2384:44: error: use of undeclared identifier 'rmdir'
inline int RmDir(const char* dir) { return rmdir(dir); }
^
/usr/ports/graphics/opencv-core/work/OpenCV-2.3.1/modules/ts/include/opencv2/ts/ts_gtest.h:2406:44: error: use of undeclared identifier 'chdir'
inline int ChDir(const char* dir) { return chdir(dir); }
^
/usr/ports/graphics/opencv-core/work/OpenCV-2.3.1/modules/ts/include/opencv2/ts/ts_gtest.h:2420:27: error: use of undeclared identifier 'read'; did you
mean 'Read'?
return static_cast<int>(read(fd, buf, count));
^~~~
Read
/usr/ports/graphics/opencv-core/work/OpenCV-2.3.1/modules/ts/include/opencv2/ts/ts_gtest.h:2419:12: note: 'Read' declared here
inline int Read(int fd, void* buf, unsigned int count) {
^
/usr/ports/graphics/opencv-core/work/OpenCV-2.3.1/modules/ts/include/opencv2/ts/ts_gtest.h:2423:27: error: use of undeclared identifier 'write'; did you
mean 'Write'?
return static_cast<int>(write(fd, buf, count));
>How-To-Repeat:
Build graphics/opencv-core on most recent CLANG only CURRENT as mentioned above.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list