Opened 10 years ago

Closed 10 years ago

#41220 closed defect (fixed)

gwenview @4.11.2 importer/fileutils.cpp:133:10: error: use of undeclared identifier 'mkdtemp'

Reported by: wahspilihp (Philip Shaw) Owned by: NicosPavlov
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: mavericks Cc:
Port: gwenview

Description

Gwenview won't build on Mavericks, I believe the following is the error.

:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_gwenview/gwenview/work/build/tests/auto && /opt/local/bin/cmake -E cmake_link_script CMake
Files/imagescalertest.dir/link.txt --verbose=1
:info:build /usr/bin/clang++   -pipe -Os -arch x86_64  -fno-common -Wnon-virtual-dtor -Wno-long-long -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -Woverloaded-virtual 
-fno-exceptions -DQT_NO_EXCEPTIONS -fno-common -fvisibility=hidden -Werror=return-type -fvisibility-inlines-hidden -fdelayed-template-parsing -Wno-return-type-c-linkage -O2 -DNDEBUG -DQT_NO_DEBUG -arch x8
6_64 -Wl,-search_paths_first -Wl,-headerpad_max_install_names  -Wl,-headerpad_max_install_names -arch x86_64 CMakeFiles/imagescalertest.dir/imagescalertest_automoc.o CMakeFiles/imagescalertest.dir/imagesc
alertest.o  -o imagescalertest.app/Contents/MacOS/imagescalertest  /opt/local/lib/libkio.5.11.2.dylib /opt/local/lib/libkdeui.5.11.2.dylib /opt/local/lib/libkdecore.5.11.2.dylib /opt/local/lib/libQtTest.dylib /opt/local/lib/libQtCore.dylib /opt/local/lib/libQtGui.dylib ../../lib/libgwenviewlib.4.11.2.dylib /opt/local/lib/libkio.5.11.2.dylib /opt/local/lib/libQtNetwork.dylib /opt/local/lib/libQtXml.dylib /opt/local/lib/libkdeui.5.11.2.dylib /opt/local/lib/libQtSvg.dylib /opt/local/lib/libkdecore.5.11.2.dylib /opt/local/lib/libQtCore.dylib /opt/local/lib/libQtDBus.dylib -framework Carbon /opt/local/lib/libQtGui.dylib 
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_gwenview/gwenview/work/gwenview-4.11.2/importer/fileutils.cpp:133:10: error: use of undeclared identifier 'mkdtemp'
:info:build     if (!mkdtemp(name.data())) {
:info:build          ^
:info:build 1 error generated.
:info:build make[2]: *** [tests/auto/CMakeFiles/importertest.dir/__/__/importer/fileutils.o] Error 1

This doesn't appear to have been reported upstream, but the current upstream version appears to be 4.11.60, so it may have already been fixed.

Attachments (1)

main.log (450.6 KB) - added by wahspilihp (Philip Shaw) 10 years ago.

Download all attachments as: .zip

Change History (4)

Changed 10 years ago by wahspilihp (Philip Shaw)

Attachment: main.log added

comment:1 Changed 10 years ago by wahspilihp (Philip Shaw)

As I said on the upstream bug report ( KDE bug 327211), now that I've had time to look into it, it builds fine with "#include <unistd.h>" added to fileutils.cpp.

That does raise the question of why it worked for everyone else, but that's an easy enough fix.

comment:2 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: mavericks added
Owner: changed from macports-tickets@… to nicos@…

comment:3 Changed 10 years ago by NicosPavlov

Resolution: fixed
Status: newclosed

Thanks for the report, I committed the fix in r113197.

Note: See TracTickets for help on using tickets.