Small bug - missing semicolon in libupnp-1.3.1/threadutil/inc/iasnprintf.h
Garaschenko Slava <[email protected]> Fri, 29 Sep 2006 09:37:44 -0700 (PDT)
| Newsgroups | gmane.linux.upnp-sdk.general |
|---|---|
| Message-ID | <[email protected]> |
--0-791961679-1159547864=:67922
Content-Type: text/plain; charset=iso-8859-1
Content-Id:
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
As result of missing semicolon in iasnprintf.h it's
impossibly to build library on some compilers -
gcc-2.96 for example (most RH old releases). Then you
try to "make" it's appear this error:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D
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
make[2]: Leaving directory
`/root/tmp/UPnP/tmp/libupnp-1.3.1/threadutil'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/root/tmp/UPnP/tmp/libupnp-1.3.1'
make: *** [all] Error 2
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D
This patch will be correcting this bug:
diff -r -c
./old/libupnp-1.3.1/threadutil/inc/iasnprintf.h
./new/libupnp-1.3.1/threadutil/inc/iasnprintf.h
*** ./old/libupnp-1.3.1/threadutil/inc/iasnprintf.h =20
Sun Feb 26 22:29:12 2006
--- ./new/libupnp-1.3.1/threadutil/inc/iasnprintf.h =20
Wed Sep 27 22:13:30 2006
***************
*** 49,55 ****
EXPORT int iasnprintf(char **ret,
int incr,
int max,
! const char * fmt, ...)
#if (__GNUC__ >=3D 3)
__attribute__((format (__printf__, 4, 5)));
#endif
--- 49,55 ----
EXPORT int iasnprintf(char **ret,
int incr,
int max,
! const char * fmt, ...);
#if (__GNUC__ >=3D 3)
__attribute__((format (__printf__, 4, 5)));
#endif
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
After this, the library is compiled without problem
also with gcc 2.96, and possibly many other compillers
with strong checking of program structure.
Vyacheslav Garashchenko
Kiev, Ukraine
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around=20
http://mail.yahoo.com=20
--0-791961679-1159547864=:67922
Content-Type: text/x-patch; name="libupnp-1.3.1.diff"
Content-Description: 474672830-libupnp-1.3.1.diff
Content-Disposition: inline; filename="libupnp-1.3.1.diff"
diff -r -c ./old/libupnp-1.3.1/threadutil/inc/iasnprintf.h ./new/libupnp-1.3.1/threadutil/inc/iasnprintf.h
*** ./old/libupnp-1.3.1/threadutil/inc/iasnprintf.h Sun Feb 26 22:29:12 2006
--- ./new/libupnp-1.3.1/threadutil/inc/iasnprintf.h Wed Sep 27 22:13:30 2006
***************
*** 49,55 ****
EXPORT int iasnprintf(char **ret,
int incr,
int max,
! const char * fmt, ...)
#if (__GNUC__ >= 3)
__attribute__((format (__printf__, 4, 5)));
#endif
--- 49,55 ----
EXPORT int iasnprintf(char **ret,
int incr,
int max,
! const char * fmt, ...);
#if (__GNUC__ >= 3)
__attribute__((format (__printf__, 4, 5)));
#endif
--0-791961679-1159547864=:67922
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
--0-791961679-1159547864=:67922
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
UPnP-SDK-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/upnp-sdk-discuss
--0-791961679-1159547864=:67922--