Opened 15 years ago

Closed 15 years ago

#19979 closed defect (wontfix)

kdelibs4 4.2.4 fails to build with qt4-kde installed instead of qt4-mac. Is that intended?

Reported by: thomas@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: kde kde4 qt4-mac qt4-kde Cc:
Port: kdeutils4

Description (last modified by mf2k (Frank Schima))

I have successfully installed all of the deps for kdeutils4. When I try to port install that item, however, there is a building problem when compiling the code fails due to conflicting darwin / non-darwin type declarations.

At it's root, this problem might be that that kdeutils4 depends on qt4-mac and I'm trying to build it with qt4-kde installed.

Should this be possible?

bash-3.2$ sudo port deps kdeutils4
kdeutils4 has build dependencies on:
        cmake
        automoc
kdeutils4 has library dependencies on:
        qt4-mac
        kdelibs4
        kdebase4-runtime
        libzip
        gmp
        libarchive
bash-3.2$ sudo port install  automoc cmake doxygen
Skipping org.macports.activate (automoc ) since this port is already active
--->  Cleaning automoc
Skipping org.macports.activate (cmake ) since this port is already active
--->  Cleaning cmake
Skipping org.macports.activate (doxygen ) since this port is already active
--->  Cleaning doxygen
bash-3.2$ sudo port install gmp kdebase4-runtime kdelibs4
Skipping org.macports.activate (gmp ) since this port is already active
--->  Cleaning gmp
Skipping org.macports.activate (kdebase4-runtime ) since this port is already active
--->  Cleaning kdebase4-runtime
Skipping org.macports.activate (kdelibs4 ) since this port is already active
--->  Cleaning kdelibs4
bash-3.2$ sudo port install libarchive libzip 
Skipping org.macports.activate (libarchive ) since this port is already active
--->  Cleaning libarchive
Skipping org.macports.activate (libzip ) since this port is already active
--->  Cleaning libzip
bash-3.2$ sudo port install qt4-kde
Skipping org.macports.activate (qt4-kde ) since this port is already active
--->  Cleaning qt4-kde
bash-3.2$
bash-3.2$ sudo port clean kdeutils4
--->  Cleaning kdeutils4
bash-3.2$ sudo port install kdeutils4
--->  Fetching kdeutils4
--->  Verifying checksum(s) for kdeutils4
--->  Extracting kdeutils4
--->  Configuring kdeutils4
--->  Building kdeutils4
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdeutils4/work/build" && make all " returned error 2
Command output: make -f ark/plugins/libzipplugin/CMakeFiles/kerfuffle_libzip_automoc.dir/build.make ark/plugins/libzipplugin/CMakeFiles/kerfuffle_libzip_automoc.dir/depend
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdeutils4/work/build && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdeutils4/work/kdeutils-4.2.4 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdeutils4/work/kdeutils-4.2.4/ark/plugins/libzipplugin /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdeutils4/work/build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdeutils4/work/build/ark/plugins/libzipplugin /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdeutils4/work/build/ark/plugins/libzipplugin/CMakeFiles/kerfuffle_libzip_automoc.dir/DependInfo.cmake --color=
Scanning dependencies of target kerfuffle_libzip_automoc
make -f ark/plugins/libzipplugin/CMakeFiles/kerfuffle_libzip_automoc.dir/build.make ark/plugins/libzipplugin/CMakeFiles/kerfuffle_libzip_automoc.dir/build
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdeutils4/work/build/ark/plugins/libzipplugin && /opt/local/bin/automoc4 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdeutils4/work/build/ark/plugins/libzipplugin/kerfuffle_libzip_automoc.cpp /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdeutils4/work/kdeutils-4.2.4/ark/plugins/libzipplugin /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdeutils4/work/build/ark/plugins/libzipplugin /opt/local/libexec/qt4-mac/bin/moc /opt/local/bin/cmake
Generating zipplugin.moc
/opt/local/bin/cmake -E cmake_progress_report /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdeutils4/work/build/CMakeFiles 
[  6%] Built target kerfuffle_libzip_automoc
make -f ark/plugins/libzipplugin/CMakeFiles/kerfuffle_libzip.dir/build.make ark/plugins/libzipplugin/CMakeFiles/kerfuffle_libzip.dir/depend
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdeutils4/work/build && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdeutils4/work/kdeutils-4.2.4 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdeutils4/work/kdeutils-4.2.4/ark/plugins/libzipplugin /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdeutils4/work/build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdeutils4/work/build/ark/plugins/libzipplugin /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdeutils4/work/build/ark/plugins/libzipplugin/CMakeFiles/kerfuffle_libzip.dir/DependInfo.cmake --color=
Scanning dependencies of target kerfuffle_libzip
make -f ark/plugins/libzipplugin/CMakeFiles/kerfuffle_libzip.dir/build.make ark/plugins/libzipplugin/CMakeFiles/kerfuffle_libzip.dir/build
/opt/local/bin/cmake -E cmake_progress_report /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdeutils4/work/build/CMakeFiles 
[  6%] Building CXX object ark/plugins/libzipplugin/CMakeFiles/kerfuffle_libzip.dir/kerfuffle_libzip_automoc.o
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdeutils4/work/build/ark/plugins/libzipplugin && /usr/bin/g++-4.2   -Dkerfuffle_libzip_EXPORTS -DQT_NO_STL -DQT_NO_CAST_TO_ASCII -D_REENTRANT -DKDE_DEPRECATED_WARNINGS -DLIBZIP_COMPILED_WITH_32BIT_OFF_T -O2  -fno-common -Woverloaded-virtual -fvisibility=hidden -fvisibility-inlines-hidden -O2 -DNDEBUG -DQT_NO_DEBUG -fPIC -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdeutils4/work/build/ark/plugins/libzipplugin -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdeutils4/work/kdeutils-4.2.4/ark/plugins/libzipplugin -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdeutils4/work/kdeutils-4.2.4 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdeutils4/work/build -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdeutils4/work/kdeutils-4.2.4/ark/plugins/libzipplugin/../.. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdeutils4/work/build/ark/plugins/libzipplugin/../.. -I/opt/local/include -I/opt/local/include/KDE -I/opt/local/libexec/qt4-mac/include/KDE -I/opt/local/libexec/qt4-mac/include -I/opt/local/libexec/qt4-mac/include/phonon -I/opt/local/libexec/qt4-mac/include/QtXmlPatterns -I/opt/local/libexec/qt4-mac/include/QtWebKit -I/opt/local/libexec/qt4-mac/include/QtHelp -I/opt/local/libexec/qt4-mac/include/QtAssistant -I/opt/local/libexec/qt4-mac/include/QtDBus -I/opt/local/libexec/qt4-mac/include/QtTest -I/opt/local/libexec/qt4-mac/include/QtUiTools -I/opt/local/libexec/qt4-mac/include/QtScript -I/opt/local/libexec/qt4-mac/include/QtSvg -I/opt/local/libexec/qt4-mac/include/QtXml -I/opt/local/libexec/qt4-mac/include/QtSql -I/opt/local/libexec/qt4-mac/include/QtOpenGL -I/opt/local/libexec/qt4-mac/include/QtNetwork -I/opt/local/libexec/qt4-mac/include/QtDesigner -I/opt/local/libexec/qt4-mac/include/Qt3Support -I/opt/local/libexec/qt4-mac/include/QtGui -I/opt/local/libexec/qt4-mac/include/QtCore -I/opt/local/libexec/qt4-mac/include/Qt -I/opt/local/libexec/qt4-mac/mkspecs/default   -F/opt/local/libexec/qt4-mac/lib -L/opt/local/libexec/qt4-mac/lib -D__APPLE_KDE__ -D_LARGEFILE64_SOURCE -o CMakeFiles/kerfuffle_libzip.dir/kerfuffle_libzip_automoc.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdeutils4/work/build/ark/plugins/libzipplugin/kerfuffle_libzip_automoc.cpp
/opt/local/bin/cmake -E cmake_progress_report /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdeutils4/work/build/CMakeFiles 
[  6%] Building CXX object ark/plugins/libzipplugin/CMakeFiles/kerfuffle_libzip.dir/zipplugin.o
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdeutils4/work/build/ark/plugins/libzipplugin && /usr/bin/g++-4.2   -Dkerfuffle_libzip_EXPORTS -DQT_NO_STL -DQT_NO_CAST_TO_ASCII -D_REENTRANT -DKDE_DEPRECATED_WARNINGS -DLIBZIP_COMPILED_WITH_32BIT_OFF_T -O2  -fno-common -Woverloaded-virtual -fvisibility=hidden -fvisibility-inlines-hidden -O2 -DNDEBUG -DQT_NO_DEBUG -fPIC -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdeutils4/work/build/ark/plugins/libzipplugin -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdeutils4/work/kdeutils-4.2.4/ark/plugins/libzipplugin -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdeutils4/work/kdeutils-4.2.4 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdeutils4/work/build -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdeutils4/work/kdeutils-4.2.4/ark/plugins/libzipplugin/../.. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdeutils4/work/build/ark/plugins/libzipplugin/../.. -I/opt/local/include -I/opt/local/include/KDE -I/opt/local/libexec/qt4-mac/include/KDE -I/opt/local/libexec/qt4-mac/include -I/opt/local/libexec/qt4-mac/include/phonon -I/opt/local/libexec/qt4-mac/include/QtXmlPatterns -I/opt/local/libexec/qt4-mac/include/QtWebKit -I/opt/local/libexec/qt4-mac/include/QtHelp -I/opt/local/libexec/qt4-mac/include/QtAssistant -I/opt/local/libexec/qt4-mac/include/QtDBus -I/opt/local/libexec/qt4-mac/include/QtTest -I/opt/local/libexec/qt4-mac/include/QtUiTools -I/opt/local/libexec/qt4-mac/include/QtScript -I/opt/local/libexec/qt4-mac/include/QtSvg -I/opt/local/libexec/qt4-mac/include/QtXml -I/opt/local/libexec/qt4-mac/include/QtSql -I/opt/local/libexec/qt4-mac/include/QtOpenGL -I/opt/local/libexec/qt4-mac/include/QtNetwork -I/opt/local/libexec/qt4-mac/include/QtDesigner -I/opt/local/libexec/qt4-mac/include/Qt3Support -I/opt/local/libexec/qt4-mac/include/QtGui -I/opt/local/libexec/qt4-mac/include/QtCore -I/opt/local/libexec/qt4-mac/include/Qt -I/opt/local/libexec/qt4-mac/mkspecs/default   -F/opt/local/libexec/qt4-mac/lib -L/opt/local/libexec/qt4-mac/lib -D__APPLE_KDE__ -D_LARGEFILE64_SOURCE -o CMakeFiles/kerfuffle_libzip.dir/zipplugin.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdeutils4/work/kdeutils-4.2.4/ark/plugins/libzipplugin/zipplugin.cpp
In file included from /opt/local/include/kglobal.h:24,
                 from /opt/local/include/kiconloader.h:29,
                 from /opt/local/include/kio/global.h:29,
                 from /opt/local/include/kio/jobclasses.h:30,
                 from /opt/local/include/kio/job.h:25,
                 from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdeutils4/work/kdeutils-4.2.4/ark/plugins/libzipplugin/../../kerfuffle/archiveinterface.h:37,
                 from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdeutils4/work/kdeutils-4.2.4/ark/plugins/libzipplugin/zipplugin.cpp:37:
/usr/include/sys/types.h:172: error: conflicting declaration 'typedef __darwin_off_t off_t'
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdeutils4/work/kdeutils-4.2.4/ark/plugins/libzipplugin/zipplugin.cpp:32: error: 'off_t' has a previous declaration as 'typedef quint32 off_t'
make[2]: *** [ark/plugins/libzipplugin/CMakeFiles/kerfuffle_libzip.dir/zipplugin.o] Error 1
make[1]: *** [ark/plugins/libzipplugin/CMakeFiles/kerfuffle_libzip.dir/all] Error 2
make: *** [all] Error 2

Error: Status 1 encountered during processing.
bash-3.2$ 

Change History (3)

comment:1 Changed 15 years ago by thomas@…

Sorry about the nonsense title. I now understand the relationship between qt4-mac and qt4-kde much better than I did 100 minutes ago.

The problem about the conflicting declarations still stands, however.

comment:2 Changed 15 years ago by mf2k (Frank Schima)

Description: modified (diff)

comment:3 Changed 15 years ago by jmroot (Joshua Root)

Resolution: wontfix
Status: newclosed

qt4-kde removed in r62579.

Note: See TracTickets for help on using tickets.