Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#27 varargs problem on debian-stable config

open
nobody
None
5
2006-05-02
2006-05-02
Anonymous
No

build error under debian stable, i386:

make[2]: Entering directory
`/scr/tmp/libupnp-1.3.1/threadutil'
source='src/iasnprintf.c' object='src/iasnprintf.lo'
libtool=yes \ DEPDIR=.deps depmode=gcc /bin/sh ../config.aux/depcomp \ /bin/sh ../libtool --mode=compile --tag=CC gcc
-DHAVE_CONFIG_H -I. -I. -I.. -I../upnp/inc -I./inc
-I./src/inc -DNO_DEBUG -DNDEBUG -pthread -g -O2 -Os
-Wall -c -o src/iasnprintf.lo src/iasnprintf.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../upnp/inc -I./inc
-I./src/inc -DNO_DEBUG -DNDEBUG -pthread -g -O2 -Os
-Wall -c src/iasnprintf.c
-Wp,-MD,src/.deps/iasnprintf.TPlo -fPIC -DPIC -o
src/.libs/iasnprintf.o
src/iasnprintf.c: In function `iasnprintf':
src/iasnprintf.c:57: parse error before `{'
inc/iasnprintf.h:56: parm types given both in parmlist
and separately
make[2]: *** [src/iasnprintf.lo] Error 1

Seems like ./configure missed something needed
to deal with varargs for this file...

Discussion

  • Logged In: NO

    I got through this by adding a ; after the prototype for
    the varargs function on line 56 of threadutil/inc/iasnprintf.h