Solved

Solaris 2.5.1 Compile problems

Posted on 1998-10-19
3
312 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
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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

730 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