wdiff-bugs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [wdiff-bugs] Cygwin-bug#20070822T0857: cvs build error


From: Jari Aalto
Subject: Re: [wdiff-bugs] Cygwin-bug#20070822T0857: cvs build error
Date: Tue, 11 Sep 2007 15:37:02 +0300
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (windows-nt)

* Mon 2007-09-10 Denver Gingerich <denver AT ossguy.com> INBOX
>> /build/build/wdiff/vc/wdiff-0.5+cvs20070823/src  
>> -I/usr/src/build/build/wdiff/vc/wdiff-0.5+cvs20070823/lib   -g -O2 -MT 
>> writepipe.o -MD -MP -MF .deps/writepipe.Tpo -c -o writepipe.o writepipe.c
>> mv -f .deps/writepipe.Tpo .deps/writepipe.Po
>> ccache gcc  -g -O2   -o wdiff.exe wdiff.o readpipe.o writepipe.o 
>> ../lib/libgnu.a  -L/usr/lib -lintl -L/usr/lib -liconv
>> ccache gcc -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. 
>> -I/usr/src/build/build/wdiff/vc/wdiff-0.5+cvs20070823/src  
>> -I/usr/src/build/build/wdiff/vc/wdiff-0.5+cvs20070823/lib   -g -O2 -MT 
>> mdiff.o -MD -MP -MF .deps/mdiff.Tpo -c -o mdiff.o mdiff.c
>> mdiff.c: In function `alloc_and_compile_regex':
>> mdiff.c:384: error: invalid application of `sizeof' to incomplete type 
>> `re_pattern_buffer'
>> mdiff.c:385: error: invalid application of `sizeof' to incomplete type 
>> `re_pattern_buffer'
>> mdiff.c:387: error: dereferencing pointer to incomplete type
>> mdiff.c:388: error: dereferencing pointer to incomplete type
>> mdiff.c:394: error: dereferencing pointer to incomplete type
>> mdiff.c:396: warning: assignment makes pointer from integer without a cast
>> make[2]: *** [mdiff.o] Error 1
>> make[2]: Leaving directory 
>> `/usr/src/build/build/wdiff/vc/wdiff/.build/build/src'
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory `/usr/src/build/build/wdiff/vc/wdiff/.build/build'
>> make: *** [all] Error 2
>
> What I suspect is that the compiler sees struct re_pattern_buffer as
> an incomplete type because lib/regex.h was not included properly (it
> contains the definition of struct re_pattern_buffer).  Can you verify
> that your lib/regex.h contains the definition of struct
> re_pattern_buffer and that it's being included properly?  The version
> of lib/regex.h in CVS and in the latest pre-test should contain the
> definition.

Hm. I just updated the CVS and there is no file lib/regex.h

    lib/$ head CVS/*
    ==> CVS/Entries <==
    /Makefile.am/1.2/Thu Jul 12 00:26:04 2007//
    /error.c/1.2/Thu Jul 12 00:26:04 2007//
    /error.h/1.2/Thu Jul 12 00:26:04 2007//
    /exit.h/1.1/Thu Jul 12 00:30:38 2007//
    /exitfail.c/1.1/Thu Jul 12 00:30:38 2007//
    /exitfail.h/1.1/Thu Jul 12 00:30:38 2007//
    /getdelim.c/1.1/Thu Jul 12 00:30:38 2007//
    /getdelim.h/1.1/Thu Jul 12 00:30:38 2007//
    /getline.c/1.2/Thu Jul 12 00:26:04 2007//
    /getline.h/1.2/Thu Jul 12 00:26:04 2007//

    ==> CVS/Repository <==
    wdiff/lib

    ==> CVS/Root <==
    :pserver:address@hidden:/sources/wdiff

    ==> CVS/Template <==

>>  wdiff2$(EXEEXT): $(wdiff2_OBJECTS) $(wdiff2_DEPENDENCIES)
>>         @rm -f wdiff2$(EXEEXT)
>> -       $(LINK) $(wdiff2_OBJECTS) $(wdiff2_LDADD) $(LIBS)
>> +       $(LINK) $(wdiff2_OBJECTS) $(wdiff2_LDADD) $(LIBS) $(LTLIBINTL)
>>
>>  mostlyclean-compile:
>>         -rm -f *.$(OBJEXT)
>
> Unfortunately I can't use this patch because it is applied to an
> auto-generated file.  Makefile.in is generated by Automake from
> Makefile.am so you should investigate a way of modifying Makefile.am
> so Automake will generate a Makefile.in similar to the one described
> by your patch.

Ok, I'll take a look at .am

Jari

-- 
Welcome to FOSS revolution: we fix and modify until it shines




reply via email to

[Prev in Thread] Current Thread [Next in Thread]