DVDAuthor fails to build

Rytis Sileika rytis.sileika at gmail.com
Sat Dec 1 23:08:24 PST 2007


Hi,

Anyone's got an idea why this is happening? Did some search on Google, but
no luck...

Thanks,
Rytis

$ sudo port install dvdauthor
--->  Building dvdauthor with target all
Error: Target org.macports.build returned: shell command " cd
"/opt/local/var/macports/build
/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_dvdauthor/work/dvdauthor-
0.6.11" && make all " returned error 2
Command output: Making all in doc
make[1]: Nothing to be done for `all'.
Making all in src
make  all-am
if gcc -DHAVE_CONFIG_H -I. -I. -I.  -DSYSCONFDIR="\"/opt/local/etc\""
-I/usr/include/libxml2  -I/usr/X11/include/freetype2 -I/usr/X11/include
-I/opt/local/include -Wall -O2 -MT readxml.o -MD -MP -MF ".deps/readxml.Tpo"
-c -o readxml.o readxml.c; \
    then mv -f ".deps/readxml.Tpo" ".deps/readxml.Po"; else rm -f
".deps/readxml.Tpo"; exit 1; fi
readxml.c : In function 'readxml':
readxml.c:78: warning: pointer targets in passing argument 1 of 'strcmp'
differ in signedness
readxml.c:89: warning: pointer targets in initialization differ in
signedness
readxml.c:89: warning: pointer targets in initialization differ in
signedness
readxml.c:144: warning: pointer targets in initialization differ in
signedness
readxml.c: At top level:
readxml.c:193: error: syntax error before 'get_conv'
readxml.c:194: warning: return type defaults to 'int'
readxml.c: In function 'get_conv':
readxml.c:195: error: nested functions are disabled, use -fnested-functions
to re-enable
readxml.c:195: error: syntax error before 'ic'
readxml.c:197: error: 'ic' undeclared (first use in this function)
readxml.c:197: error: (Each undeclared identifier is reported only once
readxml.c:197: error: for each function it appears in.)
readxml.c :197: error: 'iconv_t' undeclared (first use in this function)
readxml.c:212: warning: implicit declaration of function 'iconv_open'
readxml.c: In function 'utf8tolocal':
readxml.c:223: error: 'iconv_t' undeclared (first use in this function)
readxml.c:223: error: syntax error before 'c'
readxml.c:230: warning: implicit declaration of function 'iconv'
readxml.c:230: error: 'c' undeclared (first use in this function)
make[2]: *** [ readxml.o] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

Error: Status 1 encountered during processing.


If anyone's interested here's the piece of code:

int xml_ison(const char *s)
{
    if( !strcmp(s,"1") || !strcasecmp(s,"on") || !strcasecmp(s,"yes") )
        return 1;
    if( !strcmp(s,"0") || !strcasecmp(s,"off") || !strcasecmp(s,"no") )
        return 0;
    return -1;
}

#if defined(HAVE_ICONV) && defined(HAVE_LANGINFO_CODESET)

static iconv_t get_conv()                        // this is line 193
{
    static iconv_t ic=(iconv_t)-1;

    if( ic==((iconv_t)-1) ) {
        char *enc;

        errno=0;
        enc=setlocale(LC_ALL,"");
        if( enc ) {
            fprintf(stderr,"INFO: Locale=%s\n",enc);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-users/attachments/20071202/385689c5/attachment.html


More information about the macports-users mailing list