Problem compiling Oleo v1.6

Problem compiling Oleo v1.6

Post by Chri » Wed, 25 Jan 1995 04:56:40



Hiya... I am having a problem compiling Oleo v1.6 ... the error follows:
(it is X-related, thus the post to here)

xrdb.c: In function `get_user_db':
xrdb.c:301: dereferencing pointer to incomplete type
make: *** [xrdb.o] Error 1

the relevant of xrdb.c follows:

298:#ifdef HAVE_X11R4
299:  xdefs = XResourceManagerString (display);
300:#else
301:  xdefs = display->xdefaults;
302:#endif

I am at a complete loss here, as my X programming is next to
non-existant, although, last night, I was compiling something else
X-related, and it also failed in the same place... The only recent change
I have made to my X stuff, is a change I have to the wchar_t variable in
one of the X???.h files, because it conflicted with stddef.h ... any
ideas?? TIA

Chris

 
 
 

Problem compiling Oleo v1.6

Post by Chri » Wed, 25 Jan 1995 08:07:30



[snip]

Quote:>>298:#ifdef HAVE_X11R4
>>299:  xdefs = XResourceManagerString (display);
>>300:#else
>>301:  xdefs = display->xdefaults;
>>302:#endif

>I simply made line 301 look like line 299.  (Or you could DEFINE HAVE_X11R4
>somewhere.)  I believe that line 301 is something for R3.

>I think it compiled after that.  Didn't care much for it though...probably
>cause I haven't read the docs yet :)

ahh... excellent stuff... thanks muchly (I was thinking of that - but I
had assumed exactly the opposite... that if I had X11R4, then do this
(which must have been a special case I presumed) ... else (ie.
X11R[1-3,56] does the other line) heh... thanks again

Quote:>    -Dan

Chris

 
 
 

Problem compiling Oleo v1.6

Post by Dan Newcom » Wed, 25 Jan 1995 01:37:23



>Hiya... I am having a problem compiling Oleo v1.6 ... the error follows:
>(it is X-related, thus the post to here)

I had the same problem...While my X programming is just starting, I was able
to fix this (mainly by luck)

Quote:>xrdb.c: In function `get_user_db':
>xrdb.c:301: dereferencing pointer to incomplete type
>make: *** [xrdb.o] Error 1
>the relevant of xrdb.c follows:
>298:#ifdef HAVE_X11R4
>299:  xdefs = XResourceManagerString (display);
>300:#else
>301:  xdefs = display->xdefaults;
>302:#endif

I simply made line 301 look like line 299.  (Or you could DEFINE HAVE_X11R4
somewhere.)  I believe that line 301 is something for R3.

I think it compiled after that.  Didn't care much for it though...probably
cause I haven't read the docs yet :)

        -Dan

--

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
"And the man in the mirror has sad eyes."       -Marillion

 
 
 

1. Problem Getting Oleo to compile

I am trying to compile oleo for X11 but it barfs mid compile.

I get this error message when I type make:

xrdb.c: In function `get_user_db':
xrdb.c:301: dereferencing pointer to incomplete type

BTW i am running linux 1.2.8 X11R6 and using gcc 2.5.8

I have included the function that does it in.

If anyone know how to fix this let me know please
thank you

Zach Kessin

--------------------cut here---------------------------
/*from xrdb.c*/
static XrmDatabase
get_user_db (display)
     Display *display;
{
  XrmDatabase db;
  char *xdefs;

#ifdef HAVE_X11R4
  xdefs = XResourceManagerString (display);
#else
  xdefs = display->xdefaults; /*this is the line that barfs*/
#endif

  if (xdefs != NULL)
    db = XrmGetStringDatabase (xdefs);
  else
    {
      char xdefault[MAXPATHLEN];

      gethomedir (xdefault);
      strcat (xdefault, ".Xdefaults");
      db = XrmGetFileDatabase (xdefault);
    }

  return db;

2. xl0 problem installing 4.0

3. SATAN v1.1.1 [released] and v1.1.4 [experimental] both do not compile on Redhat 6.0.

4. SLUGO:(Oahu,Hawaii)LUG

5. compiling oleo on Sun Sparc5 Solaris 2.4

6. HP DeskJet 540

7. Trouble compiling OLEO 1.6

8. Oubtfuls questions on test199 (from Redbook)???

9. help compiling oleo on linux

10. compiling Oleo ?

11. Help Compiling Oleo 1.6

12. Problems compiling v1.3.0

13. Problem compiling Httpd version v1.5a