Getting the error “getopt.h:85:29: fatal error: getopt-pfx-core.h: No such file or directory” while trying to compile libvirt [closed]

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
-1
down vote

favorite












In trying to compile an old version of libvirt (to see if I can get some old patches up to date, see https://www.redhat.com/archives/libvir-list/2014-March/msg00106.html), I get the error:



getopt.h:85:29: fatal error: getopt-pfx-core.h: No such file or directory



when I run make (after running ./autogen.sh).



This is on libvirt commit aa50a5c.



In searching for this error ("fatal error: getopt-pfx-core.h: No such file or directory") I find very few results, but it does not seem specific to libvirt, which makes sense since the error seems to be something with getopt.







share|improve this question














closed as off-topic by Jeff Schaller, phk, Michael Homer, G-Man, sebasth Jan 22 at 7:43


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions describing a problem that can't be reproduced and seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." – Jeff Schaller, phk, Michael Homer, G-Man, sebasth
If this question can be reworded to fit the rules in the help center, please edit the question.
















    up vote
    -1
    down vote

    favorite












    In trying to compile an old version of libvirt (to see if I can get some old patches up to date, see https://www.redhat.com/archives/libvir-list/2014-March/msg00106.html), I get the error:



    getopt.h:85:29: fatal error: getopt-pfx-core.h: No such file or directory



    when I run make (after running ./autogen.sh).



    This is on libvirt commit aa50a5c.



    In searching for this error ("fatal error: getopt-pfx-core.h: No such file or directory") I find very few results, but it does not seem specific to libvirt, which makes sense since the error seems to be something with getopt.







    share|improve this question














    closed as off-topic by Jeff Schaller, phk, Michael Homer, G-Man, sebasth Jan 22 at 7:43


    This question appears to be off-topic. The users who voted to close gave this specific reason:


    • "Questions describing a problem that can't be reproduced and seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." – Jeff Schaller, phk, Michael Homer, G-Man, sebasth
    If this question can be reworded to fit the rules in the help center, please edit the question.














      up vote
      -1
      down vote

      favorite









      up vote
      -1
      down vote

      favorite











      In trying to compile an old version of libvirt (to see if I can get some old patches up to date, see https://www.redhat.com/archives/libvir-list/2014-March/msg00106.html), I get the error:



      getopt.h:85:29: fatal error: getopt-pfx-core.h: No such file or directory



      when I run make (after running ./autogen.sh).



      This is on libvirt commit aa50a5c.



      In searching for this error ("fatal error: getopt-pfx-core.h: No such file or directory") I find very few results, but it does not seem specific to libvirt, which makes sense since the error seems to be something with getopt.







      share|improve this question














      In trying to compile an old version of libvirt (to see if I can get some old patches up to date, see https://www.redhat.com/archives/libvir-list/2014-March/msg00106.html), I get the error:



      getopt.h:85:29: fatal error: getopt-pfx-core.h: No such file or directory



      when I run make (after running ./autogen.sh).



      This is on libvirt commit aa50a5c.



      In searching for this error ("fatal error: getopt-pfx-core.h: No such file or directory") I find very few results, but it does not seem specific to libvirt, which makes sense since the error seems to be something with getopt.









      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 22 at 18:15

























      asked Jan 15 at 0:46









      Azendale

      3412514




      3412514




      closed as off-topic by Jeff Schaller, phk, Michael Homer, G-Man, sebasth Jan 22 at 7:43


      This question appears to be off-topic. The users who voted to close gave this specific reason:


      • "Questions describing a problem that can't be reproduced and seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." – Jeff Schaller, phk, Michael Homer, G-Man, sebasth
      If this question can be reworded to fit the rules in the help center, please edit the question.




      closed as off-topic by Jeff Schaller, phk, Michael Homer, G-Man, sebasth Jan 22 at 7:43


      This question appears to be off-topic. The users who voted to close gave this specific reason:


      • "Questions describing a problem that can't be reproduced and seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." – Jeff Schaller, phk, Michael Homer, G-Man, sebasth
      If this question can be reworded to fit the rules in the help center, please edit the question.




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote



          accepted










          Make sure that you are building with a clean tree.



          In this case, I had files from a build of a much newer commit.



          Running:



          (warning, this deletes stuff in the working tree that is not in git!)



          git reset --hard HEAD
          git clean -fdx
          git clean -fdX


          and then doing the build again worked.






          share|improve this answer





























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote



            accepted










            Make sure that you are building with a clean tree.



            In this case, I had files from a build of a much newer commit.



            Running:



            (warning, this deletes stuff in the working tree that is not in git!)



            git reset --hard HEAD
            git clean -fdx
            git clean -fdX


            and then doing the build again worked.






            share|improve this answer


























              up vote
              0
              down vote



              accepted










              Make sure that you are building with a clean tree.



              In this case, I had files from a build of a much newer commit.



              Running:



              (warning, this deletes stuff in the working tree that is not in git!)



              git reset --hard HEAD
              git clean -fdx
              git clean -fdX


              and then doing the build again worked.






              share|improve this answer
























                up vote
                0
                down vote



                accepted







                up vote
                0
                down vote



                accepted






                Make sure that you are building with a clean tree.



                In this case, I had files from a build of a much newer commit.



                Running:



                (warning, this deletes stuff in the working tree that is not in git!)



                git reset --hard HEAD
                git clean -fdx
                git clean -fdX


                and then doing the build again worked.






                share|improve this answer














                Make sure that you are building with a clean tree.



                In this case, I had files from a build of a much newer commit.



                Running:



                (warning, this deletes stuff in the working tree that is not in git!)



                git reset --hard HEAD
                git clean -fdx
                git clean -fdX


                and then doing the build again worked.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Jan 21 at 17:40









                Jeff Schaller

                31.8k848109




                31.8k848109










                answered Jan 15 at 0:48









                Azendale

                3412514




                3412514












                    Popular posts from this blog

                    How to check contact read email or not when send email to Individual?

                    Bahrain

                    Postfix configuration issue with fips on centos 7; mailgun relay