Discussion:
[Dnsmasq-discuss] segmentation fault after upgrade to 2.77
AW
2017-08-21 07:47:19 UTC
Permalink
Hi!
Sorry for my bad formatting (somehow it looks much better in Yahoo!Mail's editor)... I hope i do it better this time...
I found a fix, but I dont fully understand it:
it seems like the off_t parameter is interpreted as 4B on my Aton N270 by the called function (queue_tftp()), but as 8B long during the preparation of the function call... LOL
maybe we found a compiler bug? or tftp.c is compiled with different defines than helper.c?
this is my patch:
--- Makefile.orig 2017-08-21 07:38:07.635653214 +0000
+++ Makefile 2017-08-21 07:37:51.332099592 +0000
@@ -24,7 +24,7 @@
 LOCALEDIR     = $(PREFIX)/share/locale
 BUILDDIR      = $(SRC)
 DESTDIR       = 
-CFLAGS        = -Wall -W -O2
+CFLAGS        = -Wall -W -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
 LDFLAGS       = 
 COPTS         = 
 RPM_OPT_FLAGS = 
Thx. Bye.-Arne

Loading...