Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

qt-3.0.4.1 compilation error

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
Roy
n00b
n00b
Posts: 55
Joined: Mon Apr 15, 2002 2:15 am
Location: Australia

qt-3.0.4.1 compilation error

  • Quote

Post by Roy » Mon May 27, 2002 1:01 am

I am upgrading from kde2 to kde3.

I get an error when my computer tries to compile QT.

Code: Select all

/usr/include/linux/resource.h:49: warning: `PRIO_PGRP' redefined
/usr/include/bits/resource.h:206: warning: this is the location of the previous definition
/usr/include/linux/resource.h:50: warning: `PRIO_USER' redefined
/usr/include/bits/resource.h:208: warning: this is the location of the previous definition
In file included from /usr/include/linux/resource.h:56,
                 from /usr/include/linux/sched.h:81,
                 from /usr/include/langinfo.h:23,
                 from ../codecs/qtextcodec.cpp:71:
/usr/include/asm/resource.h:8: warning: `RLIMIT_CPU' redefined
/usr/include/bits/resource.h:36: warning: this is the location of the previous definition
/usr/include/asm/resource.h:9: warning: `RLIMIT_FSIZE' redefined
/usr/include/bits/resource.h:40: warning: this is the location of the previous definition
/usr/include/asm/resource.h:10: warning: `RLIMIT_DATA' redefined
/usr/include/bits/resource.h:44: warning: this is the location of the previous definition
/usr/include/asm/resource.h:11: warning: `RLIMIT_STACK' redefined
/usr/include/bits/resource.h:48: warning: this is the location of the previous definition
/usr/include/asm/resource.h:12: warning: `RLIMIT_CORE' redefined
/usr/include/bits/resource.h:52: warning: this is the location of the previous definition
/usr/include/asm/resource.h:13: warning: `RLIMIT_RSS' redefined
/usr/include/bits/resource.h:59: warning: this is the location of the previous definition
/usr/include/asm/resource.h:14: warning: `RLIMIT_NPROC' redefined
/usr/include/bits/resource.h:73: warning: this is the location of the previous definition
/usr/include/asm/resource.h:15: warning: `RLIMIT_NOFILE' redefined
/usr/include/bits/resource.h:64: warning: this is the location of the previous definition
/usr/include/asm/resource.h:16: warning: `RLIMIT_MEMLOCK' redefined
/usr/include/bits/resource.h:77: warning: this is the location of the previous definition
/usr/include/asm/resource.h:17: warning: `RLIMIT_AS' redefined
/usr/include/bits/resource.h:69: warning: this is the location of the previous definition
/usr/include/asm/resource.h:18: warning: `RLIMIT_LOCKS' redefined
/usr/include/bits/resource.h:81: warning: this is the location of the previous definition
/usr/include/asm/resource.h:20: warning: `RLIM_NLIMITS' redefined
/usr/include/bits/resource.h:86: warning: this is the location of the previous definition
/usr/include/asm/resource.h:26: warning: `RLIM_INFINITY' redefined
/usr/include/bits/resource.h:91: warning: this is the location of the previous definition
In file included from /usr/include/linux/spinlock.h:39,
                 from /usr/include/linux/module.h:11,
                 from /usr/include/langinfo.h:20,
                 from ../codecs/qtextcodec.cpp:71:
/usr/include/asm/spinlock.h: In function `void read_lock(rwlock_t *)':
/usr/include/asm/spinlock.h:192: parse error before `::'
/usr/include/asm/spinlock.h:193: confused by earlier errors, bailing out
cpp0: output pipe has been closed
make[1]: *** [qtextcodec.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/qt-3.0.4.1/work/qt-copy-3.0.4/src/moc'
make: *** [src-moc] Error 2
There are more warnings. All saying the same sort of thing. Then it dies with that error.

I have been trying to fix this problem for weeks. So if you know what is wrong please tell me.
/* Halley */
(Halley's comment.)
Top
crashman
n00b
n00b
Posts: 23
Joined: Sat Apr 13, 2002 12:29 am
Location: Midwest City, Ok

Same here

  • Quote

Post by crashman » Mon May 27, 2002 5:47 am

I'm getting the same error here. It looks like it's a clash of some sort between several different kernel header files.
Top
Roy
n00b
n00b
Posts: 55
Joined: Mon Apr 15, 2002 2:15 am
Location: Australia

Re: Same here

  • Quote

Post by Roy » Mon May 27, 2002 11:41 pm

crashman wrote:I'm getting the same error here. It looks like it's a clash of some sort between several different kernel header files.
Thats what I thought. But I uninstalled all the old versions of everything. I even tried to uninstall the linux-headers. Of course that didn't work.
/* Halley */
(Halley's comment.)
Top
jtanner
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 121
Joined: Thu May 23, 2002 7:40 pm
Location: Atlanta, GA

  • Quote

Post by jtanner » Tue May 28, 2002 2:01 am

Did you try unmerging kde 2.2.2?

Jim
Top
Roy
n00b
n00b
Posts: 55
Joined: Mon Apr 15, 2002 2:15 am
Location: Australia

  • Quote

Post by Roy » Tue May 28, 2002 2:26 am

jtanner wrote:Did you try unmerging kde 2.2.2?

Jim
That didn't work :(
/* Halley */
(Halley's comment.)
Top
474
l33t
l33t
Posts: 714
Joined: Fri Apr 19, 2002 2:55 pm

Few questions

  • Quote

Post by 474 » Tue May 28, 2002 2:52 pm

Just a few thoughts:
I even tried to uninstall the linux-headers. Of course that didn't work
Just wondering, did you explicitly unmerge the headers, and re-emerge them? Have you applied any third party patches, or are you using low_latency/preemptive patches? Could you quote some of the line numbers referenced in some of the include files? For example, the inline function read_lock is defined as such in my spinlock.h:

Code: Select all

static inline void read_lock(rwlock_t *rw)
which is different to yours (not sure if kernel config options can affect this or not). What version does emerge -s linux-headers say you have installed? I am using 2.4.18 - I noticed that r1 & r2 revisions are available but emerge uses stock 2.4.18 by default.

Also, I am using the newest binutils because I want to use the new combreloc performance enhancements (and presumably, bugs have been fixed from older versions). Have no idea whether it's considered "production" quality or not (wish the Changelogs would tell you), but you could give it a whirl - you have to use ebuild not emerge. And try toning down your compiler options in make.conf if you are using a lot of nutty optimisations - I used to use them, but nowadays I only add omit-frame-pointer, recompiled everything and things have been a lot less problematic from then (and not noticeably slower). Excessive optimisations can create broken binaries (which is really bad if some of these binaries are your core system tools) ...
Top
gsfgf
Veteran
Veteran
User avatar
Posts: 1266
Joined: Wed May 08, 2002 3:24 pm

  • Quote

Post by gsfgf » Tue May 28, 2002 8:44 pm

I tried to everge 3.0.4.1 and it said blocked by package mask. Try 3.0.4-r1
Top
Roy
n00b
n00b
Posts: 55
Joined: Mon Apr 15, 2002 2:15 am
Location: Australia

  • Quote

Post by Roy » Tue May 28, 2002 11:40 pm

gsfgf wrote:I tried to everge 3.0.4.1 and it said blocked by package mask. Try 3.0.4-r1
It isn't that. I can't merge any version of QT anymore. Not even 2.3.2

I explicitly unmerged the linux headers and then remerged them. 2.4.18 is the only version of the headers installed.

I haven't applied any patches myself. I've only used the kernel supplied with gentoo. I'm using gentoo-sources 2.4.19-r5

My read_lock function looks like this:

Code: Select all

static inline void read_lock(rwlock_t *rw)
{
#if SPINLOCK_DEBUG
        if (rw->magic != RWLOCK_MAGIC)
                BUG();
#endif
        __build_read_lock(rw, "__read_lock_failed");
}
Line 192 is:

Code: Select all

        __build_read_lock(rw, "__read_lock_failed");
/* Halley */
(Halley's comment.)
Top
Post Reply

8 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Authors
Gentoo is a trademark of the Gentoo Foundation, Inc. and of Förderverein Gentoo e.V.
The contents of this document, unless otherwise expressly stated, are licensed under the CC-BY-SA-4.0 license.
The Gentoo Name and Logo Usage Guidelines apply.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy