There was an #endif missing on the bottom but when I added that it compiled perfectly. MANY THANKS!
Randy ---begin quoted text--- > Delivered-To: [EMAIL PROTECTED] > Date: Mon, 3 Jul 2006 08:52:02 +1000 > From: Adam Nielsen <[EMAIL PROTECTED]> > To: "Randy Parker" <[EMAIL PROTECTED]> > Cc: [email protected] > Subject: Re: [Samba] snprintf.c:(.text+0x14): undefined reference to > `VA_COPY' > X-Mailer: Sylpheed-Claws 1.9.100 (GTK+ 2.6.1; i686-pc-linux-gnu) > X-Scanned-By: MIMEDefang 2.51 on UQ Mailhub on 130.102.148.128 > X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlx=0 > adultscore=0 adjust=0 reason=mlx engine=3.1.0-0606280001 > definitions=main-0607020002 > > > Trying to compile Samba 2.2.8a on Solaris 10. > > > > Changing Samba versions is not an option. Too many > > production systems hanging off that PDC. > > > > Samba 2.2.8a > > SunOS smb244-1 5.10 Generic sun4u sparc SUNW,Sun-Fire-V210 > > Tried gcc 3.3.2 and 2.95.3. > > > > Everything compiles but when it tries to link I get > > the following error. I searched the archives but > > didn't find any answer for this. How do I fix this? > > It looks like there have been some changes to lib/snprintf.c to fix > this - what happens if you add this code near the top of snprintf.c? > > #ifndef VA_COPY > #ifdef HAVE_VA_COPY > #define VA_COPY(dest, src) va_copy(dest, src) > #else > #ifdef HAVE___VA_COPY > #define VA_COPY(dest, src) __va_copy(dest, src) > #else > #define VA_COPY(dest, src) (dest) = (src) > #endif > #endif > > You might even just want to force that last definition, which doesn't > rely on any external functions. > > Cheers, > Adam. ---end quoted text--- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
