Re: XDBA HELP

From: Donald M. Brown <u570382_at_beta.lanl.gov>
Date: 8 Feb 1995 18:30:11 GMT
Message-ID: <3hb2jj$400_at_newshost.lanl.gov>


In article <srwood.792255443_at_hubcap> srwood_at_hubcap.clemson.edu (Stephen Ross Wood) writes:
>
> I compiled it under Solaris 2.3, but it did a core dump everytime
>I tried to connect to a database.
>

For the record, I was able to compile it under Solaris 2.3 using gcc and it works great. I had to make the following changes during the make process, though. I hope this helps:

I'm not familiar with imake, but I looked into it and finally did the following:

  1. I ran xmkmf as described in the original instructions
  2. I edited the resulting Makefile as follows:

oz% diff Makefile.bak Makefile
128c128
< IMAKE_CMD = $(IMAKE) -DUseInstalled -I$(IRULESRC) $(IMAKE_DEFINES)

---

> IMAKE_CMD = $(IMAKE) -DUseInstalled=YES -I$(IRULESRC) $(IMAKE_DEFINES)
154c154 < CONFIGDIR = $(LIBDIR)/config ---
> CONFIGDIR = $(USRLIBDIR)/config
620c620 < $(CC) -o $_at_ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS) ---
> $(CC) -o $_at_ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS) $(ORACLE_HOME)/lib/__fstd.o
The -DUseInstalled=YES was to get Imake to stop complaining about redefining UseInstalled. The change to CONFIGDIR I inferred from your reply to my original question. Adding __fstd.o to the link is suggested for resolving -xcg92 problems when not using SunPro's SPARCcompiler. I am using gcc. 3. I also had to edit Rheostat.c and help_window_actions.c as follows: oz% diff Rheostat.c.bak Rheostat.c 57a58
> #define _XOPEN_SOURCE
This was so the #include <math.h> would include the macro for M_PI. oz% diff help_window_actions.c.bak help_window_actions.c 78d77 < else 79a79
> else
This was because I turned off debugging and the else was on the wrong side of the #ifdef statement. 4. I ran 'make Makefiles' 'make clean' 'make depend' 'make all' and it worked like it was supposed to. (gcc reported: gcc: language F not recognized) 5. I'm not and X expert, so it took me a little bit to find where to put the XDBA resource file (/usr/lib/X11/app-defaults). Don
Received on Wed Feb 08 1995 - 19:30:11 CET

Original text of this message