[erlang-bugs] ERTS_DIST_MSG_DBG flag bug

Ádám Gólya <>
Mon Sep 17 08:19:05 CEST 2012


Hi,

I can't complie branch maint with CFLAGS="-D ERTS_DIST_MSG_DBG".

$ sudo CFLAGS="-D ERTS_DIST_MSG_DBG" ./configure

$ sudo make
...
beam/dist.c: In function ‘dist_msg_dbg’:
beam/dist.c:70:5: error: too many arguments to function
‘erts_decode_dist_ext_size’
beam/external.h:178:6: note: declared here
make[3]: *** [obj/x86_64-unknown-linux-gnu/opt/smp/dist.o] Error 1
make[3]: Leaving directory
`/home/golya/ewc/erlangbuild/git/otp/erts/emulator'
make[2]: *** [opt] Error 2
make[2]: Leaving directory
`/home/golya/ewc/erlangbuild/git/otp/erts/emulator'
make[1]: *** [smp] Error 2
make[1]: Leaving directory `/home/golya/ewc/erlangbuild/git/otp/erts'
make: *** [emulator] Error 2

$ git branch
* maint

I made little change, and its works:

$ git diff
diff --git a/erts/emulator/beam/dist.c b/erts/emulator/beam/dist.c
index 025258e..b08db7b 100644
--- a/erts/emulator/beam/dist.c
+++ b/erts/emulator/beam/dist.c
@@ -67,7 +67,7 @@ dist_msg_dbg(ErtsDistExternal *edep, char *what, byte
*buf, int sz)
 {
     byte *extp = edep->extp;
     Eterm msg;
-    Sint size = erts_decode_dist_ext_size(edep, 0);
+    Sint size = erts_decode_dist_ext_size(edep);
     if (size < 0) {
        erts_fprintf(stderr,
                     "DIST MSG DEBUG: erts_decode_dist_ext_size(%s)
failed:\n",

Regards,
Ádám
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20120917/d773f7e8/attachment.html>


More information about the erlang-bugs mailing list