f



need help with Motif 1.1 code compile!

Hello,

I'm trying to get a program working that was written in 1993 for X11R5,
Motif 1.1 and tested on SunOS 4.1. My build machine is running 2.4.18
linux kernel with Debian GNU/Linux distro (unstable branch), XFree86
4.3.0.dfsg.1-8 Xserve; I have the Open Motif 2.2.3-1 shared libraries
installed as well as the Lesstif 1.2 development library and header
files which contains static libraries and header files for libXm and
libMrm. The code for the program, xnetrekm, can be downloaded here:

http://ftp.netrek.org/pub/netrek/clients/xnetrekm/xnetrekm1.1.tar.Z

It is a small download - only 35K.

Following the instructions in the README for COMPILING I edited the
Imakefile and changed the following to be:
CC = /usr/bin/gcc
XMINCLUDE = -I/usr/include/Xm
XMLIB = -L/usr/lib -lXm

I then did: xmkmf

This resulted in a fatal error:

netrek:~/xnetrekm/build/xnetrekm1.1# xmkmf
mv -f Makefile Makefile.bak
imake -DUseInstalled -I/usr/X11R6/lib/X11/config
In file included from /usr/X11R6/lib/X11/config/Imake.tmpl:1802,
from Imakefile.c:33:
Imakefile:32: arguments given to macro `DependTarget'
imake: Exit code 1.
Stop.

I looked at /usr/X11R6/lib/X11/config/Imake.tmpl but didn't know how to
proceed to fix this.
I've never used xmkmf or compiled Motif apps before :)

The lesstif docs say to use mxmkmf but this program was not included
with the Debian lesstif-dev package. Will using lesstif solve this
compile problem? If so what should I add to the Imakefile so that it
uses lesstif.

If anyone can try the code and see if you can get it working I'd really
appreciate it.

Regards,
Zach
netrek@gmail.com

0
Zach
12/11/2004 7:14:31 PM
comp.windows.x 1388 articles. 1 followers. Post Follow

4 Replies
329 Views

Similar Articles

[PageSpeed] 49

Zach wrote:

> I'm trying to get a program working that was written in 1993 for X11R5,
> Motif 1.1 and tested on SunOS 4.1. 

<snip lengthy tale of woe>

Even if you get the Makefile to work, that code is not going to compile
with any recent (or even not so recent) version of gcc.

See for yourself by trying this:

gcc -Wall -c xnetrekm.c -o xnetrekm.o

Ouch!

Why are you trying to compile such an anicent version? According to
their website they have much more recent ones available...
0
Chris
12/12/2004 3:23:58 AM
Zach wrote:

> I'm trying to get a program working that was written in 1993 for
X11R5,
> Motif 1.1 and tested on SunOS 4.1. My build machine is running 2.4.18
> linux kernel with Debian GNU/Linux distro (unstable branch), XFree86
> 4.3.0.dfsg.1-8 Xserve; I have the Open Motif 2.2.3-1 shared libraries
> installed as well as the Lesstif 1.2 development library and header
> files which contains static libraries and header files for libXm and
> libMrm. The code for the program, xnetrekm, can be downloaded here:
>
> http://ftp.netrek.org/pub/netrek/clients/xnetrekm/xnetrekm1.1.tar.Z

Rename xnetrekm.SAMPLE.ad to XNetrekM.ad an use the Imakefile below.
You will
have to fix lots of bugs in that old-fashioded code, however. YMMV.

BTW, xmkmf is not fart os Motif/Lesstif. It is part of the standard X
distribution. Lesstif used to provide a "mxmkmf" script.

---8<--- cut here
XCOMM
XCOMM Imakefile for XNetrekM.
XCOMM
XCOMM Add str.c str.o if you do not have strdup or strstr.
XCOMM

#ifndef XmClientLibs
#define XmClientLibs            -lXm -lXp $(XTOOLLIB) $(XLIB)
#endif

#ifndef XmClientDepLibs
#define XmClientDepLibs         $(DEPXTOOLLIB) $(DEPXLIB)
#endif

#ifndef MrmClientLibs
#define MrmClientLibs           -lXm -lMrm $(XTOOLLIB) $(XLIB)
#endif

#ifndef MrmClientDepLibs
#define MrmClientDepLibs        $(DEPXTOOLLIB) $(DEPXLIB)
#endif

#if defined(SunArchitecture) && (OSMajorVersion > 4) && !HasGcc
MY_EXTRA_LIB = -ldl  /* SUNWspro/cc needs this */
#else
MY_EXTRA_LIB =
#endif
SRCS = connect.c metaserver.c mesg.c popen.c strutil.c
xnetrekm.c
OBJS = connect.o metaserver.o mesg.o popen.o strutil.o
xnetrekm.o
PROGRAMS = xnetrekm
DEPLIBS = XmClientDepLibs $(DEPXMULIB)
LOCAL_LIBRARIES = XmClientLibs $(MY_EXTRA_LIB) $(XMULIBONLY)

ComplexProgramTarget(xnetrekm)
InstallAppDefaults(XNetrekM)
---8<--- cut here

0
nojunk
12/13/2004 12:48:57 PM
Thanks! So where do I get mxmkmf from then? Maybe I must download
and compile this seperately. I have Xfree86 4.2 installed but there is
no mxmkmf.

Regards,
Zach

0
Zach
12/13/2004 7:55:57 PM
mxmkmf used to be distributed with LessTif. It is (was)
a modified version of xmkmf (a shell script) that runs
imake forcing the loading of LessTif's versions of
Motif.rules and Motif.tmpl. Ask about it in the LessTif
mailing list (look at http://www.LessTif.org).

--- Casantos

0
nojunk
12/17/2004 10:52:20 AM
Reply:

Similar Artilces:

1 - 1, 1 -1, 1-1, 1
Hi, I have a question regarding lexical analysis. I recently came across a bug in our lexical analyser in phc (www.phpcompiler.org), that I am unsure how to solve. This is the problem: our current definition for integer constant looks something like INT ([1-9][0-9]*)|0 In particular, note that it does not allow for an (optional) "+" or "-" at the start of the integer. This means that the strings "1 - 1", "1 -1" and "1-1" all generate the same sequence of three tokens INT(1), OP(-), INT(1), for which the syntax analyser generates the subtr...

Displaying x^1 as x^-1 and not as 1/x
I was having hard time getting Mathematica to display x^-1 as x^-1 and not as 1/x. So I tried Maple 14, and it also does the same. So I thought I ask the maple experts here if there is a way to do this in Maple. This was my orginal question, I am posting it here for the Maple group. When I type x^-1 Maple replies 1/x Is there a way to tell Maple to *display* terms with negative powers as x^-n and not as 1/x^n ? (i.e keep the term just like it would appear on paper). Another example, suppose I type expr = a*x^-2 + b *x^-1 + The reason I want to do this,...

1.1.1.1 ?
hi my firewall logs dropped packets from an internal IP address trying to contact 1.1.1.1 through port 9999. Any ideas whether 1.1.1.1 is valid IP? and what is port 9999?? thanks mike wrote: > hi > > my firewall logs dropped packets from an internal IP address trying to > contact 1.1.1.1 through port 9999. Any ideas whether 1.1.1.1 is valid > IP? and what is port 9999?? > thanks These trojans *BlitzNet*, *Backdoor.Oracle*, *Backdoor.Spadeace* uses port 9999 -- S.S. "StarScripter" <Star@privacy.net> wrote in message news:<bv8ejj$p54t3$1@ID-185702.new...

Request 4 info: 1.7.x, 1.8.x, 1.9.x versions of code?
--Apple-Mail-1--447725689 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii I would like to have someone from the MIT Kerberos team or in the know, = please describe each version or the purpose behind each. Why are the = older versions being kept and updated, instead of just the newest = version? I think I know the answer, but, I wondered if a description or = the purpose of each version exists somewhere. Thank you, Tareq --Apple-Mail-1--447725689-- ...

how to "(1-3*x^2)/(1-3*x+x^2+2*x^3) => 1/(1-2*x) + x/(1-x-x^2)"?
hi normal(1/(1-2*x) + x/ (1-x-x^2),expanded); 1/(1-2*x) + x/(1-x-x^2) => (1-3*x^2)/(1-3*x+x^2+2*x^3) how to do the reverse? dillogimp@gmail.com writes: > normal(1/(1-2*x) + x/ (1-x-x^2),expanded); > 1/(1-2*x) + x/(1-x-x^2) => (1-3*x^2)/(1-3*x+x^2+2*x^3) > how to do the reverse? convert(%,parfrac,x); -- Joe Riel ...

x - 1 = x
What languages might use a scheme similar to this? Could I build my own? x = x - (x+1) + x + 2: Numbers: 101 (TM) Code. -100=-101+1==-99-1===-100 -099=-101+2==-98-1===-99 -098=-101+3==-97-1===-98 -097=-101+4==-96-1===-97 -096=-101+5==-95-1===-96 -095=-101+6==-94-1===-95 -094=-101+7==-93-1===-94 -093=-101+8==-92-1===-93 -092=-101+9==-91-1===-92 -091=-101+10==-90-1===-91 -090=-101+11==-89-1===-90 -089=-101+12==-88-1===-89 -088=-101+13==-87-1===-88 -087=-101+14==-86-1===-87 -086=-101+15==-85-1===-86 -085=-101+16==-84-1===-85 -084=-101+17==-83-1===-84 -083=-101+18==-82-1===-83 -082=-101+19==-81-1...

plot 1, -1, 1, -1, -1
Hi, How to plot those numbers in a rectangle style? thanks x = linspace(-4*pi,4*pi,1000); y = sin(x); plot(x,sign(y)), axis([-12 12 -2 2]) PZ <patrick.zou@gmail.com> wrote in message <d64c545f-f2ac-4f87-af89-051bda896707@x6g2000vbg.googlegroups.com>... > Hi, > > How to plot those numbers in a rectangle style? > > thanks help stairs stairs([-1 1 -1 1 -1 1]) hth Jos ...

how to tell Mathematica to display x^-1 as x^-1 and not as 1/x
Hello; When I type x^-1 Mathematica replies 1/x Is there a way to tell Mathematica to *display* terms with negative powers as x^-n and not as 1/x^n ? (i.e keep the term just like it would appear on paper). Another example, suppose I type expr = a*x^-2 + b *x^-1 + The reason I want to do this, is just for display purposes. When I print the expression on the screen, I'd like it to look like x^-1 and not like 1/x (to better match how the expression look like in the textbook) I am trying to avoid having to convert everything to a string, and force the f...

how to tell Mathematica to display x^-1 as x^-1 and not as 1/x
Nasser, >Is there a way to tell Mathematica to >*display* terms with negative >powers as x^-n and not as 1/x^n ? There are many things that you will have to consider, but here goes a start: MakeBoxes[Power[x_, y_?(NumberQ[#] && Negative[#] &)], TraditionalForm] := SuperscriptBox[MakeBoxes[x, TraditionalForm], MakeBoxes[y, TraditionalForm]] MakeBoxes[Times[c_, p : Power[x_, y_?(NumberQ[#] && Negative[#] &)]], TraditionalForm] := If[OrderedQ[{c, p}], RowBox[{MakeBoxes[c, TraditionalForm], MakeBoxes[p, TraditionalForm]}...

Help construct a tree 1 -> 1.1 -> 1.2 -> 2 -> 2.1 -> 2.1.1 etc HELP !!!!!!!
Folks I need help. I have a view or(Text file) as follows: '1 2.1 1.1.1 1.1.1.1 2.2.1 1.3 2 Dim Parent() As String Dim Level1() As String Dim Level2() As String Dim Level3() As String etc .. How can I construct a tree. parent, children, grand children etc... and also figure out # of children # of grand children etc Thanks "Mos" <lndebug@gmail.com> wrote in message news:875cd1df-7605-45ab-9f7b-f1edec25d47b@r34g2000vbi.googlegroups.com... > Folks I need help. I have a view or(Text file) as follows: > > '1 > 2.1 > 1.1.1 > 1....

Help construct a tree 1 -> 1.1 -> 1.2 -> 2 -> 2.1 -> 2.1.1 etc HELP !!!!!!!
Borland Guru's I need help I have a text file as follows: 1 2 1.1 1.1.1 3.3 2.3 etc I cannot use a control active x tree I need to read this file and 1 is a parent 1.1 is a child of parent 1 and 2 is a parent 2.3 is a child of parent 2 and construct in search a way using arrays or probably a recursive function No xml parsing just read a file. Does any body have a function "Mos" <lndebug@gmail.com> wrote in message news:c1aaeb20-3c1f-408d-9986-bb8d28a87509@s31g2000vbp.googlegroups.com... > I have a text file as follows: > 1 > 2 > 1.1 >...

Help construct a tree 1 -> 1.1 -> 1.2 -> 2 -> 2.1 -> 2.1.1 etc HELP !!!!!!!
Folks I need help. I have a view or(Text file) as follows: '1 2.1 1.1.1 1.1.1.1 2.2.1 1.3 2 Dim Parent() As String Dim Level1() As String Dim Level2() As String Dim Level3() As String etc .. How can I construct a tree. parent, children, grand children etc... and also figure out # of children # of grand children etc Thanks "Mos" <lndebug@gmail.com> wrote in message news:875cd1df-7605-45ab-9f7b-f1edec25d47b@r34g2000vbi.googlegroups.com... > Folks I need help. I have a view or(Text file) as follows: > > '1 > 2.1 > 1.1.1 > 1....

Help needed - Safari, Software update and help a mess
(Apologies first for any dupe since this didn't make it to Giganews from original posting via Newguy yesterday afternoon) Hi, Not sure where to start on this oddity. What is the common thread/file that would disable Safari, cause the software update option to stall and say there is no internet connection, and also fumble the Mac Help and give me the attached message when I ask "Where are the safari bookmarks" and then select the lines seen? Suffice it to say that it all started last night after Comcast deleted one of my IP addresses which was a hold over from a previou...

(x
I feel like a small child asking this, but how can I get Mathematica to say (x - 1) instead of (-1 + x), or to give me 4 (1 - q) instead of the doubly annoying -4 (-1 + q) ? In brief, given the choice, I prefer to look at subtraction rather than negation. The binary operator instead of the unary. I'm not asking Mathematica to read my mind about the way I want every possible expression to look, rather I am hoping to find out how to transform something I don't like into something I like, in a way that is guaranteed not to change the value of the expression. R...

Web resources about - need help with Motif 1.1 code compile! - comp.windows.x

Compile time - Wikipedia, the free encyclopedia
In computer science , compile time refers to either the operations performed by a compiler (the "compile-time operations"), programming language ...

Information Is Power: Facebook Develops ThreatData To Compile Data On Web Threats
Part of being able to combat malware, phishing, and other online threats is gathering and consolidating as much data on those threats as possible, ...

Credit Suisse compiles yuan winners and losers list: report
... the lowers. A list of Australian winners and losers from the decision by China’s government to devalue the renminbi has reportedly been compiled ...

Beijing residents compile own death toll in flooding
Beijing residents fed up with a lack of official updates are compiling their own death tolls for last weekend's deadly floods in the capital, ...

New report compiles 25 years of UFO sightings in Canada
A Winnipeg group called Ufology Research has compiled and analyzed reported sightings of UFOs across Canada over the last 25 years.

China to compile new edition of cancer atlas
China to compile new edition of cancer atlas People's Daily Online ... Chinese Academy of Sciences and Chinese Center for Disease Control and ...

Googlers compile holiday search tips in rap video to help Santa with flight
Google is in full holiday swing (what, you haven't heard?). They just posted, on YouTube, a rap video that was put together by its employees, ...

Popular Dating Site Compiles 15 Stupid Reasons To Date A Lawyer
A new listicle describes a really horrible person to date and then says, "We think lawyers are probably this awful, go date them!"

Author Compiles Lively L.A. Times History Lesson
Long before Eli Broad , Rupert Murdoch and people willing to pay $140 million for the Las Vegas Review-Journal, there was Harrison Gray Otis ...

Japan, China compile written pledge to improve ties ahead of summit
Japan and China reached a rare written agreement on Nov. 7 to improve relations strained by a territorial dispute over the Senkaku Islands in ...

Resources last updated: 1/30/2016 8:12:33 PM