Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 27th June 2005, 01:51 PM
Belegdol Offline
Registered User
 
Join Date: Mar 2005
Posts: 99
gcc4 sucks. amarok is refusing to configure.

Hi. I ve got a problem compiling amarok 1.3beta2. gcc4 is blacklisted, so i tried to compile it using gcc 3.2.3 which is also supplied with Fedora Core 4. Here is what I get:
Quote:
[jsikorski@DOMOWY amarok-1.3-beta2]$ make
make all-recursive
make[1]: Entering directory `/home/jsikorski/downloads/amarok-1.3-beta2'
Making all in amarok
make[2]: Entering directory `/home/jsikorski/downloads/amarok-1.3-beta2/amarok'
Making all in src
make[3]: Entering directory `/home/jsikorski/downloads/amarok-1.3-beta2/amarok/src'
Making all in amarokcore
make[4]: Entering directory `/home/jsikorski/downloads/amarok-1.3-beta2/amarok/src/amarokcore'
if /bin/sh ../../../libtool --silent --mode=compile --tag=CXX g++32 -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../amarok/src -I../../../amarok/src/amarokcore -I../../../amarok/src -I../../../amarok/src/engine -I../../../amarok/src/plugin -I../../../amarok/src/statusbar -I/usr/include/kde -I/usr/lib/qt-3.3/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wno-non-virtual-dtor -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -MT main.lo -MD -MP -MF ".deps/main.Tpo" \
-c -o main.lo `test -f 'main.cpp' || echo './'`main.cpp; \
then mv -f ".deps/main.Tpo" ".deps/main.Plo"; \
else rm -f ".deps/main.Tpo"; exit 1; \
fi
In file included from /usr/include/kde/kapplication.h:25,
from ../../../amarok/src/app.h:22,
from main.cpp:19:
/usr/include/kde/kdeversion.h:49: visibility arg must be one of "hidden",
"protected" or "internal"
/usr/include/kde/kdeversion.h:56: visibility arg must be one of "hidden",
"protected" or "internal"
/usr/include/kde/kdeversion.h:63: visibility arg must be one of "hidden",
"protected" or "internal"
/usr/include/kde/kdeversion.h:70: visibility arg must be one of "hidden",
"protected" or "internal"
/usr/include/kde/kdeversion.h:76: visibility arg must be one of "hidden",
"protected" or "internal"
In file included from /usr/include/kde/kapplication.h:40,
from ../../../amarok/src/app.h:22,
from main.cpp:19:
/usr/include/kde/kinstance.h:156: warning: `visibility' attribute does not
apply to types
In file included from ../../../amarok/src/app.h:22,
from main.cpp:19:
/usr/include/kde/kapplication.h:1384: warning: `visibility' attribute does not
apply to types
/usr/include/kde/kapplication.h:1404: visibility arg must be one of "hidden",
"protected" or "internal"
/usr/include/kde/kapplication.h:1455: warning: `visibility' attribute does not
apply to types
In file included from crashhandler.h:14,
from main.cpp:20:
/usr/include/kde/kcrash.h:120: warning: `visibility' attribute does not apply
to types
In file included from /usr/include/kde/kaboutdata.h:25,
from main.cpp:21:
/usr/include/kde/klocale.h:73: visibility arg must be one of "hidden",
"protected" or "internal"
/usr/include/kde/klocale.h:82: visibility arg must be one of "hidden",
"protected" or "internal"
/usr/include/kde/klocale.h:95: visibility arg must be one of "hidden",
"protected" or "internal"
/usr/include/kde/klocale.h:1309: warning: `visibility' attribute does not apply
to types
In file included from main.cpp:21:
/usr/include/kde/kaboutdata.h:117: warning: `visibility' attribute does not
apply to types
/usr/include/kde/kaboutdata.h:163: warning: `visibility' attribute does not
apply to types
/usr/include/kde/kaboutdata.h:558: warning: `visibility' attribute does not
apply to types
make[4]: *** [main.lo] Error 1
make[4]: Leaving directory `/home/jsikorski/downloads/amarok-1.3-beta2/amarok/src/amarokcore'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/jsikorski/downloads/amarok-1.3-beta2/amarok/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/jsikorski/downloads/amarok-1.3-beta2/amarok'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jsikorski/downloads/amarok-1.3-beta2'
make: *** [all] Error 2
[jsikorski@DOMOWY amarok-1.3-beta2]$
Is there any way to omit this problem? Why the hell has fedora switched to such a s****y compiler which is thought to be unstable even by its maintainers? And also I wouldn't like to use amarok from extras, because it's 1.2.4, doesn't support neither xine-engine nor helix-engine. Greets.
Reply With Quote
  #2  
Old 28th June 2005, 08:16 AM
chaosmcgruff Offline
Registered User
 
Join Date: Jun 2005
Location: Vancouver, BC
Posts: 7
If you don't mind using GCC4 (yes, there was a problem with 4.0.0, but that does not affect the FC4 release, and it still generates unbroken KDE code fine for me) then there is an easy way to do this.
Just edit the configure file and find these lines:
(for amaroK SVN it starts at 4201)
Code:
#ifdef __GNUC__
#if __GNUC__ == 4 && __GNUC_MINOR__ == 0 && __GNUC_PATCHLEVEL__ == 0
choke me
#endif
#endif
Well, you can either take that whole chunk out, or simply change __GNUC_PATCHLEVEL__ from 0 to something arbitrary (why not 1?)

Anyways, hopefully that fixes your problem,
Paul
Reply With Quote
  #3  
Old 13th July 2005, 06:57 PM
joopndufus Offline
Registered User
 
Join Date: Jun 2005
Posts: 34
A fix that _might_ be a little less damaging to your system:

install the rpms:
compat-gcc-32
compat-gcc-32-c++

Then configure as: './configure CC=gcc32'
Reply With Quote
Reply

Tags
amarok, configure, gcc4, refusing, sucks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
./configure error for amarok narasim_7 Using Fedora 5 21st May 2006 01:32 PM
Amarok 1.2.4 refuses to compile with gcc4 Belegdol Using Fedora 1 17th June 2005 12:47 PM


Current GMT-time: 11:33 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat