Giter Site home page Giter Site logo

Comments (7)

native-api avatar native-api commented on June 16, 2024
./Modules/fcntlmodule.c:632:33: error: ‘I_PUSH’ undeclared (first use in this function)
  632 |     if (PyModule_AddIntMacro(m, I_PUSH)) return -1;
      |                                 ^~~~~~

Your stropts.h (where this macro is supposed to be defined) is broken or bogus.

Probably the latter since at my machine (Ubuntu 22.04), it's missing altogether and online search shows that it's not supposed to be present in Linux.

Check if you have such a file outside of the compiler's toolchain but on the compiler's search path (e.g. in /usr/local).

from pyenv.

BrentHuang avatar BrentHuang commented on June 16, 2024
./Modules/fcntlmodule.c:632:33: error: ‘I_PUSH’ undeclared (first use in this function)
  632 |     if (PyModule_AddIntMacro(m, I_PUSH)) return -1;
      |                                 ^~~~~~

Your stropts.h (where this macro is supposed to be defined) is broken or bogus.

Probably the latter since at my machine (Ubuntu 22.04), it's missing altogether and online search shows that it's not supposed to be present in Linux.

Check if you have such a file outside of the compiler's toolchain but on the compiler's search path (e.g. in /usr/local).

I find it. but /usr/include/stropts.h is an empty file, with 0 size.

from pyenv.

native-api avatar native-api commented on June 16, 2024

I find it. but /usr/include/stropts.h is an empty file, with 0 size.

Delete it.

from pyenv.

native-api avatar native-api commented on June 16, 2024

I find it. but /usr/include/stropts.h is an empty file, with 0 size.

Delete it.

Just in case, you can use dpkg -S <full path> to check if this file belongs to any package (see https://www.cyberciti.biz/faq/equivalent-of-rpm-qf-command/).

from pyenv.

BrentHuang avatar BrentHuang commented on June 16, 2024
hgc@hgc-H410M-H-V3:~$ dpkg -S /usr/include/stropts.h 
dpkg-query: no path found matching pattern /usr/include/stropts.h
hgc@hgc-H410M-H-V3:~$ 

from pyenv.

native-api avatar native-api commented on June 16, 2024
hgc@hgc-H410M-H-V3:~$ dpkg -S /usr/include/stropts.h 
dpkg-query: no path found matching pattern /usr/include/stropts.h
hgc@hgc-H410M-H-V3:~$ 

As I thought, looks like an accidentally created bogus file, should be safe to delete.

from pyenv.

BrentHuang avatar BrentHuang commented on June 16, 2024
hgc@hgc-H410M-H-V3:~$ dpkg -S /usr/include/stropts.h 
dpkg-query: no path found matching pattern /usr/include/stropts.h
hgc@hgc-H410M-H-V3:~$ 

As I thought, looks like an accidentally created bogus file, should be safe to delete.

yes, you are right.

from pyenv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.