[OmniOS-discuss] Using system's <limits.h> with the pakaged gcc48 on omnios 151014.

Peter Tribble peter.tribble at gmail.com
Mon Jan 16 11:33:40 UTC 2017


On Mon, Jan 16, 2017 at 8:17 AM, Rouven WEILER <Rouven_Weiler at gmx.net>
wrote:

> Hi all,
>
> I want to compile something with gcc48 package in the omnios pkg repo.
> Therefore it is necessary to use the PTHREAD_STACK_MIN type which is
> defined in the system's <limits.h>.
> The problem: gcc uses it's own one which does not include this type.
>
> Can anybody help me how to get that working?
> I have to admit I did not get any (for me) working info from the gcc web
> page.
>

Generally, gcc's notion of "fixed" includes is thoroughly broken. Even
toxic.
Whenever I build gcc myself these days I simply wipe out the erroneous
files.

(Dan - any chance of removing the include-fixed files from the package?)

So the following will help

rm -fr /opt/gcc-4.8.1/lib/gcc/i386-pc-solaris2.11/4.8.1/include-fixed

You may choose to alternatively move them out of the way, although 'pkg fix'
will put them back if you need them.

-- 
-Peter Tribble
http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://omniosce.org/ml-archive/attachments/20170116/6744e1a4/attachment.html>


More information about the OmniOS-discuss mailing list