On Mon, Apr 26, 2004, Michael Schloh von Bennewitz wrote:
>On Sun, Apr 25, 2004, Mike's List wrote:
>> Attempted to openpkg rpm --rebuild /2.0/wget-1.9.1-2.0.0.src.rpm
>> Also, with wget-1.9.1-20040207.src.rpm, same error message.
>>
>> In file included from /usr/include/sys/reg.h:13,
>>                  from /usr/include/sys/regset.h:24,
>>                  from /usr/include/sys/ucontext.h:21,
>>                  from /usr/include/sys/signal.h:240,
>>                  from /usr/include/signal.h:27,
>>                  from main.c:45:
>> /usr/include/ia32/sys/reg.h:300: error: parse error before "upad128_t"
>> /usr/include/ia32/sys/reg.h:302: error: parse error before '}' token
>>
>Hmm that's interesting. I built wget-1.9.1-20040207.src.rpm with both gcc
>3.3.3 and gcc 3.4.0 on a Solaris 9 x86 machine, and didn't see these errors.
>Do you have a similar configuration or are you using an older compiler or
>version of Solaris?

I've found more often than not that some header file isn't included, in
this case probably in /usr/include/ia32/sys/reg.h.  I would look around
lines 300 -> 302 in that file for the definition of upad128_t which you
will probably find defined with a reference to a structure or something
else that's defined in another header file.

I usually find these in a two-step process.  Make a list of all possible
headers, then grep through those headers for the missing definition:

gfind /usr/include -follow -name '*.h' > /tmp/include.list
xargs grep $pattern /dev/null < /tmp/include.list 

The -follow argument to gnu-find takes care of symlink hell on systems like
SCO OpenServer.

The /dev/null argument to grep insures at least two files so that the file
name will always appear in the output.

Bill
--
INTERNET:   [EMAIL PROTECTED]  Bill Campbell; Celestial Systems, Inc.
UUCP:               camco!bill  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/

Just because you do not take an interest in politics doesn't mean politics
won't take an interest in you. -- Pericles
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
Developer Communication List                   [EMAIL PROTECTED]

Reply via email to