From: Marcelo R. J. <mro...@us...> - 2015-02-05 00:45:05
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Portable UPnP SDK". The branch, master has been updated via 3ef669562a05a3f858811acc082c744e0a8a1ef7 (commit) via 1c68ad459c2837a2e29f229df4a8cfbd2f5fd746 (commit) via e092dab188ecab2e4b8d7c5711f57525e1d48d29 (commit) from d7fc945211635adf8a125a24ce9aad65462abfe7 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 3ef669562a05a3f858811acc082c744e0a8a1ef7 Author: Marcelo Roberto Jimenez <mro...@us...> Date: Wed Feb 4 22:34:08 2015 -0200 Bug tracker #124 Build fails with --enable-debug Build environment Fedora 21 X86-64 gcc 4.9.2 how to repeat $ ./configure --enable debug $ make libtool: compile: gcc -dhave_config_h -i. -i.. -i../upnp/inc -i./inc -i../threadutil/inc -i../ixml/inc -i./src/inc -pthread -g -o2 -wall -mt src/api/libupnp_la-upnpstring.lo -md -mp -mf src/api/.deps/libupnp_la-upnpstring.tpo -c src/api/upnpstring.c -fpic -dpic -o src/api .libs/libupnp_la-upnpstring.o src/api/UpnpString.c:47:16: error: expected identifier or '(' before 'extension' extern char *strndup(const char *string, size_t __n); ^ Makefile:1016: recipe for target 'src/api/libupnp_la-UpnpString.lo' failed Reason for failure Build enables -O2 optimization flags which causes the inclusion of a macro implementation of strndup from include/bits/string2.h. Workarounds Disable optimization when configuring or making: $ configure CFLAGS='-g -pthread -O0' --enable-debug $ make or $ configure --enable-debug $ make CFLAGS='-g -pthread -O0' Define NO_STRING_INLINES $ export CFLAGS="-DNO_STRING_INLINES -O2" $ ./configure --enagble-debug $ make Fix * Don't declare strndup in src/api/UpnpString.c if it exists (cherry picked from commit bc335f5df798924c36aa821b1e92a98753554d34) commit 1c68ad459c2837a2e29f229df4a8cfbd2f5fd746 Author: Marcelo Roberto Jimenez <mro...@us...> Date: Wed Feb 4 22:25:15 2015 -0200 Looks like I did something wrong two commits ago (cherry picked from commit cf31814e559f87d943df6d0e18553cfcd161e13c) commit e092dab188ecab2e4b8d7c5711f57525e1d48d29 Author: Marcelo Roberto Jimenez <mro...@us...> Date: Wed Feb 4 16:41:18 2015 -0200 Update .gitignore (cherry picked from commit 3b0fd070fdaf9d1c34dd6c959facb94c37da3711) ----------------------------------------------------------------------- Summary of changes: .gitignore | 8 ++++++++ ChangeLog | 39 +++++++++++++++++++++++++++++++++++++++ THANKS | 1 + build/inc/autoconfig.h | 2 +- build/inc/upnpconfig.h | 2 +- upnp/src/api/UpnpString.c | 4 +--- 6 files changed, 51 insertions(+), 5 deletions(-) hooks/post-receive -- Portable UPnP SDK |