A slew of errors when compiled in OS 10.3.8/9

Help
Benzmacx
2005-04-19
2013-04-22
  • Benzmacx
    Benzmacx
    2005-04-19

    After i do the ./configure command I execute the Make command and it makes everything up till tkIntDecls.h where i get allot of what looks like this (actually looks like its complaining about syntax)

    tkIntDecls.h:667: error: parse error before '*' token
    tkIntDecls.h:676: error: parse error before '*' token
    tkIntDecls.h:676: warning: data definition has no type or storage class
    tkIntDecls.h:679: error: parse error before '*' token
    tkIntDecls.h:815: error: parse error before "GC"

    there is alot before that and a lot after that, then tkPlatecls.h and tkStublib.c do the same thing except they only have a few errors. then i get this and it fails to compile:

    make[4]: *** [tkStubLib.lo] Error 1
    make[3]: *** [all-recursive] Error 1
    make[2]: *** [all-recursive] Error 1
    make[1]: *** [all-recursive] Error 1
    make: *** [all-recursive] Error 1

    Any idea whats going on here?

     
    • Sean Morrison
      Sean Morrison
      2005-04-19

      If I had to take a quick guess, I'd say it sounds like you don't have the X11 developer package installed.  Apple doesn't install that by default, it's provided on the Apple Developer CD.  Once installed, the X11 headers/libraries will get properly detected and compilation should succeed.

       
    • Benzmacx
      Benzmacx
      2005-04-19

      Thats what i thought too becasue i did see someting of X11 flash by quick at the start of the errors, but I have X11 installed.  Do I need something other than the standard X11 1.0 from apple?

       
      • Sean Morrison
        Sean Morrison
        2005-04-19

        Yes, Apple separated out the X11 developer headers and libraries into it's own software development kit.  It's only provided on Apple's Developer CDs and even then, you have to enable it under the "Customize" section.  I sent you a message via e-mail to your sf.net benzmacx alias .. see that message for more details.

         
    • Benzmacx
      Benzmacx
      2005-04-19

      That helped alot, this time the compile ran for probably around 10 min before giving me a slew of errors looking similar to this:

      if_ogl.c: In function `ogl_write':
      if_ogl.c:1600: error: dereferencing pointer to incomplete type
      if_ogl.c:1600: error: dereferencing pointer to incomplete type
      if_ogl.c:1600: error: dereferencing pointer to incomplete type
      if_ogl.c:1600: error: `False' undeclared (first use in this function)
      if_ogl.c:1605: error: dereferencing pointer to incomplete type
      if_ogl.c:1614: error: `GL_FRONT' undeclared (first use in this function)
      if_ogl.c:1617: error: dereferencing pointer to incomplete type
      if_ogl.c:1625: error: dereferencing pointer to incomplete type
      if_ogl.c:1625: error: dereferencing pointer to incomplete type
      if_ogl.c:1629: error: dereferencing pointer to incomplete type
      if_ogl.c:1637: error: dereferencing pointer to incomplete type
      if_ogl.c:1637: error: `None' undeclared (first use in this function)
      if_ogl.c: In function `ogl_writerect':

      make ends with this:
      make[3]: *** [if_ogl.lo] Error 1
      make[2]: *** [all] Error 2
      make[1]: *** [all-recursive] Error 1
      make: *** [all-recursive] Error 1

      this looks like an error with openGL but I have not modified openGL at all from what came with 10.3.9.

       
      • Sean Morrison
        Sean Morrison
        2005-04-20

        Hmm.. Did you re-run ./configure after installing the Apple X11 SDK?  That's what looks like is going wrong (run it again just for kicks).. it didn't find the GL/gl.h or GL/glx.h header which should be in /usr/X11R6/include/GL after installing the Apple X11 SDK.  Without rerunning configure, the makefiles are not aware that you now have newly installed headers -- it didn't matter for the X11 headers because they are not being detected yet, but the OpenGL headers are.  Configure should say something like Checking for GL/gl.h header ... yes.

         
    • Benzmacx
      Benzmacx
      2005-04-20

      Well i assumed it was the same deal as before, that i did not have a software component so I logged on to ADC and downloaded the OpenGL tools and installed them but I am still getting the same errors...

       
    • Benzmacx
      Benzmacx
      2005-04-20

      Well i just reran ./configure and noticed that at the begining it says "Checking for X11R6.... Not Found". 

      Strange because i just went to find GL to make sure that I actually had it, and X11R6 was there so was include and so was GL...

      I will give it a restart and try again later, maybe reapply the X11 SDK

       
      • Sean Morrison
        Sean Morrison
        2005-04-20

        I assume you mean the directory checks near the beginning?

        checking for X11 in /usr/X11R6... found
        checking for /usr/local... found
        checking for freeware in /usr/freeware... not found
        checking for X11 in /opt/X11R6... not found
        checking for X11 in /opt/X11... not found
        checking for X11 in /usr/X11... not found

        Later on in the libraries section, it checks for specific X11 libraries:

        checking for XCreateWindow in -lX11... yes
        checking for XShapeCombineMask in -lXext... yes
        checking for XGetExtensionVersion in -lXi... yes
        checking for IceOpenConnection in -lICE... yes
        checking for SmcOpenConnection in -lSM... yes
        checking for XtMalloc in -lXt... yes
        checking for XmuLookupStandardColormap in -lXmu... yes

        And then in the headers section, it checks for X11/Xlib.h:

        checking X11/Xlib.h usability... yes
        checking X11/Xlib.h presence... yes
        checking for X11/Xlib.h... yes

        If you don't see those same results, it probably means that you either didn't install the right X11 SDK or something else is going on.  If you really do have a /usr/X11R6/include/X11/Xlib.h header file, then the SDK is likely installed and "something else" is going on.  If that's the case, try forcing configure to use it:

        ./configure CPPFLAGS="-I/usr/X11R6/include" LDFLAGS="-L/usr/X11R6/lib"

        If you can post the entire output of your configure and compile, that might help see what's going on.  Your config.log file would be very helpful too.  You could paste them up to something like a website (e.g. http://pastebin.com\) or upload it as files via anonymous ftp to ftp.brlcad.org to the incoming directory.

        With the Apple X11 SDK installed on a stock system, the build steps really should just be:

        ./autogen.sh
        ./configure
        make
        sudo make install

        to run:

        export PATH=/usr/brlcad/bin:$PATH
        mged

         
    • Benzmacx
      Benzmacx
      2005-04-20

      Ok well this time i was paying attention  to the output and noticed that when it checks for GL/gl.h and GL/GLx.h it says (cached) no.

      I assume that means that it is not actually checking for the .h files but assuming they are not there because they were not before. So i deleted the config.cache files and ran it agian and i am now installing.

      Thanks for all the help!
      Jim