Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 1542 - kdemultimedia 3.0 fails to build with TCLTK support
Summary: kdemultimedia 3.0 fails to build with TCLTK support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Dan Armak (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-04 22:23 UTC by Michael Thompson
Modified: 2002-04-05 03:06 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 Michael Thompson 2002-04-04 22:23:18 UTC
The new kde-base/kdemultimedia ebuild fails to build with TCLTK support.  The 
failure in TIMIDITY is as follows:

---
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/X11R6/include 
`/usr/kde/3/bin/artsc-config --cflags`  -DQT_THREAD_SUPPORT  -D_REENTRANT 
-DDEFAULT_PATH=\"//usr/kde/3/share/apps/kmidi/config\" -DAU_OSS -DAU_ESD 
-DIA_NCURSES -DIA_SLANG  -DIA_MOTIF  -DTCLTK -DIA_XAW -DIA_GTK 
-DQT_THREAD_SUPPORT  -D_REENTRANT
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include 
-I/usr/X11R6/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include  -fasm 
-DNDEBUG -O2  -O2 -mcpu=i686 -pipe -c `test -f tk_c.c || echo './'`tk_c.c
tk_c.c: In function `pipe_error':
tk_c.c:651: `errno' undeclared (first use in this function)
tk_c.c:651: (Each undeclared identifier is reported only once
tk_c.c:651: for each function it appears in.)
make[3]: *** [tk_c.o] Error 1
make[3]: Leaving directory 
`/var/tmp/portage/kdemultimedia-3.0/work/kdemultimedia-3.0/kmidi/TIMIDITY'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory 
`/var/tmp/portage/kdemultimedia-3.0/work/kdemultimedia-3.0/kmidi'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory 
`/var/tmp/portage/kdemultimedia-3.0/work/kdemultimedia-3.0'
make: *** [all] Error 2

!!! ERROR: The ebuild did not complete successfully.
!!! Function kde_src_compile, Line -3484, Exitcode 2
!!! died running emake, kde_src_compile:make

!!! emerge aborting on  
/usr/portage/kde-base/kdemultimedia/kdemultimedia-3.0.ebuild .
---

I created a simple patch that allows it to build, and will attach it below.
Comment 1 Michael Thompson 2002-04-04 22:26:00 UTC
Bugzilla is not allowing me to attach a patch, so I am including it in 
plaintext here (watch bugzilla wrap it):

--- kmidi/TIMIDITY/tk_c.c       2002-04-04 21:15:35.000000000 -0600
+++ kmidi/TIMIDITY/tk_c.c       2002-04-04 21:17:06.000000000 -0600
@@ -12,6 +12,7 @@
  *================================================================*/
 #ifdef TCLTK

+#include <sys/errno.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>

Comment 2 Dan Armak (RETIRED) gentoo-dev 2002-04-05 03:06:04 UTC
I'm adding your patch to the similar one already in portage. Thanks for a good report with a fix.