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

Re: Bug#666286: yasr: FTBFS: yasr.h:312:12: error: conflicting types for 'openpty'



Jason White <jason@jasonjgw.net> writes:

> Lucas Nussbaum <lucas@lucas-nussbaum.net> wrote:
>> Source: yasr
>> This rebuild was done by building only architecture:any binary packages
>> (binary-arch target of debian/rules), and using a newer dpkg that uses the
>> build-arch target if available.
>> Also, only the Build-Depends were installed, not the Build-Depends-Indep.
>> 
>> Relevant part:
>> > gcc -DPACKAGE_DATA_DIR=\"/usr/share/yasr\" -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I..     -g -O2 -Wall -c config.c
>> > In file included from config.c:19:0:
>> > yasr.h:312:12: error: conflicting types for 'openpty'
>> > /usr/include/pty.h:34:12: note: previous declaration of 'openpty' was here
>> > yasr.h:321:12: error: conflicting types for 'forkpty'
>> > /usr/include/pty.h:40:12: note: previous declaration of 'forkpty' was here
>> > config.c: In function 'readconf':
>> > config.c:82:5: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
>> > make[3]: *** [config.o] Error 1
>
> When I run fakeroot debian/rules binary-arch, the patches (including the
> Debian patch to fix the above issues) aren't applied, but if I run quilt and
> push the patches first then everything compiles.

That is, AFAIK, expected behaviour.  You are supposed to build with
dpkg-buildpackage, which will deal with patch apply and unapply.

-- 
CYa,
  ⡍⠁⠗⠊⠕


Reply to: