Re: Problem compiling star on Debian squeeze

Ruud Baart <[email protected]> Fri, 24 Jun 2011 10:56:12 +0200
Newsgroups gmane.comp.archivers.star.user
Organization IT's Prompt or never ...
Message-ID <[email protected]>
Indeed. I downloaded =

ftp://ftp.berlios.de/pub/star/ALPHA/star-1.5a89.tar.bz2 and I missed the =

newer version ftp://ftp.berlios.de/pub/star/star-1.5.1.tar.bz2.

I downloaded it and I have already compiled it. Thanks for your help.


Op 24-6-2011 10:44, Joerg Schilling schreef:
> Ruud Baart<[email protected]>  wrote:
>
>> I have compiled star many times in different Debian systems. After
>> downloading the needed dev-packages and after first compiling smake I
>> usually manage to compile star without problems. On Debian Squeeze (the
>> latest version of Debian) I can't compile star. Any help would be nice.
>>
>> This is the error:
>>
>> In file included from avoffset.c:32:
>> ../include/schily/schily.h:246: error: conflicting types for ?getline?
>> /usr/include/stdio.h:651: note: previous declaration of ?getline? was he=
re
>>
>> When I remove the definition of getline in schily.h I get other similar
>> errors. After I have removed all other conflicting declarations, smake
>> fails to compile star because the definitions are not correct.
>>
>> I attach the output of smake (perhaps the list refuses attachements).
>> This is the result without modifying any include file.
> You seem for unknown reasons use an old star version that does not yet ha=
ve a
> work around for a POSIX bug that was initiated by Ulrich Drepper (POSIX g=
rants
> not to define "new" interfaces that are in conflict with existing publish=
ed
> interfaces). The getline() from libschily has been defined around 1980 an=
d thus
> is an existing interface that must not be changed by POSIX.
>
> POSIX.1-2008 however did introduce a getline() with a conflicting interfa=
ce
> and thus is in conflict with the POSIX basic rules.
>
> Anyway, a workaround for this problem has been introduced in October 2008.
>
> J=F6rg
>

-- =


Regards,


Ruud Baart