Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] [Wireshark-commits] rev 22661: /trunk/ /trunk/aclocal-fallba

From: "Luis EG Ontanon" <luis.ontanon@xxxxxxxxx>
Date: Mon, 27 Aug 2007 23:00:05 +0200
If you try to compile packet-user_encap.c do you get the same error
and epan/dfilter/dfilter-macro.c  what happens with that?

can you try
	void** sm = &(smi_modules);
and then passing sm to uat_new()

or cast it to (void*) instead of (void**)

or passing
&((void*)smi_modules)


On 8/27/07, Jaap Keuter <jaap.keuter@xxxxxxxxx> wrote:
> Hi,
>
> Sorry, no luck :-(
>
> Thanx,
> Jaap
>
>
> Luis EG Ontanon wrote:
> > I got it... Optimizer is smart enough to reduce struct smi_module_t {
> > char* name; } into char* but not insightfull enought to knwo it did it
> > itself.
> >
> > if you change (in line 179)
> >
> > typedef struct smi_module_t {
> >       char* name;
> > } smi_module_t;
> >
> > to
> >
> > typedef struct smi_module_t {
> >          void* dummy;
> >       char* name;
> > } smi_module_t;
> >
> >
> > Is the warning gone?
> >
> > Luis
> >
> >
> > On 8/27/07, Jaap Keuter <jaap.keuter@xxxxxxxxx> wrote:
> >> Hi,
> >>
> >> My build breaks on oids.c
> >>
> >> cc1: warnings being treated as errors
> >> oids.c: In function 'register_mibs':
> >> oids.c:464: warning: dereferencing type-punned pointer will break
> >> strict-aliasing rules
> >> oids.c:476: warning: dereferencing type-punned pointer will break
> >> strict-aliasing rules
> >> make[1]: *** [libwireshark_la-oids.lo] Error 1
> >> make[1]: Leaving directory `/home/jaap/src/wireshark/trunk/epan'
> >> make: *** [all-recursive] Error 1
> >>
> >> $ gcc -v
> >> Using built-in specs.
> >> Target: i486-linux-gnu
> >> Configured with: ../src/configure -v
> >> --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr
> >> --enable-shared --with-system-zlib --libexecdir=/usr/lib
> >> --without-included-gettext --enable-threads=posix --enable-nls
> >> --with-gxx-include-dir=/usr/include/c++/4.1.3 --program-suffix=-4.1
> >> --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug
> >> --enable-mpfr --enable-checking=release i486-linux-gnu
> >> Thread model: posix
> >> gcc version 4.1.3 20070812 (prerelease) (Debian 4.1.2-15)
> >>
> >> If I follow the tip on
> >> http://publib.boulder.ibm.com/infocenter/tpfhelp/current/index.jsp?topic=/com.ibm.ztpf-ztpfdf.doc_put.cur/gtpm1/m1rhpun.html
> >> but uat_new() isn't happy with that.
> >>
> >> Thanx,
> >> Jaap
> >>
> >> Luis EG Ontanon wrote:
> >>> This changes the configure scripits, you folks need to:
> >>> make mantainerclean
> >>> sh ./autogen.sh
> >>> ./configure
> >>> make
> >>>
> _______________________________________________
> Wireshark-dev mailing list
> Wireshark-dev@xxxxxxxxxxxxx
> http://www.wireshark.org/mailman/listinfo/wireshark-dev
>


-- 
This information is top security. When you have read it, destroy yourself.
-- Marshall McLuhan