You are not logged in.

#1 2006-08-13 23:25:49

Cub69
Member
From: Ottawa, Canada
Registered: 2006-01-20
Posts: 87
Website

New Xine-ui 0.9.23 won't compile

Hi All, I'm trying to build a package for xine-ui 0.9.23 but the compile fails with :

if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../.. -I../../readline -I../../readline -I../../src -I../../src -I../../src/common -I../../src/common -I../../src/xitk/xine-toolkit -I../../src/xitk/xine-toolkit -I/usr/include    -I/usr/include   -I../../src/xitk/xine-toolkit -DNDEBUG -Wall -D_FILE_OFFSET_BITS=64 -O3 -pipe -fomit-frame-pointer -falign-functions=4 -falign-loops=4 -falign-jumps=4  -mpreferred-stack-boundary=2 -fexpensive-optimizations -fschedule-insns2 -fno-strict-aliasing -ffast-math -funroll-loops -finline-functions -march=i686 -O2 -pipe   -MT control.o -MD -MP -MF ".deps/control.Tpo" 
          -c -o control.o `test -f 'control.c' || echo './'`control.c; 
        then mv -f ".deps/control.Tpo" ".deps/control.Po"; 
        else rm -f ".deps/control.Tpo"; exit 1; 
        fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../.. -I../../readline -I../../readline -I../../src -I../../src -I../../src/common -I../../src/common -I../../src/xitk/xine-toolkit -I../../src/xitk/xine-toolkit -I/usr/include    -I/usr/include   -I../../src/xitk/xine-toolkit -DNDEBUG -Wall -D_FILE_OFFSET_BITS=64 -O3 -pipe -fomit-frame-pointer -falign-functions=4 -falign-loops=4 -falign-jumps=4  -mpreferred-stack-boundary=2 -fexpensive-optimizations -fschedule-insns2 -fno-strict-aliasing -ffast-math -funroll-loops -finline-functions -march=i686 -O2 -pipe   -MT download.o -MD -MP -MF ".deps/download.Tpo" 
          -c -o download.o `test -f 'download.c' || echo './'`download.c; 
        then mv -f ".deps/download.Tpo" ".deps/download.Po"; 
        else rm -f ".deps/download.Tpo"; exit 1; 
        fi
download.c: In function 'network_download':
download.c:101: error: 'FALSE' undeclared (first use in this function)
download.c:101: error: (Each undeclared identifier is reported only once
download.c:101: error: for each function it appears in.)
download.c:108: error: 'TRUE' undeclared (first use in this function)
make[4]: *** [download.o] Error 1
make[4]: Leaving directory `/root/xine-network-ui/src/xine-ui-0.9.23/src/xitk'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/root/xine-network-ui/src/xine-ui-0.9.23/src/xitk'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/xine-network-ui/src/xine-ui-0.9.23/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/xine-network-ui/src/xine-ui-0.9.23'
make: *** [all] Error 2
==> ERROR: Build Failed.  Aborting...
[root@tv xine-network-ui]#

The offending code looks like this:

    curl_easy_setopt(curl, CURLOPT_VERBOSE,
#ifdef DEBUG
                     TRUE
#else
                     FALSE
#endif
                     );

Any suggestions on how to resolve?  I suspect its a curl issue?  Not sure.

Norm

Offline

#2 2006-08-13 23:27:42

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: New Xine-ui 0.9.23 won't compile

CFLAGS="-DTRUE=1 -DFALSE=0" ?? This would "fix" it, but it's probably a sign of a greater problem.

Offline

#3 2006-08-13 23:52:56

Cub69
Member
From: Ottawa, Canada
Registered: 2006-01-20
Posts: 87
Website

Re: New Xine-ui 0.9.23 won't compile

Yea, I think so too -- with the CFLAGS I get:
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../.. -I../../readline -I../../readline -I../../src -I../../src -I../../src/common -I../../src/common -I../../src/xitk/xine-toolkit -I../../src/xitk/xine-toolkit -I/usr/include    -I/usr/include   -I../../src/xitk/xine-toolkit -DTRUE=1 -DFALSE=0 -MT mediamark.o -MD -MP -MF ".deps/mediamark.Tpo"
          -c -o mediamark.o `test -f 'mediamark.c' || echo './'`mediamark.c;
        then mv -f ".deps/mediamark.Tpo" ".deps/mediamark.Po";
        else rm -f ".deps/mediamark.Tpo"; exit 1;
        fi
mediamark.c: In function 'mmkeditor_apply':


Could this be a gcc 4 versus gcc 3.4 issue perhaps?  If I'm getting this error, how did anyone get this to compile?  I did some searching and found nothing related to this error.

Norm

Offline

#4 2006-08-14 00:33:16

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: New Xine-ui 0.9.23 won't compile

You didn't post the actual error.

Offline

#5 2006-08-14 00:57:08

Cub69
Member
From: Ottawa, Canada
Registered: 2006-01-20
Posts: 87
Website

Re: New Xine-ui 0.9.23 won't compile

Interesting, I remapped to use gcc3 from AUR and it compiled without a problem.  I think the Xine team needs to upgrade their compilers.

Thanks
Norm

Offline

Board footer

Powered by FluxBB