Opened 15 years ago

Closed 15 years ago

Last modified 12 years ago

#23119 closed defect (fixed)

kdelibs3 build fails when kde4 ports are installed

Reported by: cardcaptorstacey@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc: ryandesign (Ryan Carsten Schmidt), rmharrison@…
Port: kdelibs3

Description

I was on Macports 1.8.1 and got an build error, so I upgraded to 1.8.2 today and issued sudo port clean kdelibs3. I got a different error and it still won't build:

--->  Building kdelibs3
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_kdelibs3/work/kdelibs-3.5.10" && ./CompileScript.sh all " returned error 1
Command output: /opt/local/include/kio/connection.h: At global scope:
/opt/local/include/kio/connection.h:137: error: expected primary-expression before 'void'
/opt/local/include/kio/connection.h:137: error: ISO C++ forbids declaration of 'Q_SIGNALS' with no type
/opt/local/include/kio/connection.h:137: error: expected ';' before 'void'
/opt/local/lib/qt3/include/qobject.h:200: error: 'QObjectPrivate* QObject::d' is private
/opt/local/include/kio/connection.h:140: error: within this context
/opt/local/include/kio/connection.h:140: error: 'd' is not a type
/opt/local/include/kio/connection.h:140: error: ISO C++ forbids declaration of 'Q_PRIVATE_SLOT' with no type
/opt/local/include/kio/connection.h:141: error: expected ';' before 'Q_PRIVATE_SLOT'
/opt/local/include/kio/connection.h:84: error: invalid use of incomplete type 'struct QByteArray'
/opt/local/include/kcomponentdata.h:25: error: forward declaration of 'struct QByteArray'
/opt/local/include/kio/connection.h:179: error: expected primary-expression before 'void'
/opt/local/include/kio/connection.h:179: error: ISO C++ forbids declaration of 'Q_SIGNALS' with no type
/opt/local/include/kio/connection.h:179: error: expected ';' before 'void'
In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs3/work/kdelibs-3.5.10/kinit/klauncher.h:35,
                 from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs3/work/kdelibs-3.5.10/kinit/klauncher_main.cpp:26:
