On Thu, Mar 23, 2000 at 01:39:46AM +0000, John Swinbank wrote:
> c++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -I./../rfc822 -I./../rfc2045 -I./.. -
> Wall -c reformail.C
> reformail.C: In function `void split(int, char **, int)':
> reformail.C:1379: conversion to `char *' from `const char *' discards
> qualifiers
> make[2]: *** [reformail.o] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [build-stamp] Error 2
> Build command 'cd maildrop-0.75 && dpkg-buildpackage -b -uc' failed.
> E: Child process failed
This is induced by:
putenv(buffer);
where buffer can only be converted to (const char *)
Apparently, glibc 2.1.2's putenv prototype was "putenv(const char*)", but
now it's "putenv(char*)"
I've temporarily fixed this by strdup()ing the buffer. But I don't see
why the prototype of putenv() has changed, and I suspect a glibc
problem. Would someone from the glibc team care to comment?
SRH
--
Steve Haslam, Production Engineer, Excite UK steve.haslam@excitehome.net
i sit and stare at the gun pointed at my head
and think about all the possibilities
Attachment:
pgpDUAU5RcaxF.pgp
Description: PGP signature