Re: Problem compiling star on Debian squeeze
[email protected] (Joerg Schilling) Fri, 24 Jun 2011 10:44:48 +0200
| Newsgroups | gmane.comp.archivers.star.user |
|---|---|
| Message-ID | <4e044e80.CyrDq3QVZbd5Spt0%[email protected]> |
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 here > > 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 have= a = work around for a POSIX bug that was initiated by Ulrich Drepper (POSIX gra= nts = not to define "new" interfaces that are in conflict with existing published = interfaces). The getline() from libschily has been defined around 1980 and = thus = is an existing interface that must not be changed by POSIX. POSIX.1-2008 however did introduce a getline() with a conflicting interface = and thus is in conflict with the POSIX basic rules. Anyway, a workaround for this problem has been introduced in October 2008. J=F6rg -- = EMail:[email protected] (home) J=F6rg Schilling D-13353 Be= rlin [email protected] (uni) = [email protected] (work) Blog: http://schily.blogs= pot.com/ URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily