Opened 13 years ago

Closed 13 years ago

#33046 closed defect (invalid)

kdelibs4 doesn't build on Lion in kpty.cpp

Reported by: neverpanic (Clemens Lang) Owned by: snc@…
Priority: Normal Milestone:
Component: ports Version: 2.0.99
Keywords: Cc:
Port: kdelibs4

Description (last modified by neverpanic (Clemens Lang))

Hi,

since the recent upgrade to 4.8.0, the kdelibs4 port does no longer build on Lion with the following error messages:

cd /opt/local/var/macports/build/_opt_dports_kde_kdelibs4/kdelibs4/work/build/kpty && /usr/bin/llvm-g++-4.2   -DMAKE_KPTY_LIB -DQT_NO_STL -DQT_NO_CAST_TO_ASCII -D_REENTRANT -DKDE_DEPRECATED_WARNINGS -DKDE4_CMAKE_TOPLEVEL_DIR_LENGTH=68 -DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS -pipe -O2 -arch x86_64  -fno-common -Woverloaded-virtual -fvisibility=hidden -Werror=return-type -fvisibility-inlines-hidden -O2 -DNDEBUG -DQT_NO_DEBUG -arch x86_64 -isysroot / -mmacosx-version-min=10.7 -fPIC -I/opt/local/var/macports/build/_opt_dports_kde_kdelibs4/kdelibs4/work/build/kpty -I/opt/local/var/macports/build/_opt_dports_kde_kdelibs4/kdelibs4/work/kdelibs-4.8.0/kpty -I/opt/local/var/macports/build/_opt_dports_kde_kdelibs4/kdelibs4/work/kdelibs-4.8.0 -I/opt/local/var/macports/build/_opt_dports_kde_kdelibs4/kdelibs4/work/build -I/opt/local/var/macports/build/_opt_dports_kde_kdelibs4/kdelibs4/work/kdelibs-4.8.0/interfaces -I/opt/local/var/macports/build/_opt_dports_kde_kdelibs4/kdelibs4/work/kdelibs-4.8.0/kjs -I/opt/local/var/macports/build/_opt_dports_kde_kdelibs4/kdelibs4/work/build/kjs -I/opt/local/var/macports/build/_opt_dports_kde_kdelibs4/kdelibs4/work/kdelibs-4.8.0/kdecore -I/opt/local/var/macports/build/_opt_dports_kde_kdelibs4/kdelibs4/work/build/kdecore -I/opt/local/var/macports/build/_opt_dports_kde_kdelibs4/kdelibs4/work/kdelibs-4.8.0/kdecore/compression -I/opt/local/var/macports/build/_opt_dports_kde_kdelibs4/kdelibs4/work/kdelibs-4.8.0/kdecore/config -I/opt/local/var/macports/build/_opt_dports_kde_kdelibs4/kdelibs4/work/kdelibs-4.8.0/kdecore/date -I/opt/local/var/macports/build/_opt_dports_kde_kdelibs4/kdelibs4/work/kdelibs-4.8.0/kdecore/io -I/opt/local/var/macports/build/_opt_dports_kde_kdelibs4/kdelibs4/work/kdelibs-4.8.0/kdecore/jobs -I/opt/local/var/macports/build/_opt_dports_kde_kdelibs4/kdelibs4/work/kdelibs-4.8.0/kdecore/kernel -I/opt/local/var/macports/build/_opt_dports_kde_kdelibs4/kdelibs4/work/kdelibs-4.8.0/kdecore/auth -I/opt/local/var/macports/build/_opt_dports_kde_kdelibs4/kdelibs4/work/kdelibs-4.8.0/kdecore/network -I/opt/local/var/macports/build/_opt_dports_kde_kdelibs4/kdelibs4/work/kdelibs-4.8.0/kdecore/services -I/opt/local/var/macports/build/_opt_dports_kde_kdelibs4/kdelibs4/work/kdelibs-4.8.0/kdecore/localization -I/opt/local/var/macports/build/_opt_dports_kde_kdelibs4/kdelibs4/work/kdelibs-4.8.0/kdecore/sycoca -I/opt/local/var/macports/build/_opt_dports_kde_kdelibs4/kdelibs4/work/kdelibs-4.8.0/kdecore/text -I/opt/local/var/macports/build/_opt_dports_kde_kdelibs4/kdelibs4/work/kdelibs-4.8.0/kdecore/util -I/opt/local/var/macports/build/_opt_dports_kde_kdelibs4/kdelibs4/work/kdelibs-4.8.0/kdecore/sonnet -I/opt/local/include/QtCrypto -I/opt/local/include/phonon -I/opt/local/include/QtXmlPatterns -I/opt/local/include/QtXml -I/opt/local/include/QtWebKit -I/opt/local/include/QtUiTools -I/opt/local/include/QtTest -I/opt/local/include/QtSvg -I/opt/local/include/QtSql -I/opt/local/include/QtScriptTools -I/opt/local/include/QtScript -I/opt/local/include/QtOpenGL -I/opt/local/include/QtNetwork -I/opt/local/include/QtMultimedia -I/opt/local/include/QtHelp -I/opt/local/include/QtDesigner -I/opt/local/include/QtDeclarative -I/opt/local/include/QtDBus -I/opt/local/include/Qt3Support -I/opt/local/include/QtGui -I/opt/local/include/QtCore -I/opt/local/share/qt4/mkspecs/default    -D__APPLE_KDE__  -o CMakeFiles/kpty.dir/kpty.o -c /opt/local/var/macports/build/_opt_dports_kde_kdelibs4/kdelibs4/work/kdelibs-4.8.0/kpty/kpty.cpp
/opt/local/var/macports/build/_opt_dports_kde_kdelibs4/kdelibs4/work/kdelibs-4.8.0/kpty/kpty.cpp: In member function ‘bool KPty::open()’:
/opt/local/var/macports/build/_opt_dports_kde_kdelibs4/kdelibs4/work/kdelibs-4.8.0/kpty/kpty.cpp:215: error: ‘::openpty’ has not been declared
/opt/local/var/macports/build/_opt_dports_kde_kdelibs4/kdelibs4/work/kdelibs-4.8.0/kpty/kpty.cpp: In member function ‘void KPty::login(const char*, const char*)’:
/opt/local/var/macports/build/_opt_dports_kde_kdelibs4/kdelibs4/work/kdelibs-4.8.0/kpty/kpty.cpp:512: warning: ‘utmp’ is deprecated (declared at //usr/include/utmp.h:96)
/opt/local/var/macports/build/_opt_dports_kde_kdelibs4/kdelibs4/work/kdelibs-4.8.0/kpty/kpty.cpp:550: error: ‘::login’ has not been declared
/opt/local/var/macports/build/_opt_dports_kde_kdelibs4/kdelibs4/work/kdelibs-4.8.0/kpty/kpty.cpp: In member function ‘void KPty::logout()’:
/opt/local/var/macports/build/_opt_dports_kde_kdelibs4/kdelibs4/work/kdelibs-4.8.0/kpty/kpty.cpp:602: error: ‘::logout’ has not been declared
make[2]: *** [kpty/CMakeFiles/kpty.dir/kpty.o] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_dports_kde_kdelibs4/kdelibs4/work/build'
make[1]: *** [kpty/CMakeFiles/kpty.dir/all] Error 2
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_dports_kde_kdelibs4/kdelibs4/work/build'
make: *** [all] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_dports_kde_kdelibs4/kdelibs4/work/build'
shell command " cd "/opt/local/var/macports/build/_opt_dports_kde_kdelibs4/kdelibs4/work/build" && /usr/bin/make -w all " returned error 2
Error: Target org.macports.build returned: shell command failed (see log for details)

Attachments (1)

main.log (7.9 MB) - added by neverpanic (Clemens Lang) 13 years ago.
main.log

Change History (3)

Changed 13 years ago by neverpanic (Clemens Lang)

Attachment: main.log added

main.log

comment:1 Changed 13 years ago by neverpanic (Clemens Lang)

Description: modified (diff)

comment:2 Changed 13 years ago by neverpanic (Clemens Lang)

Resolution: invalid
Status: newclosed

The problem was caused by a different port installing a header with the same name as the system header util.h. Deactivating this port solved the build problem. This ticket is invalid.

Note: See TracTickets for help on using tickets.