Thanks Daniel,

I will take a look at it and create a patch.

Best,
Kapil

On Fri, Jun 19, 2015 at 11:17 AM, Daniel Schepler <dschep...@gmail.com>
wrote:

> Source: dmtcp
> Version: 2.3.1-6
> Severity: normal
>
> From my pbuilder build log, using a setup preferring glibc and gcc-defaults
> packages from experimental (sorry the messages are a bit mixed up because I
> was using a parallel build):
>
> ...
> g++ -I../../../jalib -I../../../include -I../../../include -I.
> -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat
> -Werror=format-security -DHAVE_CONFIG_H -fPIC -g -c -o eventwrappers.o
> event/eventwrappers.cpp
> event/eventwrappers.cpp: In function 'int eventfd(int, int)':
> event/eventwrappers.cpp:124:59: error: conflicting declaration of C
> function 'int eventfd(int, int)'
>  extern "C" int eventfd(EVENTFD_VAL_TYPE initval, int flags)
>                                                            ^
> In file included from event/eventconnection.h:56:0,
>                  from event/eventwrappers.h:27,
>                  from event/eventwrappers.cpp:31:
> /usr/include/x86_64-linux-gnu/sys/eventfd.h:34:12: note: previous
> declaration 'int eventfd(unsigned int, int)'
>  extern int eventfd (unsigned int __count, int __flags) __THROW;
>             ^
> In file included from event/eventwrappers.h:26:0,
>                  from event/eventwrappers.cpp:31:
> ../../../include/dmtcp.h:205:29: error: type of '& eventfd' is unknown
>       static __typeof__(&func) _real_##func = (__typeof__(&func)) -1;
>   \
>                              ^
> event/eventwrappers.h:41:23: note: in expansion of macro 'NEXT_FNC'
>  #define _real_eventfd NEXT_FNC(eventfd)
>                        ^
> event/eventwrappers.cpp:127:13: note: in expansion of macro '_real_eventfd'
>    int ret = _real_eventfd(initval, flags);
>              ^
> ../../../include/dmtcp.h:205:63: error: type of '& eventfd' is unknown
>       static __typeof__(&func) _real_##func = (__typeof__(&func)) -1;
>   \
>                                                                ^
> event/eventwrappers.h:41:23: note: in expansion of macro 'NEXT_FNC'
>  #define _real_eventfd NEXT_FNC(eventfd)
>                        ^
> event/eventwrappers.cpp:127:13: note: in expansion of macro '_real_eventfd'
>    int ret = _real_eventfd(initval, flags);
>              ^
> ../../../include/dmtcp.h:206:43: error: type of '& eventfd' is unknown
>       if (_real_##func == (__typeof__(&func)) -1) {
>   \
>                                            ^
> event/eventwrappers.h:41:23: note: in expansion of macro 'NEXT_FNC'
>  #define _real_eventfd NEXT_FNC(eventfd)
>                        ^
> event/eventwrappers.cpp:127:13: note: in expansion of macro '_real_eventfd'
>    int ret = _real_eventfd(initval, flags);
>              ^
> ../../../include/dmtcp.h:210:40: error: type of '& eventfd' is unknown
>         _real_##func = (__typeof__(&func)) (*dlsym_fnptr) (RTLD_NEXT,
> #func);\
>                                         ^
> event/eventwrappers.h:41:23: note: in expansion of macro 'NEXT_FNC'
>  #define _real_eventfd NEXT_FNC(eventfd)
>                        ^
> event/eventwrappers.cpp:127:13: note: in expansion of macro '_real_eventfd'
>    int ret = _real_eventfd(initval, flags);
>              ^
> event/eventwrappers.cpp:127:41: error: expression cannot be used as a
> function
>    int ret = _real_eventfd(initval, flags);
>                                          ^
> Makefile:157: recipe for target 'eventwrappers.o' failed
> make[4]: *** [eventwrappers.o] Error 1
> make[4]: Leaving directory '/tmp/buildd/dmtcp-2.3.1/src/plugin/ipc'
> make[4]: Entering directory '/tmp/buildd/dmtcp-2.3.1/src/plugin/alloc'
> g++ -I../../../jalib -I../../../include -I../../../include
> -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat
> -Werror=format-security -DHAVE_CONFIG_H -fPIC -g -c -o mallocwrappers.o
> mallocwrappers.cpp
> g++ -I../../../jalib -I../../../include -I../../../include
> -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat
> -Werror=format-security -DHAVE_CONFIG_H -fPIC -g -c -o mmapwrappers.o
> mmapwrappers.cpp
> g++ -g -O2 -fstack-protector-strong -Wformat -Werror=format-security
> -DHAVE_CONFIG_H -fPIC -g -Wl,-z,relro -o
> ../../../lib/dmtcp/libdmtcp_alloc.so mallocwrappers.o mmapwrappers.o
> -shared -Wl,--unresolved-symbols=ignore-all -ldl -lpthread
> make[4]: Leaving directory '/tmp/buildd/dmtcp-2.3.1/src/plugin/alloc'
> make[4]: Entering directory '/tmp/buildd/dmtcp-2.3.1/src/plugin/dl'
> g++ -I../../../jalib -I../../../include -I../../../include
> -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat
> -Werror=format-security -DHAVE_CONFIG_H -fPIC -g -c -o dlwrappers.o
> dlwrappers.cpp
> g++ -g -O2 -fstack-protector-strong -Wformat -Werror=format-security
> -DHAVE_CONFIG_H -fPIC -g -Wl,-z,relro -o ../../../lib/dmtcp/libdmtcp_dl.so
> dlwrappers.o -shared -Wl,--unresolved-symbols=ignore-all -ldl
> make[4]: Leaving directory '/tmp/buildd/dmtcp-2.3.1/src/plugin/dl'
> make[3]: Leaving directory '/tmp/buildd/dmtcp-2.3.1/src/plugin'
> make[3]: Entering directory '/tmp/buildd/dmtcp-2.3.1/src'
> g++ -DHAVE_CONFIG_H -I. -I../include  -I../include -I../jalib
> -D_FORTIFY_SOURCE=2 -fPIC -g -O2 -fstack-protector-strong -Wformat
> -Werror=format-security -MT dmtcpmessagetypes.o -MD -MP -MF
> .deps/dmtcpmessagetypes.Tpo -c -o dmtcpmessagetypes.o dmtcpmessagetypes.cpp
> mv -f .deps/dmtcpmessagetypes.Tpo .deps/dmtcpmessagetypes.Po
> g++ -DHAVE_CONFIG_H -I. -I../include  -I../include -I../jalib
> -D_FORTIFY_SOURCE=2 -fPIC -g -O2 -fstack-protector-strong -Wformat
> -Werror=format-security -MT coordinatorapi.o -MD -MP -MF
> .deps/coordinatorapi.Tpo -c -o coordinatorapi.o coordinatorapi.cpp
> mv -f .deps/coordinatorapi.Tpo .deps/coordinatorapi.Po
> g++ -DHAVE_CONFIG_H -I. -I../include  -I../include -I../jalib
> -D_FORTIFY_SOURCE=2 -fPIC -g -O2 -fstack-protector-strong -Wformat
> -Werror=format-security -MT uniquepid.o -MD -MP -MF .deps/uniquepid.Tpo -c
> -o uniquepid.o uniquepid.cpp
> mv -f .deps/uniquepid.Tpo .deps/uniquepid.Po
> g++ -DHAVE_CONFIG_H -I. -I../include  -I../include -I../jalib
> -D_FORTIFY_SOURCE=2 -fPIC -g -O2 -fstack-protector-strong -Wformat
> -Werror=format-security -MT shareddata.o -MD -MP -MF .deps/shareddata.Tpo
> -c -o shareddata.o shareddata.cpp
> mv -f .deps/shareddata.Tpo .deps/shareddata.Po
> g++ -DHAVE_CONFIG_H -I. -I../include  -I../include -I../jalib
> -D_FORTIFY_SOURCE=2 -fPIC -g -O2 -fstack-protector-strong -Wformat
> -Werror=format-security -MT util_exec.o -MD -MP -MF .deps/util_exec.Tpo -c
> -o util_exec.o util_exec.cpp
> mv -f .deps/util_exec.Tpo .deps/util_exec.Po
> g++ -DHAVE_CONFIG_H -I. -I../include  -I../include -I../jalib
> -D_FORTIFY_SOURCE=2 -fPIC -g -O2 -fstack-protector-strong -Wformat
> -Werror=format-security -MT util_gen.o -MD -MP -MF .deps/util_gen.Tpo -c -o
> util_gen.o util_gen.cpp
> mv -f .deps/util_gen.Tpo .deps/util_gen.Po
> g++ -DHAVE_CONFIG_H -I. -I../include  -I../include -I../jalib
> -D_FORTIFY_SOURCE=2 -fPIC -g -O2 -fstack-protector-strong -Wformat
> -Werror=format-security -MT util_init.o -MD -MP -MF .deps/util_init.Tpo -c
> -o util_init.o util_init.cpp
> mv -f .deps/util_init.Tpo .deps/util_init.Po
> g++ -DHAVE_CONFIG_H -I. -I../include  -I../include -I../jalib
> -D_FORTIFY_SOURCE=2 -fPIC -g -O2 -fstack-protector-strong -Wformat
> -Werror=format-security -MT jalibinterface.o -MD -MP -MF
> .deps/jalibinterface.Tpo -c -o jalibinterface.o jalibinterface.cpp
> mv -f .deps/jalibinterface.Tpo .deps/jalibinterface.Po
> g++ -DHAVE_CONFIG_H -I. -I../include  -I../include -I../jalib
> -D_FORTIFY_SOURCE=2 -fPIC -g -O2 -fstack-protector-strong -Wformat
> -Werror=format-security -MT processinfo.o -MD -MP -MF .deps/processinfo.Tpo
> -c -o processinfo.o processinfo.cpp
> mv -f .deps/processinfo.Tpo .deps/processinfo.Po
> rm -f libdmtcpinternal.a
> ar cru libdmtcpinternal.a dmtcpmessagetypes.o coordinatorapi.o uniquepid.o
> shareddata.o util_exec.o util_gen.o util_init.o jalibinterface.o
> processinfo.o
> ar: `u' modifier ignored since `D' is the default (see `U')
> ranlib libdmtcpinternal.a
> gcc -DHAVE_CONFIG_H -I. -I../include  -I../include -I../jalib
> -D_FORTIFY_SOURCE=2 -fPIC -g -O2 -fstack-protector-strong -Wformat
> -Werror=format-security -MT syscallsreal.o -MD -MP -MF
> .deps/syscallsreal.Tpo -c -o syscallsreal.o syscallsreal.c
> In file included from syscallsreal.c:46:0:
> syscallwrappers.h:368:62: warning: 'struct sigvec' declared inside
> parameter list
>    int _real_sigvec(int sig, const struct sigvec *vec, struct sigvec
> *ovec);
>                                                               ^
> syscallwrappers.h:368:62: warning: its scope is only this definition or
> declaration, which is probably not what you want
> syscallsreal.c:691:63: warning: 'struct sigvec' declared inside parameter
> list
>  int _real_sigvec(int signum, const struct sigvec *vec, struct sigvec
> *ovec) {
>                                                                ^
> syscallsreal.c:691:5: error: conflicting types for '_real_sigvec'
>  int _real_sigvec(int signum, const struct sigvec *vec, struct sigvec
> *ovec) {
>      ^
> In file included from syscallsreal.c:46:0:
> syscallwrappers.h:368:7: note: previous declaration of '_real_sigvec' was
> here
>    int _real_sigvec(int sig, const struct sigvec *vec, struct sigvec
> *ovec);
>        ^
> Makefile:814: recipe for target 'syscallsreal.o' failed
> make[3]: *** [syscallsreal.o] Error 1
> make[3]: Leaving directory '/tmp/buildd/dmtcp-2.3.1/src'
> Makefile:981: recipe for target 'all-recursive' failed
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory '/tmp/buildd/dmtcp-2.3.1/src'
> Makefile:104: recipe for target 'dmtcp' failed
> make[1]: *** [dmtcp] Error 2
> make[1]: Leaving directory '/tmp/buildd/dmtcp-2.3.1'
> debian/rules:46: recipe for target 'build-stamp' failed
> make: *** [build-stamp] Error 2
> dpkg-buildpackage: error: debian/rules build gave error exit status 2
> --
> Daniel Schepler
>

Reply via email to