/opt/local/include/kurl.h:112: error: expected class-name before '{' token
/opt/local/include/kurl.h:125: error: expected template-name before '<' token
/opt/local/include/kurl.h:125: error: expected `{' before '<' token
/opt/local/include/kurl.h:125: error: expected unqualified-id before '<' token
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs3/work/kdelibs-3.5.10/kinit/klauncher_main.cpp:115: error: expected `}' at end of input
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs3/work/kdelibs-3.5.10/kinit/klauncher_main.cpp:115: error: expected unqualified-id at end of input
Error creating ./kinit/klauncher_main.lo. Exit status 1.
libtool: link: warning: `/opt/local/lib/libqt-mt.la' seems to be moved
/usr/bin/g++-4.2 -dynamiclib -single_module  -o ./kwallet/backend/.libs/libkwalletbackend.1.0.0.dylib  ./kwallet/backend/.libs/blockcipher.o ./kwallet/backend/.libs/blowfish.o ./kwallet/backend/.libs/cbc.o ./kwallet/backend/.libs/sha1.o ./kwallet/backend/.libs/kwalletentry.o ./kwallet/backend/.libs/kwalletbackend.o  -L/opt/local/lib -L/opt/local/lib/qt3/lib /opt/local/lib/qt3/lib/libqt-mt.dylib /opt/local/lib/libz.dylib /opt/local/lib/libGL.dylib /opt/local/lib/libXmu.dylib /opt/local/lib/libXrender.dylib /opt/local/lib/libXrandr.dylib /opt/local/lib/libXcursor.dylib /opt/local/lib/libXinerama.dylib /opt/local/lib/libXft.dylib /opt/local/lib/libfreetype.dylib /opt/local/lib/libfontconfig.dylib /opt/local/lib/libpng12.dylib -lz -lm /opt/local/lib/libXext.dylib /opt/local/lib/libXau.dylib /opt/local/lib/libXdmcp.dylib /opt/local/lib/libX11.dylib /opt/local/lib/libSM.dylib /opt/local/lib/libICE.dylib -lpthread ./kdecore/.libs/libkdecore.dylib /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs3/work/kdelibs-3.5.10/dcop/.libs/libDCOP.dylib /opt/local/lib/libart_lgpl_2.dylib /opt/local/lib/libidn.dylib /opt/local/lib/libintl.dylib /opt/local/lib/libiconv.dylib /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs3/work/kdelibs-3.5.10/kdefx/.libs/libkdefx.dylib /opt/local/lib/libqt-mt.dylib  -Wl,-dead_strip_dylibs -install_name  /opt/local/lib/libkwalletbackend.1.dylib -Wl,-compatibility_version -Wl,2 -Wl,-current_version -Wl,2.0
(cd ./kwallet/backend/.libs && rm -f libkwalletbackend.1.dylib && ln -s libkwalletbackend.1.0.0.dylib libkwalletbackend.1.dylib)
(cd ./kwallet/backend/.libs && rm -f libkwalletbackend.dylib && ln -s libkwalletbackend.1.0.0.dylib libkwalletbackend.dylib)
creating ./kwallet/backend/libkwalletbackend.la
(cd ./kwallet/backend/.libs && rm -f libkwalletbackend.la && ln -s ../libkwalletbackend.la libkwalletbackend.la)
kdelibs3-3.5.10-3 make failed!

Error: The following dependencies failed to build: kdebase3 kdelibs3 libusb-compat libusb xorg-libXtst xorg-recordproto xorg-libXxf86misc xorg-xf86miscproto xorg-libxkbfile kdenetwork3 openslp kdepim3 kdeaccessibility3 opensync py26-gobject libffi py26-numeric swig-python python_select swig kdeutils3 gmp
Error: Status 1 encountered during processing.

I'm on Snow Leopard.

Attachments (4)

config.log (686.7 KB) - added by cardcaptorstacey@… 15 years ago.
config.log
configure.log (36.4 KB) - added by cardcaptorstacey@… 15 years ago.
configure.log
cvs.log (10.5 KB) - added by cardcaptorstacey@… 15 years ago.
cvs.log
make.log (385.6 KB) - added by cardcaptorstacey@… 15 years ago.
make.log

Download all attachments as: .zip

Change History (15)

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

Keywords: build fail removed
Milestone: MacPorts 1.8.3
Port: kdelibs3 added; kdelibs removed

As per the instructions in the Guide, please don't set the Milestone field.

comment:2 in reply to:  description Changed 15 years ago by takanori@…

I tried to reproduce your problem on my MacBook, but the build was finished with no error.

Are you surely using the latest version of Xcode? Please check it first.

$ gcc --version
i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5646) (dot 1)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

comment:3 Changed 15 years ago by cardcaptorstacey@…

Okay I just tried gcc --version and got the same message as above. So I guess I am on the latest version. :(

comment:4 Changed 15 years ago by takanori@…

Okay then could you show me the whole build log of kdelibs3?

You can obtain it from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs3/work/buildlog/root/kdelibs3-3.5.10-3/*

Thanks.

Changed 15 years ago by cardcaptorstacey@…

Attachment: config.log added

config.log

Changed 15 years ago by cardcaptorstacey@…

Attachment: configure.log added

configure.log

Changed 15 years ago by cardcaptorstacey@…

Attachment: cvs.log added

cvs.log

Changed 15 years ago by cardcaptorstacey@…

Attachment: make.log added

make.log

comment:5 Changed 15 years ago by cardcaptorstacey@…

Okay, I've added all the logs. :)

comment:6 Changed 15 years ago by takanori@…

Seems that your Xcode is not the latest one.

$ diff -u ~/Downloads/config.log  config.log | less
...
@@ -76,7 +82,7 @@
 configure:3502: result: /usr/bin/gcc-4.2
 configure:3734: checking for C compiler version
 configure:3742: /usr/bin/gcc-4.2 --version >&5
-i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5646)
+i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5646) (dot 1)
 Copyright (C) 2007 Free Software Foundation, Inc.
 This is free software; see the source for copying conditions.  There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
...

I recommend you to update it just in case. (to 3.2.1)

And,

[make.log]
...
76% compiling /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs3/work/kdelibs-3.5
.10/kinit/autostart.cpp
/usr/bin/g++-4.2 -DHAVE_CONFIG_H -I./kinit -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_port
s_kde_kdelibs3/work/kdelibs-3.5.10/kinit -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_po
rts_kde_kdelibs3/work/kdelibs-3.5.10/kinit/../libltdl/ -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include -I/opt/loc
al/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs3/work/kdelibs-3.5.10/dcop -I/opt/local/
var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs3/work/kdelibs-3.5.10/libltdl -I/opt/local/
var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs3/work/kdelibs-3.5.10/kdefx -I./kdecore -I/
opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs3/work/kdelibs-3.5.10/kdecore -I/
opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs3/work/kdelibs-3.5.10/kdecore/net
work -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs3/work/kdelibs-3.5.10/kde
ui -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs3/work/kdelibs-3.5.10/kio -
I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs3/work/kdelibs-3.5.10/kio/kio -
I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs3/work/kdelibs-3.5.10/kio/kfile
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs3/work/kdelibs-3.5.10 -I/opt/
local/lib/qt3/include -I/opt/local/include -I/opt/local/include -DQT_THREAD_SUPPORT -I/usr/include/gssapi -I/opt/local/include/freetype2 -
I/opt/local/include -fno-common -no-cpp-precomp -DMACOSX -DARTS_NO_ALARM -I/opt/local/include -Wno-long-long -Wundef -Wall -W -Wpointer-ar
ith -Os -Os -fPIC -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -fvisibility=hidden -fvisibility-inlines-hidden -DQT_CL
EAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -fPIC -DPIC -c /opt/local/var/macports/build/_opt_local_va
r_macports_sources_rsync.macports.org_release_ports_kde_kdelibs3/work/kdelibs-3.5.10/kinit/autostart.cpp -o ./kinit/.libs/autostart.o -Wp,
-MD,./kinit/.deps/autostart.TUlo
In file included from /opt/local/include/kdecore_export.h:24,
                 from /opt/local/include/kconfigbase.h:27,
                 from /opt/local/include/kconfig.h:27,
                 from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs3/work/kde
libs-3.5.10/kinit/autostart.cpp:25:
/opt/local/include/kdemacros.h:162:29: error: QtCore/qglobal.h: No such file or directory
...

That's odd. Why do you have kconfig.h in /opt/local/include before installing kdelibs3?

Moreover, why QtCore/qglobal.h is in here? This file is not a part of qt3, but qt4.

Have you installed kde4 or something? If so, please uninstall all of them before building kdelibs3.

comment:7 Changed 15 years ago by cardcaptorstacey@…

You are absolutely right! I feel like a douchebag! After looking at all the installed files, I noticed... I uninstalled kdelibs4 and it's dependencies (which must have installed when I tried playing with Amarok). I've removed them all now and it's build perfectly fine. :)

Thanks for your help Mr Takanori. I wouldn't have thought to look at my installed files.

comment:8 in reply to:  6 ; Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

Replying to takanori@…:

/opt/local/include/kdemacros.h:162:29: error: QtCore/qglobal.h: No such file or directory

I encountered this problem too today, on Mac OS X 10.6.2 with Xcode 3.2.1.

That's odd. Why do you have kconfig.h in /opt/local/include before installing kdelibs3?

Moreover, why QtCore/qglobal.h is in here? This file is not a part of qt3, but qt4.

Have you installed kde4 or something?

Yes, I have.

If so, please uninstall all of them before building kdelibs3.

If kdelibs3 is incompatible with ports from kde4, it should so indicate using the conflicts keyword.

comment:9 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: kdelibs3-3.5.10-3 make failedkdelibs3 build fails when kde4 ports are installed

comment:10 in reply to:  8 Changed 15 years ago by takanori@…

Resolution: fixed
Status: newclosed

Replying to ryandesign@…:

If kdelibs3 is incompatible with ports from kde4, it should so indicate using the conflicts keyword.

declared conflicts in r64659

comment:11 Changed 12 years ago by rmharrison@…

Cc: rmharrison@… added

Cc Me!

Note: See TracTickets for help on using tickets.