Whilst trying to compile dladm with "-g", I received this error:
...
Undefined                       first referenced
 symbol                             in file
brlsum_t_is_too_large               dladm.o
brsum_t_is_too_large                dladm.o
ld: fatal: symbol referencing errors. No output written to dladm

Looking in dladm.c, I find this:

+#ifndef lint
+        /* This is a compile-time assertion; optimizer normally fixes this */
+        extern void brlsum_t_is_too_large(void);
+
+        if (sizeof (*brlsum)>  sizeof (state->ls_prevstats))
+                brlsum_t_is_too_large();
+#endif

... given that this prohibits compiling with -g,
can someone explain why this belongs in dladm.c?

Darren


_______________________________________________
networking-discuss mailing list
networking-discuss@opensolaris.org

Reply via email to