Openlook / GCC / Solaris 2.3 -- Question ?????

Openlook / GCC / Solaris 2.3 -- Question ?????

Post by Bryan LittleFiel » Sun, 21 Aug 1994 04:41:57

I have a program I'm that I'm trying to get working on a Solaris system
that only has a GCC compiler.. I've got the program working on Solaris
systems using the SunPro compiler..

Anyway, I'm using the variable argument stuff and GCC does not like it..
I include the "<vararg.h>" include file etc..

It turns out the problem is the <Xol/OpenLook.h> include has the include
of the <stdlib.h> include file which redefines the vararg stuff so that
it won't work with my program for now..

I managed to finally get it to compile and run by using a "-Dlint" define
passed to the GCC compiler .. But I want this to be a clean compile, this
is a hack that I don't want to have to depend on it..
So finally, the question..
What should I do to make GCC compile with the "<vararg.h>" include file ??

Here is simple test case I used, try with the OpenLook.h and with out it.
Using GCC on a Solaris system of course..

#include <Xol/OpenLook.h>

#include <stdio.h>
#include <math.h>
#include <ctype.h>

#include <varargs.h>

    va_list     vl;
    char        *fmt;
    char        buff[256];

    fmt = va_arg(vl, char *);
    (void)vsprintf(buff, fmt, vl);
    (void)fprintf(stderr, "%s", buff);


   test_func("1:print this\n");
   test_func("2:print this\n");



Openlook / GCC / Solaris 2.3 -- Question ?????

Post by Barbara Wagn » Sun, 21 Aug 1994 11:06:45

Received: from by (4.1/SMI-4.1)
        id AA03961; Fri, 19 Aug 94 21:57:21 EDT
Received: from by (4.0/SMI-4.1)
        id AA18599; Fri, 19 Aug 94 21:55:22 EST

Received: by
        ( id AA04370; Fri, 19 Aug 94 22:03:35 -0400
Date: Fri, 19 Aug 94 22:03:35 -0400

Status: R

Hi folks,
I am trying to install TeX(or Latex, amstex) on Solaris2.3 (which should be compatible
with SunOS4.x, if run in the "compatible mode").
So far I found the files
at :/packages/TeX/systems/unix/unixkit
                      & /packages/TeX/systems/web2c

and managed to unpack them. However, when I try to tex a file

it just says: Can't find format file!

It is also mentioned in the README files that the first to gz files are
compiled from web2c-6.1 source codes.

What is the problem? Are the lib files not compatible with the other files?
I have also looked for lib-6.1.tar.gz file using archie but was unsuccessful.

If anybody has any idea how to help me please write email to

AND ..THANK YOU in advance!



1. HELP: Solaris 2.3 <---> Solaris 2.3 PPP link problems

Hi all,

We are attempting to link up two Solaris 2.3 networks via PPP and we are
running into some problems.  The link initialy comes up and we are able to ping
both sides for about 30 seconds or so and then nothing.  Does anyone have a
clue what could be hapening? We are stumped here.


- Steve
 Always going where no one has gone before...


2. x.400/smtp gateway

3. HELP: Solaris 2.3 <---> Solaris 2.3 PPP link Problems

4. Install help

5. ghostview with Solaris 2.3, gcc and gs261.

6. Newbie. What is CSH? Easy to learn?

7. Problems with gcc ver 2.5.6 on solaris 2.3

8. e-mail system setup

9. GCC 2.6.2 binaries required for Solaris 2.3

10. Help! need gcc for Solaris 2.3

11. Copmiling w/gcc under Solaris 2.3 (w/lex & yacc)

12. Compiling sendmail 8.6.9 under Solaris 2.3/gcc 2.6.2

13. Help compiling gcc 2.5.8 w/Solaris 2.3 (SunOS 5.3)