WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: problem finding limits.h when building a python extension  (Read 2999 times)

Offline mjtrac

  • Newbie
  • *
  • Posts: 4
problem finding limits.h when building a python extension
« on: March 31, 2012, 07:11:27 PM »
I'm trying to build a python extension, psycopg2, on tiny core, and I run into a problem where gcc says it cannot find a file, limits.h, that ls says exists on the system. 

There is some sort of issue between syslimits.h and limits.h involving recursive calls, but I've never had this problem on regular linux.  Anyone have any suggestions?  Thanks in advance.

(Output from gcc is attached.)

Offline maro

  • Hero Member
  • *****
  • Posts: 1228
Re: problem finding limits.h when building a python extension
« Reply #1 on: March 31, 2012, 08:19:49 PM »
Not sure about it, but as soon as I hit such a problem I run (without much thinking and even properly reading the error message):
    tce-load -wi linux-headers-KERNEL

Offline mjtrac

  • Newbie
  • *
  • Posts: 4
Re: problem finding limits.h when building a python extension
« Reply #2 on: March 31, 2012, 09:18:38 PM »
Thanks.  Unfortunately, that tells me that linux-headers-3.0.3-tinycore is already installed.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: problem finding limits.h when building a python extension
« Reply #3 on: April 01, 2012, 04:19:08 AM »
It sounds like you don't have the full compiletc set installed. limits.h should be in /usr/include.
The only barriers that can stop you are the ones you create yourself.