Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27952 - emerge kfilecoder fails
Summary: emerge kfilecoder fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-04 12:42 UTC by Benjamin Schulz
Modified: 2003-09-08 08:28 UTC (History)
1 user (show)

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


Attachments
patch to allow kfilecoder to compile (kfilecoder-0.6.0-pre1.patch,4.90 KB, patch)
2003-09-08 08:28 UTC, Brandy Westcott (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Schulz 2003-09-04 12:42:55 UTC
emerge kfilecoder leads to the following:

make  all-recursive
make[1]: Entering directory
`/var/tmp/portage/kfilecoder-0.6.0_pre1/work/kfilecoder-0.6.0-pre1'
.......
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.1/include -I/usr/qt/3/include
-I/usr/X11R6/include   -Wall  -Wall  -c -o kfilecoderdoc.o `test -f
'kfilecoderdoc.cpp' || echo './'`kfilecoderdoc.cpp
In file included from kfilecoder.cpp:63:
kfilecoderdoc.h:115: syntax error before `.' token
make[3]: *** [kfilecoder.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from kfilecoderdoc.cpp:42:
kfilecoderdoc.h:115: syntax error before `.' token
kfilecoderdoc.cpp: In member function `int KFileCoderDoc::extractFiles(const
   char*, bool)':
kfilecoderdoc.cpp:723: syntax error before `.' token
kfilecoderdoc.cpp:749: request for member `tv_sec' in `st_mtim', which is of
   non-aggregate type `long int'
kfilecoderdoc.cpp: In member function `long int
   KFileCoderDoc::testFiles(QString*)':
kfilecoderdoc.cpp:916: syntax error before `.' token
kfilecoderdoc.cpp:944: request for member `tv_sec' in `st_mtim', which is of
   non-aggregate type `long int'
kfilecoderdoc.cpp: In member function `int KFileCoderDoc::listView_Fill()':
kfilecoderdoc.cpp:1236: syntax error before `.' token
kfilecoderdoc.cpp:1260: request for member `tv_sec' in `st_mtim', which is of
   non-aggregate type `long int'
kfilecoderdoc.cpp: At global scope:
kfilecoderdoc.cpp:1589: syntax error before `.' token
kfilecoderdoc.cpp: In member function `int KFileCoderDoc::readFileHeader(...)':
kfilecoderdoc.cpp:1601: `fArchive' undeclared (first use this function)
kfilecoderdoc.cpp:1601: (Each undeclared identifier is reported only once for
   each function it appears in.)
kfilecoderdoc.cpp:1627: `szFileName' undeclared (first use this function)
kfilecoderdoc.cpp:1632: `szFilePath' undeclared (first use this function)
kfilecoderdoc.cpp:1637: `nPermissions' undeclared (first use this function)
kfilecoderdoc.cpp:1649: `st_uid' undeclared (first use this function)
kfilecoderdoc.cpp:1661: `st_gid' undeclared (first use this function)
kfilecoderdoc.cpp:1673: `st_mtim' undeclared (first use this function)
kfilecoderdoc.cpp:1685: `cEncodedFileMixer' undeclared (first use this
   function)
kfilecoderdoc.cpp:1697: `dwCompress' undeclared (first use this function)
kfilecoderdoc.cpp:1710: `qwOriginalFileSize' undeclared (first use this
   function)
kfilecoderdoc.cpp:1721: `qwCompressedFileSize' undeclared (first use this
   function)
kfilecoderdoc.cpp:1732: `qwEncodedFileSize' undeclared (first use this
   function)
kfilecoderdoc.cpp:1743: `cHashControl' undeclared (first use this function)
make[3]: *** [kfilecoderdoc.o] Error 1
make[3]: Leaving directory
`/var/tmp/portage/kfilecoder-0.6.0_pre1/work/kfilecoder-0.6.0-pre1/kfilecoder'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/var/tmp/portage/kfilecoder-0.6.0_pre1/work/kfilecoder-0.6.0-pre1/kfilecoder'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/kfilecoder-0.6.0_pre1/work/kfilecoder-0.6.0-pre1'
make: *** [all] Error 2

!!! ERROR: app-arch/kfilecoder-0.6.0_pre1 failed.
!!! Function kde_src_compile, Line 137, Exitcode 2
!!! died running emake, kde_src_compile:make


Reproducible: Always
Steps to Reproduce:
1. emerge kfilecoder
2.
3.

Actual Results:  
emerge kfilecoder fails to compile

Expected Results:  
it should compile without errors

Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.20-gentoo-r6)
=================================================================
System uname: 2.4.20-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 1.80GHz
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=i686 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg gnome libg++ mad
mikmod mmx mpeg ncurses nls pdflib png quicktime slang spell truetype xml2 xmms
xv zlib gdbm berkdb readline arts tetex svga tcltk java X sdl gpm tcpd pam
libwww ssl perl python esd imlib oggvorbis gtk qt kde motif opengl mozilla cdr
scanner"
Comment 1 Brandy Westcott (RETIRED) gentoo-dev 2003-09-04 21:11:04 UTC
This looks somewhat similar to the error in Bug #19728 and is reproducable on my 
machine. There are a few observations to make: 
 
The error message contains: 
 
	kfilecoderdoc.h:115: syntax error before `.' token 
 
yet kfilecoderdoc.h does not contain a "." on line 115: 
 
	int readFileHeader(FILE *fArchive, char *szFileName, char *szFilePath, 
	QWORD *qwOriginalFileSize, QWORD *qwCompressedFileSize, 
	QWORD *qwEncodedFileSize, mode_t *nPermissions, uid_t *st_uid, 
	gid_t *st_gid, time_t *st_mtime, BYTE *cEncodedFileMixer, DWORD 
	*dwCompress, BYTE *cHashControl); 
 
(no stray kfilecoderdoc.h files exist on my machine.) 
 
This readFileHeader function contains the parameter "time_t *st_mtime" but 
this is refered to as "st_mtim" (no trailing "e") in the error message: 
 
	kfilecoderdoc.cpp:749: request for member `tv_sec' in `st_mtim', 
		which is of non-aggregate type `long int' 
 
This error seems to be caused by a define statement in /usr/include/bits/stat.h: 
 
	#ifdef __USE_MISC 
    /* Nanosecond resolution timestamps are stored in a format 
       equivalent to 'struct timespec'.  This is the type used 
       whenever possible but the Unix namespace rules do not allow the 
       identifier 'timespec' to appear in the <sys/stat.h> header. 
       Therefore we have to handle the use of this header in strictly 
       standard-compliant sources special.  */ 
    struct timespec st_atim;		/* Time of last access.  */ 
    struct timespec st_mtim;		/* Time of last modification.  */ 
    struct timespec st_ctim;		/* Time of last status change.  */ 
# define st_atime st_atim.tv_sec	/* Backward compatibility.  */ 
# define st_mtime st_mtim.tv_sec 
# define st_ctime st_ctim.tv_sec 
 
The parser seems to replace all occurences of st_mtime in the kfilecoderdoc source 
(except line 1489) with st_mtim.tv_sec. 
 
Comment 2 Benjamin Schulz 2003-09-05 12:41:10 UTC
well, perhaps according to:
http://kfilecoder.sourceforge.net/#whatisit
this maybe the reason for this error:

5. Changes log (last updated)
0.6.0: (2002-12-17)

Since I'm going to write my intel-gcc-command-line wrapper tomorrow I'll have no time to read in the USE flags of Karchiver..

But perhaps since it doesn't compile, the gentoo team should consider to move this package out of the ebuild three, since those who are interested in editing sources of Karchiver might get the code from sourcefrodge...

But:

thank you Brandy, for the help...
Comment 3 Caleb Tennis (RETIRED) gentoo-dev 2003-09-07 19:19:20 UTC
yeah, moving it out of portage is probably not a bad idea 
Comment 4 Benjamin Schulz 2003-09-07 19:34:32 UTC
I think packages which have a such unstable source should indeed moved out of portage IN GENERAL.

The packages contain still open source. Portage has only sense when you don't have to configure all make and config files of the stuff. Defect packages are somewat senseless. The one who submitted the package may then encouraged to change it or someone who want this software.
Comment 5 Caleb Tennis (RETIRED) gentoo-dev 2003-09-08 06:53:45 UTC
You are right - we decided a few weeks ago to start this policy for KDE packages that are too 
old to really support anymore.  I'm placing them at: 
 
http://dev.gentoo.org/~caleb/kde.html 
 
This one will be going there right now. 
Comment 6 Brandy Westcott (RETIRED) gentoo-dev 2003-09-08 08:28:14 UTC
Created attachment 17263 [details, diff]
patch to allow kfilecoder to compile

Forcing the st_time variable in kfilecoderdoc.h and kfilecoderdoc.cpp to keep
its local scope will allow kfilecoderdoc to compile. I've submitted this patch
in case people still do want to be able to use kfilecoderdoc.