pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
va_arg and netbsd-6 ...
All,
are there any known issues with stdarg constructs on netbsd-6?
I've been scratching my head about pkg/46555, where an invocation of the form
(command.c:658)
char cksum_b64[ SZ_BASE64_E( EVP_MAX_MD_SIZE ) ];
[...]
/* return constants */
>> snet_writef( sn, "%s %s %o %d %d %d %" PRIofft "d %s\r\n",
"f", av[ 2 ],
DEFAULT_MODE, DEFAULT_UID, DEFAULT_GID,
st.st_mtime, st.st_size, cksum_b64 );
-- eight argument strings, eight arguments -- will fail with SIGSEV in
(libsnet/snet.c:275)
switch ( *++format ) {
case 's' :
p = va_arg( vl, char * );
>> len = strlen( p );
SNET_WBUFGROW( len );
memcpy( cur, p, len );
cur += len;
break;
because va_arg() returns 0. A Radmind package built on netbsd-5 works fine
on netbsd-5 and netbsd-6; I tried building the package on netbsd-6 with
-O0, to no avail.
Searching gnats, I found toolchain/45138. Would that be related?
Any ideas?
hauke
--
The ASCII Ribbon Campaign Hauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
Respect for open standards Ruf +49-6151-16-3281
Home |
Main Index |
Thread Index |
Old Index