* [9fans] Help! Compiling sam on Linux running IceWM
@ 2002-04-12 15:05 Matt Senecal
2002-04-12 15:33 ` Boyd Roberts
0 siblings, 1 reply; 6+ messages in thread
From: Matt Senecal @ 2002-04-12 15:05 UTC (permalink / raw)
To: 9fans
I need help from those of you who have compiled sam on Linux. I'm
trying to, and it's not working properly. I downloaded the sam source
code and Linux make script from:
http://home.fr.inter.net/boyd/code/repo/
When compiling everything goes ok until it starts linking:
cc -o samterm.o main.o <<MORE .o's HERE>> unix.o
../libframe/libframe.a ../libXg/libXg.a /usr/X11R6/lib/libXt.a
/usr/X11R6/lib/libX11.a
I start getting errors like:
/usr/X11R6/lib/libXt.a (Shell.o): In function 'StopManagingSession':
Shell.o(.text+0x2f9a): undefined reference to 'SmcCloseConnection'
Any ideas what might be causing this? I'm running Red Hat 7.2 using
IceWm. P166MMX, 32MB RAM, 2GB HD, laptop.
Thanks!
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [9fans] Help! Compiling sam on Linux running IceWM
2002-04-12 15:05 [9fans] Help! Compiling sam on Linux running IceWM Matt Senecal
@ 2002-04-12 15:33 ` Boyd Roberts
2002-04-16 9:17 ` Matt Senecal
0 siblings, 1 reply; 6+ messages in thread
From: Boyd Roberts @ 2002-04-12 15:33 UTC (permalink / raw)
To: 9fans
Matt Senecal wrote:
> cc -o samterm.o main.o <<MORE .o's HERE>> unix.o
> ../libframe/libframe.a ../libXg/libXg.a /usr/X11R6/lib/libXt.a
> /usr/X11R6/lib/libX11.a
Look's like you didn't:
cp Make.linux Makefile
in each of the directories.
You need:
XLIBS=/usr/X11R6/lib/libXt.a /usr/X11R6/lib/libX11.a \
/usr/X11R6/lib/libSM.a /usr/X11R6/lib/libICE.a
And that's straight from libXg/Make.linux
The stuff that's missing is in the last two libraries.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [9fans] Help! Compiling sam on Linux running IceWM
2002-04-12 15:33 ` Boyd Roberts
@ 2002-04-16 9:17 ` Matt Senecal
2002-04-16 10:03 ` Boyd Roberts
0 siblings, 1 reply; 6+ messages in thread
From: Matt Senecal @ 2002-04-16 9:17 UTC (permalink / raw)
To: 9fans
Thanks for the reply!
> Look's like you didn't:
>
> cp Make.linux Makefile
>
> in each of the directories.
Actually, I did.
>
> You need:
>
> XLIBS=/usr/X11R6/lib/libXt.a /usr/X11R6/lib/libX11.a \
> /usr/X11R6/lib/libSM.a /usr/X11R6/lib/libICE.a
I've got the first two, I'll double-check the last two.
Thanks!
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [9fans] Help! Compiling sam on Linux running IceWM
2002-04-16 9:17 ` Matt Senecal
@ 2002-04-16 10:03 ` Boyd Roberts
2002-04-17 9:06 ` Douglas A. Gwyn
0 siblings, 1 reply; 6+ messages in thread
From: Boyd Roberts @ 2002-04-16 10:03 UTC (permalink / raw)
To: 9fans
Matt Senecal wrote:
> > XLIBS=/usr/X11R6/lib/libXt.a /usr/X11R6/lib/libX11.a \
> > /usr/X11R6/lib/libSM.a /usr/X11R6/lib/libICE.a
>
> I've got the first two, I'll double-check the last two.
I did a quick nm, before my first post, and that junk you need
is in the last two. Give me the Plan 9 C compiler/loader anyday.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [9fans] Help! Compiling sam on Linux running IceWM
2002-04-16 10:03 ` Boyd Roberts
@ 2002-04-17 9:06 ` Douglas A. Gwyn
2002-04-17 10:49 ` Boyd Roberts
0 siblings, 1 reply; 6+ messages in thread
From: Douglas A. Gwyn @ 2002-04-17 9:06 UTC (permalink / raw)
To: 9fans
Boyd Roberts wrote:
> > > /usr/X11R6/lib/libSM.a /usr/X11R6/lib/libICE.a
> I did a quick nm, before my first post, and that junk you need
> is in the last two. Give me the Plan 9 C compiler/loader anyday.
How would that help if one omitted the libraries?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [9fans] Help! Compiling sam on Linux running IceWM
2002-04-17 9:06 ` Douglas A. Gwyn
@ 2002-04-17 10:49 ` Boyd Roberts
0 siblings, 0 replies; 6+ messages in thread
From: Boyd Roberts @ 2002-04-17 10:49 UTC (permalink / raw)
To: 9fans
"Douglas A. Gwyn" wrote:
>
> Boyd Roberts wrote:
> > > > /usr/X11R6/lib/libSM.a /usr/X11R6/lib/libICE.a
> > I did a quick nm, before my first post, and that junk you need
> > is in the last two. Give me the Plan 9 C compiler/loader anyday.
>
> How would that help if one omitted the libraries?
1) I did the nm to be sure, before posting [on linux].
2) #pragma lib removes the need for specifying libraries on Plan 9:
http://plan9.bell-labs.com/sys/doc/comp.html
The loader is an integral part of the compilation process.
Each library header file contains a #pragma that tells the
loader the name of the associated archive; it is not necessary
to tell the loader which libraries a program uses.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2002-04-17 10:49 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-12 15:05 [9fans] Help! Compiling sam on Linux running IceWM Matt Senecal
2002-04-12 15:33 ` Boyd Roberts
2002-04-16 9:17 ` Matt Senecal
2002-04-16 10:03 ` Boyd Roberts
2002-04-17 9:06 ` Douglas A. Gwyn
2002-04-17 10:49 ` Boyd Roberts
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).