Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 6687 - Hotkeys 0.5.4 fails using xosd 1.0.0-r1 and 1.0.2
Summary: Hotkeys 0.5.4 fails using xosd 1.0.0-r1 and 1.0.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Daniel Ahlberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-18 13:13 UTC by Mike Styne
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Styne 2002-08-18 13:13:58 UTC
Hotkeys, which compiled with the previous version of xosd, (probably 0.70) does
not compile against the new version. Here's how I discovered this:

Installed hotkeys, xosd a while ago
Worked
Recently upgraded xmms-xosd and xosd together
Noticed that hotkeys OSD no longer worked
Tried to re-emerge hotkeys
Failed with following: 

hotkeys.c: In function `initXOSD':
hotkeys.c:1418: too few arguments to function `xosd_init'
hotkeys.c: In function `main':
hotkeys.c:1500: warning: passing arg 1 of `initializeX' from incompatible
pointer type
hotkeys.c:1538: warning: passing arg 3 of `pthread_create' from incompatible
pointer type
make[2]: *** [hotkeys.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/hotkeys-0.5.4/work/hotkeys-0.5.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/hotkeys-0.5.4/work/hotkeys-0.5.4'
make: *** [all-recursive-am] Error 2

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 5, Exitcode 2
!!! (no error message)

!!! emerge aborting on  /usr/portage/x11-misc/hotkeys/hotkeys-0.5.4.ebuild .

Right now the only fix I can suggest is downgrading to hotkeys 0.70.
Comment 1 Mike Styne 2002-08-18 13:16:07 UTC
Apologies, obviously I meant xosd 0.7.0, not 0.70
Comment 2 Daniel Ahlberg (RETIRED) gentoo-dev 2002-08-25 15:35:46 UTC
Please try to compile against the new xosd 1.0.2.
Comment 3 Mike Styne 2002-08-25 20:47:54 UTC
The ebuild still fails with xosd 1.0.2 (using hotkeys 0.5.4)
In fact, it would seem to be the same error.

Output below: 

hotkeys.c: In function `initXOSD':
hotkeys.c:1418: too few arguments to function `xosd_init'
hotkeys.c: In function `main':
hotkeys.c:1500: warning: passing arg 1 of `initializeX' from incompatible
pointer type
hotkeys.c:1538: warning: passing arg 3 of `pthread_create' from incompatible
pointer type
make[2]: *** [hotkeys.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/hotkeys-0.5.4/work/hotkeys-0.5.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/hotkeys-0.5.4/work/hotkeys-0.5.4'
make: *** [all-recursive-am] Error 2

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 5, Exitcode 2
!!! (no error message)

!!! emerge aborting on  /usr/portage/x11-misc/hotkeys/hotkeys-0.5.4.ebuild .
Comment 4 Daniel Ahlberg (RETIRED) gentoo-dev 2002-09-01 09:35:32 UTC
Could you try removing /var/tmp/portage/hotkeys-0.5.4/ before emerging hotkeys
so we are sure we get a completley new build of the package.
Comment 5 Mike Styne 2002-09-01 10:49:11 UTC
Still fails.It seems that the 1.0 series of xosd broke some backwards
compatibility, as this doesn't seem to be a hotkeys problem. Also, this was from
a fresh copy of source for hotkeys 0.5.4 -- there was no such directory in
/var/tmp/portage prior to this emerge.

Errors (same as BOTH above) follows:

hotkeys.c: In function `initXOSD':
hotkeys.c:1418: too few arguments to function `xosd_init'
hotkeys.c: In function `main':
hotkeys.c:1500: warning: passing arg 1 of `initializeX' from incompatible
pointer type
hotkeys.c:1538: warning: passing arg 3 of `pthread_create' from incompatible
pointer type
make[2]: *** [hotkeys.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/hotkeys-0.5.4/work/hotkeys-0.5.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/hotkeys-0.5.4/work/hotkeys-0.5.4'
make: *** [all-recursive-am] Error 2

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 5, Exitcode 2
!!! (no error message)
Comment 6 Daniel Ahlberg (RETIRED) gentoo-dev 2002-09-01 11:00:31 UTC
What CFLAGS and CXXFLAGS are you using?
Comment 7 Mike Styne 2002-09-01 11:06:45 UTC
CFLAGS="-O2 -mcpu=i686 -pipe"
CXXFLAGS=${CFLAGS}
Comment 8 Daniel Ahlberg (RETIRED) gentoo-dev 2002-09-01 11:30:00 UTC
This is very strange. On my system hotkeys compiles on every gcc version I have,
even with your CFLAGS. Could you try to change emake to make in the ebuild and
try  to compile again.
Comment 9 Mike Styne 2002-09-01 11:43:04 UTC
After rm -r'ing the /var/tmp/portage/hotkeys-0.5.4 directory, ensuring my CFLAGS
were as reported, and even going so far as to remove the tarball from
/usr/portage/distfiles, to grab a new copy from source, and changing emake to
make in the ebuild, it still does not compile, exiting with the same errors as
above.
Comment 10 Daniel Ahlberg (RETIRED) gentoo-dev 2002-09-11 14:07:04 UTC
Ive commited a masked hotkeys-0.5.5 ebuild. This version should fix your
problems with the compile errors. Please test.
Comment 11 Daniel Ahlberg (RETIRED) gentoo-dev 2002-09-25 08:42:09 UTC
Mike, is this version working?
Comment 12 Mike Styne 2002-09-25 11:40:41 UTC
Well, it *might* work : ) -- although it appears the source isn't available.


Calculating dependencies ...done!
>>> emerge x11-misc/hotkeys-0.5.5 to /
>>> Downloading
http://www.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/hotkeys-0.5.5.tar.bz2
--12:32:58-- 
http://www.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/hotkeys-0.5.5.tar.bz2
           => `/usr/portage/distfiles/hotkeys-0.5.5.tar.bz2'
Resolving www.ibiblio.org... done.
Connecting to www.ibiblio.org[152.2.210.81]:80... connected.
HTTP request sent, awaiting response... 404 Not Found
12:32:58 ERROR 404: Not Found.

>>> Downloading http://ypwong.org/hotkeys/hotkeys-0.5.5.tar.bz2
--12:32:58--  http://ypwong.org/hotkeys/hotkeys-0.5.5.tar.bz2
           => `/usr/portage/distfiles/hotkeys-0.5.5.tar.bz2'
Resolving ypwong.org... done.
Connecting to ypwong.org[202.181.238.134]:80... connected.
HTTP request sent, awaiting response... 404 Not Found
12:33:06 ERROR 404: Not Found.

!!! Couldn't download hotkeys-0.5.5.tar.bz2. Aborting.
Comment 13 Daniel Ahlberg (RETIRED) gentoo-dev 2002-09-26 02:45:25 UTC
Sorry, forgot to upload the 0.5.5 version to ibiblio. Please try again.
Comment 14 Mike Styne 2002-09-26 09:57:23 UTC
Two things:

The configure script is borked:
checking for version of libxosd... < 0.7.0, failed
*** The version of XOSD library installed is not 0.7.0 or
*** above, make sure the correct version is installed.

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 6, Exitcode 1
!!! ./configure failed

I would imagine it should be looking for libxosd > 0.7.0....


Also, the ebuild's dependencies need to be fixed:

These are the packages that I would merge, in order.

Calculating dependencies ...done!
[ebuild    U ] x11-libs/xosd-0.7.0   <------- This is wrong
[ebuild    U ] x11-misc/hotkeys-0.5.5


Comment 15 Daniel Ahlberg (RETIRED) gentoo-dev 2002-09-27 11:22:37 UTC
The version for xosd-0.7.0 is right. Since version 1.0 xosd changed something
that made hotkeys incompatible with xosd. That's why hotkeys depends on 0.7.0.
So be sure that xosd 0.7.0 is installed before xosd 1.0