Ich habe Probleme beim Kompilieren von KWinTV (0.8.5). Das Kompilieren bricht mit folgender Fehlermeldung ab: /bin/sh ../libtool --silent --mode=link g++ -O2 -s -o kwintv -L/usr/lib -L/usr/X11R6/lib wintv.o wintvmain.o wintvscreen.o wintvchannel.o wintvstream.o wintvstreamview.o wintvstreamviewData.o otab.o otabdata.o omixdev.o omixdevdata.o ogeneraldata.o ogeneral.o osnapshotdata.o osnapshot.o ofullscreen.o ofullscreendata.o vtab.o vtabdata.o soptions.o soptionsData.o sframerate.o sframerateData.o dsp.o rcfile.o channel.o mixer.o countries.o avivideoclip.o rawvideoclip.o ppmvideoclip.o c2freq.o c2freqData.o c2opts.o c2optsData.o c2prog.o c2progData.o ctab.o ctabdata.o kirc.o wintvscan.o parsecl.o wizNorm.o wizRegion.o wizScan.o wizNormData.o wizRegionData.o wizScanData.o wizFinish.o wizFinishData.o docking.o v4lxif.o qt_visual.o colorspace.o -lkdeui -lkdecore -lqt -lqt-mt -lXext -ljpeg -lXxf86dga -lXxf86vm /usr/bin/ld: cannot find -lqt-mt collect2: ld returned 1 exit status make[3]: *** [kwintv] Error 1 make[3]: Leaving directory `/home/richard/kwintv-0.8.5/kwintv' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/richard/kwintv-0.8.5/kwintv' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/richard/kwintv-0.8.5' make: *** [all-recursive-am] Error 2 What's wrog? config.log, die von configure erzeugte Logfile, habe ich angehängt. Richard -- Aus Murphy's Gesetze: Dein Vordermann erwischt immer die letzte Parklücke.
This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. configure:574: checking for extra includes configure:606: checking for extra libs configure:739: checking for libz configure:819: checking for ranlib configure:858: checking for ld used by GCC ./configure: -print-prog-name=ld: command not found configure:921: checking if the linker (/usr/bin/ld) is GNU ld configure:937: checking for BSD-compatible nm configure:974: checking whether ln -s works configure:996: checking for dlopen in -ldl configure:1040: checking for shl_unload in -ldld configure:1088: checking for X configure:1364: checking for IceConnectionNumber in -lICE configure:1411: checking for libXext configure:1465: checking for libpng configure:1555: checking for a BSD compatible install configure:1608: checking whether build environment is sane configure:1646: checking whether make sets ${MAKE} configure:1807: checking for main in -lcompat configure:1844: checking for crypt in -lcrypt configure:1937: checking for the third argument of getsockname configure:2034: checking for dnet_ntoa in -ldnet configure:2075: checking for dnet_ntoa in -ldnet_stub configure:2116: checking for inet_ntoa configure:2206: checking for connect configure:2297: checking for remove configure:2389: checking for shmat configure:2483: checking for killpg in -lucb configure:2583: checking for Qt configure:2764: checking if Qt compiles without flags configure:2884: checking for moc configure:2974: checking for bool configure:3043: checking host system type configure:3064: checking target system type configure:3082: checking build system type configure:3143: checking for working aclocal configure:3156: checking for working autoconf configure:3169: checking for working automake configure:3182: checking for working autoheader configure:3195: checking for working makeinfo configure:3253: checking for a C-Compiler configure:3259: checking for gcc configure:3365: checking whether the C compiler (gcc ) works configure:3381: gcc -o conftest conftest.c 1>&5 In file included from configure:3376: confdefs.h:14: warning: `VERSION' redefined confdefs.h:2: warning: this is the location of the previous definition configure:3407: checking whether the C compiler (gcc ) is a cross-compiler configure:3412: checking whether we are using GNU C configure:3489: checking how to run the C preprocessor configure:3551: checking for a C++-Compiler configure:3557: checking for g++ configure:3673: checking whether the C++ compiler (g++ -s) works configure:3689: g++ -o conftest -s conftest.C 1>&5 In file included from configure:3684: confdefs.h:14: warning: `VERSION' redefined confdefs.h:2: warning: this is the location of the previous definition configure:3715: checking whether the C++ compiler (g++ -s) is a cross-compiler configure:3720: checking whether we are using GNU C++ configure:3832: checking how to run the C++ preprocessor configure:3966: checking for libtool fix ltconfig:602: g++ -c -O2 conftest.c 1>&5 ltconfig:744: checking if g++ PIC flag -fPIC works ltconfig:745: g++ -c -O2 -fPIC -DPIC conftest.c 1>&5 ltconfig:797: checking if g++ supports -c -o file.o ltconfig:798: g++ -c -O2 -o out/conftest2.o conftest.c 1>&5 ltconfig:830: checking if g++ supports -c -o file.lo ltconfig:831: g++ -c -O2 -c -o conftest.lo conftest.c 1>&5 ltconfig:882: checking if g++ supports -fno-rtti -fno-exceptions ltconfig:883: g++ -c -O2 -fno-rtti -fno-exceptions -c conftest.c conftest.c 1>&5 ltconfig:926: checking if g++ static flag -static works ltconfig:927: g++ -o conftest -O2 -s -static conftest.c 1>&5 GNU ld version 2.11.90.0.7 (with BFD 2.11.90.0.7) ltconfig:1569: checking if global_symbol_pipe works ltconfig:1570: g++ -c -O2 conftest.c 1>&5 ltconfig:1573: eval "/usr/bin/nm -B conftest.o | sed -n -e 's/^.*[ ]\([ABCDGISTW]\)[ ][ ]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' > conftest.nm" ltconfig:1625: g++ -o conftest -O2 -fno-builtin -fno-rtti -fno-exceptions -s conftest.c conftstm.o 1>&5 configure:3990: checking whether NLS is requested configure:4011: checking for msgfmt configure:4045: checking for gmsgfmt configure:4090: checking for xgettext configure:4140: checking for rpath configure:4169: checking for KDE configure:4331: checking for KDE paths configure:4563: checking for dirent.h that defines DIR configure:4576: g++ -c -O2 conftest.C 1>&5 In file included from configure:4568: confdefs.h:14: warning: `VERSION' redefined confdefs.h:2: warning: this is the location of the previous definition configure:4601: checking for opendir in -ldir configure:4623: g++ -o conftest -O2 -s conftest.C -ldir 1>&5 In file included from configure:4609: confdefs.h:14: warning: `VERSION' redefined confdefs.h:2: warning: this is the location of the previous definition /usr/bin/ld: cannot find -ldir collect2: ld returned 1 exit status configure: failed program was: #line 4609 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char opendir(); int main() { opendir() ; return 0; } configure:4689: checking for ANSI C header files configure:4702: /lib/cpp conftest.C >/dev/null 2>conftest.out In file included from configure:4694: confdefs.h:14: warning: `VERSION' redefined confdefs.h:2: warning: this is the location of the previous definition configure: failed program was: #line 4694 "configure" #include "confdefs.h" #include <stdlib.h> #include <stdarg.h> #include <string.h> #include <float.h> configure:4799: checking for fcntl.h configure:4809: /lib/cpp conftest.C >/dev/null 2>conftest.out In file included from configure:4804: confdefs.h:14: warning: `VERSION' redefined confdefs.h:2: warning: this is the location of the previous definition configure: failed program was: #line 4804 "configure" #include "confdefs.h" #include <fcntl.h> configure:4799: checking for sys/time.h configure:4809: /lib/cpp conftest.C >/dev/null 2>conftest.out In file included from configure:4804: confdefs.h:14: warning: `VERSION' redefined confdefs.h:2: warning: this is the location of the previous definition configure: failed program was: #line 4804 "configure" #include "confdefs.h" #include <sys/time.h> configure:4799: checking for unistd.h configure:4809: /lib/cpp conftest.C >/dev/null 2>conftest.out In file included from configure:4804: confdefs.h:14: warning: `VERSION' redefined confdefs.h:2: warning: this is the location of the previous definition configure: failed program was: #line 4804 "configure" #include "confdefs.h" #include <unistd.h> configure:4799: checking for sys/cdefs.h configure:4809: /lib/cpp conftest.C >/dev/null 2>conftest.out In file included from configure:4804: confdefs.h:14: warning: `VERSION' redefined confdefs.h:2: warning: this is the location of the previous definition configure: failed program was: #line 4804 "configure" #include "confdefs.h" #include <sys/cdefs.h> configure:4839: checking for fnmatch.h configure:4849: /lib/cpp conftest.C >/dev/null 2>conftest.out In file included from configure:4844: confdefs.h:14: warning: `VERSION' redefined confdefs.h:2: warning: this is the location of the previous definition configure: failed program was: #line 4844 "configure" #include "confdefs.h" #include <fnmatch.h> configure:4839: checking for sysent.h configure:4849: /lib/cpp conftest.C >/dev/null 2>conftest.out In file included from configure:4844: confdefs.h:14: warning: `VERSION' redefined confdefs.h:2: warning: this is the location of the previous definition configure:4845: sysent.h: No such file or directory configure: failed program was: #line 4844 "configure" #include "confdefs.h" #include <sysent.h> configure:4839: checking for strings.h configure:4849: /lib/cpp conftest.C >/dev/null 2>conftest.out In file included from configure:4844: confdefs.h:14: warning: `VERSION' redefined confdefs.h:2: warning: this is the location of the previous definition configure: failed program was: #line 4844 "configure" #include "confdefs.h" #include <strings.h> configure:4839: checking for sys/stat.h configure:4849: /lib/cpp conftest.C >/dev/null 2>conftest.out In file included from configure:4844: confdefs.h:14: warning: `VERSION' redefined confdefs.h:2: warning: this is the location of the previous definition configure: failed program was: #line 4844 "configure" #include "confdefs.h" #include <sys/stat.h> configure:4877: checking for socket in -lsocket configure:4899: g++ -o conftest -O2 -s conftest.C -lsocket 1>&5 In file included from configure:4885: confdefs.h:14: warning: `VERSION' redefined confdefs.h:2: warning: this is the location of the previous definition /usr/bin/ld: cannot find -lsocket collect2: ld returned 1 exit status configure: failed program was: #line 4885 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char socket(); int main() { socket() ; return 0; } configure:4923: checking for libjpeg6b configure:4959: gcc -o conftest -O2 -s conftest.c -L/usr/lib -L/usr/X11R6/lib -ljpeg6b -lm 1>&5 In file included from configure:4938: confdefs.h:14: warning: `VERSION' redefined confdefs.h:2: warning: this is the location of the previous definition /usr/bin/ld: cannot find -ljpeg6b collect2: ld returned 1 exit status configure: failed program was: #line 4938 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ struct jpeg_decompress_struct; typedef struct jpeg_decompress_struct * j_decompress_ptr; typedef int size_t; #ifdef __cplusplus extern "C" { #endif void jpeg_CreateDecompress(j_decompress_ptr cinfo, int version, size_t structsize); #ifdef __cplusplus } #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ int main() { jpeg_CreateDecompress(0L, 0, 0); ; return 0; } configure:4981: checking for libjpeg configure:5017: gcc -o conftest -O2 -s conftest.c -L/usr/lib -L/usr/X11R6/lib -ljpeg -lm 1>&5 In file included from configure:4996: confdefs.h:14: warning: `VERSION' redefined confdefs.h:2: warning: this is the location of the previous definition configure:5074: checking whether time.h and sys/time.h may both be included configure:5088: gcc -c -O2 conftest.c 1>&5 In file included from configure:5079: confdefs.h:14: warning: `VERSION' redefined confdefs.h:2: warning: this is the location of the previous definition configure:5111: checking for bool configure:5154: checking if you need GNU extensions configure:5190: checking for socket configure:5221: gcc -o conftest -O2 -s conftest.c 1>&5 In file included from configure:5195: confdefs.h:14: warning: `VERSION' redefined confdefs.h:2: warning: this is the location of the previous definition configure:5190: checking for vsnprintf configure:5221: gcc -o conftest -O2 -s conftest.c 1>&5 In file included from configure:5195: confdefs.h:14: warning: `VERSION' redefined confdefs.h:2: warning: this is the location of the previous definition configure:5246: checking for setenv configure:5278: gcc -o conftest -O2 -s conftest.c 1>&5 In file included from configure:5258: confdefs.h:14: warning: `VERSION' redefined confdefs.h:2: warning: this is the location of the previous definition configure:5318: checking for getdomainname configure:5349: g++ -o conftest -O2 -s conftest.C 1>&5 In file included from configure:5323: confdefs.h:14: warning: `VERSION' redefined confdefs.h:2: warning: this is the location of the previous definition configure:5374: checking for the third argument of getsockname configure:5537: checking wheter to use XFree86 Extensions configure:5546: checking for C++ save version of xf86vmode.h configure:5567: g++ -c -O2 -I/usr/include/kde -I/usr/include/qt -I/usr/X11R6/include conftest.C configure:5571: checking for XF86VidModeQueryExtension in -lXxf86vm configure:5593: g++ -o conftest -O2 -s conftest.C -lXxf86vm -L/usr/X11R6/lib -lXext -lX11 1>&5 In file included from configure:5579: confdefs.h:14: warning: `VERSION' redefined confdefs.h:2: warning: this is the location of the previous definition configure:5631: checking for XF86DGAQueryExtension in -lXxf86dga configure:5653: g++ -o conftest -O2 -s conftest.C -lXxf86dga -L/usr/X11R6/lib -lXext -lX11 -lXxf86vm 1>&5 In file included from configure:5639: confdefs.h:14: warning: `VERSION' redefined confdefs.h:2: warning: this is the location of the previous definition configure:5684: checking for DPMSQueryExtension in -lXdpms configure:5706: g++ -o conftest -O2 -s conftest.C -lXdpms -L/usr/X11R6/lib -lXext -lX11 -lXxf86dga -lXxf86vm 1>&5 In file included from configure:5692: confdefs.h:14: warning: `VERSION' redefined confdefs.h:2: warning: this is the location of the previous definition /usr/bin/ld: cannot find -lXdpms collect2: ld returned 1 exit status configure: failed program was: #line 5692 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char DPMSQueryExtension(); int main() { DPMSQueryExtension() ; return 0; } configure:5755: checking for Video4Linux interface Version configure:5762: checking for videodev.h configure:5805: checking for Video4Linux device configure:5847: checking for sound mixer device configure:5865: checking for LIRC>=0.5.5 configure:6173: g++ -o conftest -O2 -s conftest.C -lXxf86dga -lXxf86vm 1>&5 In file included from configure:5889: confdefs.h:14: warning: `VERSION' redefined confdefs.h:2: warning: this is the location of the previous definition configure: In function `int main(int, char **)': configure:6122: `LIRCD' undeclared (first use this function) configure:6122: (Each undeclared identifier is reported only once configure:6122: for each function it appears in.) configure: failed program was: #line 5889 "configure" #include "confdefs.h" #ifdef __cplusplus extern "C" void exit(int); #endif #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <fcntl.h> #include <getopt.h> #include <sys/socket.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/un.h> #include <errno.h> #include <signal.h> #include <limits.h> #define PACKET_SIZE 256 /* three seconds */ #define TIMEOUT 3 int timeout=0; void sigalrm(int sig) { timeout=1; } const char *read_string(int fd) { static char buffer[PACKET_SIZE+1]=""; char *end; static int ptr=0; ssize_t ret; if(ptr>0) { memmove(buffer,buffer+ptr,strlen(buffer+ptr)+1); ptr=strlen(buffer); end=strchr(buffer,'\n'); } else { end=NULL; } alarm(TIMEOUT); while(end==NULL) { if(PACKET_SIZE<=ptr) { ptr=0; return(NULL); } ret=read(fd,buffer+ptr,PACKET_SIZE-ptr); if(ret<=0 || timeout) { if(!timeout) { alarm(0); } ptr=0; return(NULL); } buffer[ptr+ret]=0; ptr=strlen(buffer); end=strchr(buffer,'\n'); } alarm(0);timeout=0; end[0]=0; ptr=strlen(buffer)+1; return(buffer); } enum packet_state { P_BEGIN, P_MESSAGE, P_STATUS, P_DATA, P_N, P_DATA_N, P_END }; char *get_version(int fd,const char *packet) { int done,todo; const char *string,*data; char *endptr; enum packet_state state; int status,n; unsigned long data_n; unsigned int major,minor,micro; static char version[100]; todo=strlen(packet); data=packet; while(todo>0) { done=write(fd,(void *) data,todo); if(done<0) { return(NULL); } data+=done; todo-=done; } /* get response */ status=0; state=P_BEGIN; n=0; while(1) { string=read_string(fd); if(string==NULL) return(NULL); switch(state) { case P_BEGIN: if(strcasecmp(string,"BEGIN")!=0) { continue; } state=P_MESSAGE; break; case P_MESSAGE: if(strncasecmp(string,packet,strlen(string))!=0 || strlen(string)+1!=strlen(packet)) { state=P_BEGIN; continue; } state=P_STATUS; break; case P_STATUS: if(strcasecmp(string,"SUCCESS")==0) { status=0; } else if(strcasecmp(string,"END")==0) { status=0; return(NULL); } else if(strcasecmp(string,"ERROR")==0) { status=-1; } else { goto bad_packet; } state=P_DATA; break; case P_DATA: if(strcasecmp(string,"END")==0) { return(NULL); } else if(strcasecmp(string,"DATA")==0) { state=P_N; break; } goto bad_packet; case P_N: errno=0; data_n=strtoul(string,&endptr,0); if(!*string || *endptr) { goto bad_packet; } if(data_n==0) { state=P_END; } else { state=P_DATA_N; } break; case P_DATA_N: if(data_n==1 && status==0) { if(sscanf(string,"%u.%u.%u", &major,&minor,µ)==3) { sprintf(version,"%u.%u.%u", major,minor,micro); } else { goto bad_packet; } } n++; if(n==data_n) state=P_END; break; case P_END: if(strcasecmp(string,"END")==0) { return(version); } goto bad_packet; break; } } bad_packet: return(NULL); } int main(int argc,char **argv) { char *version,*min_version; unsigned int major,minor,micro,min_major,min_minor,min_micro; struct sockaddr_un addr; FILE *result; int fd; struct sigaction act; result=fopen("conf.lirc","w"); if(result==NULL) exit(EXIT_FAILURE); act.sa_handler=sigalrm; sigemptyset(&act.sa_mask); act.sa_flags=0; /* we need EINTR */ sigaction(SIGALRM,&act,NULL); addr.sun_family=AF_UNIX; strcpy(addr.sun_path,LIRCD); fd=socket(AF_UNIX,SOCK_STREAM,0); if(fd==-1) { fprintf(result,"unknown"); fclose(result); close(fd); exit(EXIT_FAILURE); }; if(connect(fd,(struct sockaddr *)&addr,sizeof(addr))==-1) { fprintf(result,"unknown"); fclose(result); close(fd); exit(EXIT_FAILURE); }; version=get_version(fd,"VERSION\n"); if(version==NULL) { fprintf(result,"<0.5.5"); fclose(result); close(fd); exit(EXIT_FAILURE); } fprintf(result,"%s",version); fclose(result); close(fd); /* HP/UX 9 (%@#!) writes to sscanf strings */ min_version=strdup("0.5.5"); if(min_version==NULL) exit(EXIT_FAILURE); if(sscanf(version,"%u.%u.%u",&major,&minor,µ)!=3 || sscanf(min_version,"%u.%u.%u",&min_major,&min_minor,&min_micro)!=3) { exit(EXIT_FAILURE); } if(major<min_major || (major==min_major && minor<min_minor) || (major==min_major && minor==min_minor && micro<min_micro)) { exit(EXIT_FAILURE); } exit(EXIT_SUCCESS); } configure:6240: checking for IRC device configure:6247: checking for lirc daemon device configure:6339: checking whether make sets ${MAKE}