Technical article 116902

OpenServer 5, GCC cannot find the standard libraries and/or header files.

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4OpenServer 5.0.5OpenServer 5.0.6OpenServer 5.0.7

Written · Last revised

Problem

I have installed gcc and/or g++ and am trying to compile a program that is using the standard tools. However, gcc cannot find these tools, such as stdio.h, stdarg.h and stdlib.h. Where can I obtain these tools?

Cause

These tools are part of the native OpenServer Development System or the SCO OpenServer Linker and Application Development Libraries. Either package must be installed on the system in order for gcc or g++ to access these tools.

Solution

The native OpenServer Development System and the SCO OpenServer
Linker and Application Development Libraries are located on the
OpenServer 5 installation CD.  Neither package installs by default
and the Development System requires a license to obtain the full
functionality of it.
However, if you do not wish to use the supported native cc or CC
compilers, you can  defer this licensing. Defering the licensing of
the Developement System will install the standard tools, but the cc
or CC compilers (and their components, such as make) will not be
usable.
To do the following:

1. Insert the OpenServer 5 installation CD and run "scoadmin software" or "custom" as root.

2. Select the "Software" menu and choose "Install new..."

3. Select "From <your host>" and select the appropriate CD-ROM drive. This will catalog the products on the CD and may take a minute to complete.

4. From the list that is displayed, select "OpenServer Development System" or "SCO OpenServer Linker and Application Development Libraries".

5. Highlight either one and select "Install".  If you have
   selected "OpenServer Development System", at some point during
   the installation, the system will ask you for a license. If
   you have a valid license, insert it here. If you do not have a
   license, select defer.

When this software is finished installing, you can quit the software manager and recompile your program using gcc or g++.

NOTE: The "ar" archiver for archiving or extracting "object" files to/from a
      ".a" archive is part of the SCO Development System but is not provided in
      the SCO OpenServer Linker and Application Development Libraries"
gcc installs differently on OpenServer 5.0.7, it is available on the
OpenServer 5.0.7 Installation CD and can be installed through the
SCOadmin Software Manager.  The skunkware package(s) for gcc do not
work properly on OpenServer 5.0.7.

See also

ta100501, "What is GNU/FSF software?"

From the Xinuos technical article database, record 116902. Reproduced with permission. The original is at www.sco.com/ta/116902, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.