Package: t1utils
Version: 1.34-1
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu karmic ubuntu-patch
In Ubuntu, we've applied the attached patch to achieve the following:
* t1asm.c: rename getline() function to avoid name conflict with the
one defined in stdio.h, fixes FTBFS (LP: #453828).
We thought you might be interested in doing the same.
The build fails with the following error:
gcc -DHAVE_CONFIG_H -I. -I./include -g -O2 -W -Wall -MT t1asm.o -MD -MP -MF
.deps/t1asm.Tpo -c -o t1asm.o t1asm.c
t1asm.c:283: error: conflicting types for 'getline'
/usr/include/stdio.h:651: note: previous declaration of 'getline' was here
make[2]: *** [t1asm.o] Error 1
http://launchpadlibrarian.net/32349019/buildlog_ubuntu-karmic-i386.t1utils_1.34-1_FAILEDTOBUILD.txt.gz
-- System Information:
Debian Release: 5.0
APT prefers jaunty-updates
APT policy: (500, 'jaunty-updates'), (500, 'jaunty-security'), (500,
'jaunty-proposed'), (500, 'jaunty-backports'), (500, 'jaunty')
Architecture: i386 (i686)
Kernel: Linux 2.6.28-15-generic (SMP w/2 CPU cores)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
--- t1utils-1.34.orig/t1asm.c
+++ t1utils-1.34/t1asm.c
@@ -280,7 +280,7 @@
the newline is put into line[]. When terminated by '{', the '{' is not put
into line[], and the flag start_charstring is set to 1. */
-static void getline()
+static void getline_t1utils()
{
int c;
char *p = line;
@@ -721,7 +721,7 @@
without /Subrs sections and provided a patch. */
while (!feof(ifp) && !ferror(ifp)) {
- getline();
+ getline_t1utils();
if (!ever_active) {
if (strncmp(line, "currentfile eexec", 17) == 0 && isspace(line[17])) {
@@ -792,7 +792,7 @@
/* There may be additional code. */
while (!feof(ifp) && !ferror(ifp)) {
- getline();
+ getline_t1utils();
eexec_string(line);
}