Solved

Solaris 2.5.1 Compile problems

Posted on 1998-10-19
3
320 Views
Last Modified: 2013-12-16
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
0
Comment
Question by:qcoles
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 51

Accepted Solution

by:
ahoffmann earned 100 total points
ID: 1812261
gcc comes with it's own "usr/include" which are patched approproate for several platforms. It's somewhere in:
  <your gcc dir>/lib/gcc-lib/2.7.2.1/sparc-sun-solaris2.5/include

Using gcc -v  should report this directory before all other include directories, if not use following options:

    -I -I<path above>

This could be defined in Makefile at CFLAGS= macro
0
 
LVL 2

Expert Comment

by:blowfish
ID: 1812262
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
0
 

Author Comment

by:qcoles
ID: 1812263
Thank you very much.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

615 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question