Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#501 closed defect (fixed)

vobsub.c fails while compiling. + patch

Reported by: distchx@… Owned by: reimar
Priority: normal Component: core
Version: 1.0pre7 Severity: normal
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: Analyzed by developer:

Description

if USE_UNRARLIB is defined, vobsub.c could not compile.
log:
cc -c -I../libvo -I../../libvo -I/usr/X11/include -fno-PIC -O4 -march=pentium3
-mcpu=pentium3 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I. -I/usr/include/freetype2
-I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/X11/include
-I/usr/X11R6/include -I/usr/include/ -o vobsub.o vobsub.c
vobsub.c:231: error: conflicting types for `getline'
/usr/include/bits/stdio.h:103: error: previous declaration of `getline'
make: * [vobsub.o] Error 1

couse:
_GNU_SOURCE is defined
getline function is defined in bits/stdio.h
getline function is defined static in vobsub.c with different parametre type

solution:
--- vobsub.c.org 2006-05-20 05:53:04.000000000 +0300
+++ vobsub.c 2006-05-20 05:53:29.000000000 +0300
@@ -227,7 +227,7 @@

//

static ssize_t

-getline(char lineptr, size_t *n, rar_stream_t *stream)
+vobsub_getline(char lineptr, size_t *n, rar_stream_t *stream)

{

size_t res = 0;
int c;

@@ -949,7 +949,7 @@

size_t line_reserve = 0;
char *line = NULL;

do {

  • line_size = getline(&line, &line_reserve, fd);

+ line_size = vobsub_getline(&line, &line_reserve, fd);

if (line_size < 0) {

break;

}

regards.

alper akcan "anhanguera"

Attachments (1)

vobsub.c.diff (596 bytes) - added by distchx@… 13 years ago.
patch file for #501

Download all attachments as: .zip

Change History (4)

Changed 13 years ago by distchx@…

patch file for #501

comment:1 Changed 13 years ago by distchx@…

comment:2 Changed 13 years ago by distchx@…

  • Summary changed from vobsub.c fails while compiling. to vobsub.c fails while compiling. + patch

comment:3 Changed 13 years ago by dominik@…

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in CVS (well, SVN now) for a long time.

Note: See TracTickets for help on using tickets.