>>>>> "Narvaez," == Narvaez, Teresa <Teresa.Narvaez@stripped>
Narvaez,> Hello again,
Narvaez,> I wrote a little C program to make use of varargs and it compiled
Narvaez,> with no problems; so, I guess this means that gcc was correctly installed.
Narvaez,> Since my test program compiled with no C flags, I ended up editing the
Narvaez,> Makefile and built everying under client with no CFLAGS. Now, I have
Narvaez,> the following problem:
Narvaez,> gcc -o testhash testhash.o libmysys.a ../dbug/libdbug.a
Narvaez,> ../strings/libmystrings.a -l
Narvaez,> m -lpthread -lmach -lexc -lc
Narvaez,> collect2: ld returned 1 exit status
Narvaez,> *** Exit 1
The above problem means that gcc uses a 'stdarg.h' file, which doesn't
come with your gcc compiler. Please check if you have a stdarg.h
under your gcc-lib directory!
Narvaez,> According the man pages on va_start, it requires only one argument under
Narvaez,> Digital Unix
Narvaez,> 4.0D but all the MySQL source programs pass 2 arguments to va_start. Does
Narvaez,> mean that this code is not portable for Digital Unix? Has anyone managed to
Narvaez,> MySQL for digital Unix?
Did you check the man page for 'stdarg' and not 'varargs'?
In stdarg, va_start() will take 2 arguments. This is according to
ANSI C3.159-1989 .
Could you mail us your test program?