DragonFly BSD
DragonFly kernel List (threaded) for 2005-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

samba3 and gcc34

From: Glenn Johnson <glennpj@xxxxxxxxxxx>
Date: Wed, 05 Jan 2005 14:13:55 -0600

If I compile samba3 with gcc34, I get crashs in smbd due to a stack overflow. Compiling with -fno-stack-protector fixes that. There is no problem with samba2 compiled with default gcc34 however.

I was not successful in finding any information about there being a problem with samba3 and gcc34 with ssp so I compiled samba3 on my Gentoo Linux system with -fstack-protector in CFLAGS to see if the same problem would manifest. It did not. Here is the output of 'gcc -v' (wrapped for readibility) on my Gentoo Linux system, in case it is important:

   Reading specs from /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/specs
   Configured with:
   --enable-version-specific-runtime-libs --prefix=/usr
   --host=i686-pc-linux-gnu --disable-altivec --enable-nls
   --without-included-gettext --enable-__cxa_atexit
   --enable-clocale=gnu --with-system-zlib --disable-checking
   --disable-werror --disable-libunwind-exceptions --enable-shared
   --enable-threads=posix --disable-multilib --disable-libgcj
   Thread model: posix
   gcc version 3.4.3 20041125 (Gentoo Linux 3.4.3-r1, ssp-3.4.3-0,

This seems to indicate that the problem is with DragonFly's gcc34 and not samba3 but I really do not know. I understand that compiling with gcc34 is not supported but I wanted to pass this information on.


[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]