Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 50425 - lcdproc-0.4.5 irman compile error
Summary: lcdproc-0.4.5 irman compile error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High minor
Assignee: Peter Johanson (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-07 20:01 UTC by Tom Myers
Modified: 2004-07-18 20:42 UTC (History)
2 users (show)

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


Attachments
Patch on lcdproc-0.4.5 (lcdproc-libirman-ebuild.patch,398 bytes, patch)
2004-07-15 02:53 UTC, Karol Wojtaszek (RETIRED)
Details | Diff
Patch on lcdproc-0.4.5 source code (lcdproc-code-irmanin.patch,321 bytes, patch)
2004-07-15 03:12 UTC, Karol Wojtaszek (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Myers 2004-05-07 20:01:45 UTC
lcdproc fails to emerge on this version and the previous version. I have libirman-0.4.2 emerge'd. When emerging lcdproc I get an error that it can't find an include file. I do have a fix.

Reproducible: Always
Steps to Reproduce:
1. emerge libirman lcdproc
2.
3.

Actual Results:  
irmanin.c:27:44: ../../../libirman-0.4.1b/irman.h: No such file or directory
irmanin.c: In function `irmanin_init':
irmanin.c:123: warning: implicit declaration of function `ir_init_commands'
irmanin.c:128: warning: implicit declaration of function `ir_default_portname'
irmanin.c:128: warning: assignment makes pointer from integer without a cast
irmanin.c:142: warning: implicit declaration of function `ir_register_command'
irmanin.c:152: warning: implicit declaration of function `ir_init'
irmanin.c:89: warning: unused variable `j'
irmanin.c:90: warning: unused variable `filename'
irmanin.c: In function `irmanin_close':
irmanin.c:168: warning: implicit declaration of function `ir_free_commands'
irmanin.c:169: warning: implicit declaration of function `ir_finish'
irmanin.c: In function `irmanin_getkey':
irmanin.c:185: warning: implicit declaration of function `ir_poll_command'
irmanin.c:186: error: `IR_CMD_ERROR' undeclared (first use in this function)
irmanin.c:186: error: (Each undeclared identifier is reported only once
irmanin.c:186: error: for each function it appears in.)
irmanin.c:189: error: `IR_CMD_UNKNOWN' undeclared (first use in this function)
irmanin.c:180: warning: unused variable `i'
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I./.. -I../..    -Wall -O3 -c bayrad.c
make[3]: *** [irmanin.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory
`/home/tmp/portage/lcdproc-0.4.5/work/lcdproc-0.4.5/server/drivers'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/tmp/portage/lcdproc-0.4.5/work/lcdproc-0.4.5/server'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/tmp/portage/lcdproc-0.4.5/work/lcdproc-0.4.5'
make: *** [all-recursive-am] Error 2
 
!!! ERROR: app-misc/lcdproc-0.4.5 failed.
!!! Function src_compile, Line 61, Exitcode 2
!!! (no error message)
 
g

Expected Results:  
In file lcdproc-0.4.5/server/drivers/irmanin.c change the line
#include "../../../libirman-0.4.1b/irman.h"
to
#include "irman.h"
After making this change, it compiles okay.

garnet root # emerge info
Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.22-gentoo-r5)
=================================================================
System uname: 2.4.22-gentoo-r5 i686 AMD Athlon(tm) processor
Gentoo Base System version 1.4.10
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config
/usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow X alsa apm arts avi berkdb bonobo crypt cups dvd encode esd evo
foomaticdb gdbm gif gnome gphoto2 gpm gtk gtk2 gtkhtml guile imap imlib java
jpeg kde ldap libg++ libwww mad mikmod mmx motif mozilla mpeg ncurses nls
oggvorbis opengl oss pam pdflib perl png postgres python qt quicktime readline
scanner sdl slang snmp spell ssl svga tcltk tcpd tetex truetype x86 xml xml2
xmms xv zlib"
Comment 1 Tim Yamin (RETIRED) gentoo-dev 2004-05-18 14:52:37 UTC
Sorry, but I'm not the maintainer of this package so I'm bouncing this back to the wranglers... Thanks!
Comment 2 Tim Yamin (RETIRED) gentoo-dev 2004-05-24 09:12:55 UTC
Sorry, but I'm not the maintainer of this package so I'm bouncing this back to the wranglers... Thanks!
Comment 3 Rene Wagner 2004-07-13 13:38:41 UTC
This indeed looks like a bug :)

I will fix it upstream with the next release (mid-August).

Rene
Comment 4 Karol Wojtaszek (RETIRED) gentoo-dev 2004-07-15 02:52:15 UTC
I check it, when i had libirman I couldn't compile app-misc/lcdproc. When I removed libirman, i had emerged app-misc/lcdproc whitout any problems. Lcdproc should block libirman. I'm attaching patch on ebuild.
Comment 5 Karol Wojtaszek (RETIRED) gentoo-dev 2004-07-15 02:53:42 UTC
Created attachment 35457 [details, diff]
Patch on lcdproc-0.4.5
Comment 6 Karol Wojtaszek (RETIRED) gentoo-dev 2004-07-15 03:11:31 UTC
I've found another way to solve the problem. I've created patch on source code and i'm attaching another patch.
Comment 7 Karol Wojtaszek (RETIRED) gentoo-dev 2004-07-15 03:12:12 UTC
Created attachment 35458 [details, diff]
Patch on lcdproc-0.4.5 source code
Comment 8 Karol Wojtaszek (RETIRED) gentoo-dev 2004-07-15 03:17:11 UTC
With above patch we don't must block libirman. Please check the patch.
Comment 9 Tom Myers 2004-07-18 20:42:56 UTC
The patch compiled okay.