Hello Gregory,

Thanks for this tip. Actually, we have seen this problem and I thought it was
fixed through a homemade RPM patch in which BUFSIZ is replaced with 8192. It
now looks like our patch did not completeley solve the problem however, so
I'll look into it.

-- 
[EMAIL PROTECTED]
Development Team, Application Services
Cable & Wireless Deutschland GmbH


On Fri, Jul 12, 2002, Warnes, Gregory R wrote:
>> Actually, rpm is displaying a warning message that I missed. "Target
>> buffer overflow".   This signifies that a macro is expanding to a string
>> larger than the available buffer and is getting truncated.
>>
>> The problem is that on Solaris BUFSIZ is defined as 1024, rather than 8192
>> as on Linux, which is too small for the __build_pre macro.
>>
>> To overcome this problem I made two changes to the openpkg.spec file:
>> 1) I added a call to find and perl to replace all reference to 'BUFSIZ'
>> with 'RPMBUFSIZ'.
>> 2) I added "-DBUFSIZ=1024" to the appropriate CFLAGS variable definition.
>>
>> After doing this I no longer have the problem, however, I expect that
>> would be better accomplished using a patch and  a check in the configure
>> script to do the right thing.
>> 
>> -Greg
>>
>>>>    rpm-tmp.22379: line 24: unexpected EOF while looking 
>>>> for matching `"'
>>>>    rpm-tmp.22379: line 38: syntax error: unexpected end of file
>>>> 

Attachment: msg00170/pgp00000.pgp
Description: PGP signature

Reply via email to