Subject: Re: build.sh botch on /usr/sbin/mount_smbfs
To: George Michaelson <ggm@apnic.net>
From: Martin Husemann <martin@duskware.de>
List: current-users
Date: 08/12/2003 12:36:05
On Tue, Aug 12, 2003 at 01:41:02PM +1000, George Michaelson wrote:
> /usr/src/obj/tooldir.NetBSD-1.6W-i386/bin/i386--netbsdelf-gcc -O2  -Wall -Wstric
> t-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-uniniti
> alized -Wreturn-type -Wswitch -Wshadow  -Werror   -I/usr/src/sys -I/usr/src/dist
> /smbfs/include -nostdinc -isystem
> /usr/src/obj/destd/usr/src/sbin/mount_smbfsir.i386/usr/include  -c    /
> usr/src/dist/smbfs/lib/smb/nbns_rq.c/usr/src/dist/smbfs/lib/smb/nbns_rq.c: In
> function `nbns_rq_prepare':/usr/src/dist/smbfs/lib/smb/nbns_rq.c:244: warning:
> dereferencing type-punned po inter will break strict-aliasing rules
> *** Error code 1

I'm confused:

/usr/tools/bin/sparc64--netbsd-gcc -O -ffixed-g4 -pipe  -mcmodel=medlow -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-uninitialized -Wreturn-type -Wswitch -Wshadow  -Werror   -I/usr/src/sys -I/usr/src/dist/smbfs/include -nostdinc -isystem /usr/include  -c    /usr/src/dist/smbfs/lib/smb/nbns_rq.c
/usr/tools/bin/sparc64--netbsd-gcc   -o mount_smbfs -nostdlib  -Wl,-dynamic-linker=/libexec/ld.elf_so -Wl,-rpath-link,/lib:/usr/lib  -R/lib  -L/lib /usr/lib/crt0.o /usr/lib/crti.o /usr/lib/crtbegin.o mount_smbfs.o rcfile.o ctx.o cfopt.o subr.o nls.o rap.o mbuf.o rq.o file.o print.o kiconv.o nb.o nb_name.o nb_net.o nbns_rq.o -lutil -L/usr/lib -L/usr/lib  -lgcc -lc -lgcc /usr/lib/crtend.o /usr/lib/crtn.o

(yes, I did test before commiting!)

I'm even more confused as the code realy looks like it has problems.

Martin