Link to home
Start Free TrialLog in
Avatar of qcoles
qcoles

asked on

Solaris 2.5.1 Compile problems

I am having a hard time compiling anything on my solaris machine. I am either getting a 'TopFrame' Error or a 'builtin_va_alist' error.  I've read that for both errors it says not to use the 'I/usr/include' with gcc but I don't know where to change that or where it is being declared. With sendmail I am using the Build script that came with the distribution and with Tcp wrappers 'make sunos5' brings the same error.  Where do I specify the options with gcc? I am using gcc version 2.7.2.  Thanks in advance
ASKER CERTIFIED SOLUTION
Avatar of ahoffmann
ahoffmann
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Prior to using gcc, you must build a locally-modified copy of most of the Sun provided C-header files.  You will do this using a script provided with the gcc package;

    #  cd /opt/GCC2721/bin
    #  ./just-fixinc

To use the compiler, add /opt/GCC2721/bin and /usr/ccs/bin to your PATH.  To check the installation, type "gcc -v".    

Once you have run the just-fixinc script, gcc will have a locally-modified copy of the header files installed in a place where gcc can automatically find them, ie, you should not have to modify any make files;  

  /opt/GCC2721/lib/gcc-lib/2.7.2.1/sparc-sun-solaris2.5/include


Hope this helps,

--frankf
Avatar of qcoles
qcoles

ASKER

Thank you very much.