Help me compile Colour X-Term under SLS

Help me compile Colour X-Term under SLS

Post by Kevin Flu » Fri, 27 Aug 1993 22:59:19



Hi all,

I am having trouble compiling colour X-term under Linux (SLS 1.03, pl12).
This is the last bit of what I get when I try to compile (I just did a
xmkmf, make depend, and a make):

gcc -o xterm main.o input.o charproc.o cursor.o util.o tabs.o            
screen.o scrollbar.o button.o Tekproc.o misc.o VTPrsTbl.o TekPrsTbl.o data.o
menu.o  -O2 -m486 -DNO_ASM -fwritable-strings  -L/usr/X386/lib -lXaw -lXmu
-lXt -lXext -lX11    -ltermcap
main.o: Undefined symbol _bsd_ioctl referenced from text segment
main.o: Undefined symbol _bsd_ioctl referenced from text segment
[repeated 9 times total]
main.o: Undefined symbol _bsd_ioctl referenced from text segment
main.o: More undefined symbol _bsd_ioctl refs follow
make: *** [xterm] Error 1

The X-Term sources make no mention of bsd_ioctl, so I assume that there is
something amiss in the /usr/include directories somewhere.  I had to make
some symbolic links (from /usr/lib/gcc-lib/i486-linux/2.4.5/include/float.h
to /usr/include, for example) in order to get make depend to go without
errors, so I know things aren't quite right.  

I have tried both the sources found on sunsite, and some sources I grabbed
off of a local machine, but that makes no difference.  

Please excuse my lack of ability here.  I am not a comp sci person (I just
learned to program in C this summer).  I just want to be able to use colour
ANSI graphics in Seyon.  I tried this before about 2 months ago, and when I
got the same errors, I assumed that it was my fault (I had upgraded various
libs by hand), but this is with a fresh SLS install.  

-- Kevin

/--------------------------------------------------------------------\
| Kevin Fluet                    Call V.A.L.I.S. Public Access Linux |


\--------------------------------------------------------------------/

 
 
 

Help me compile Colour X-Term under SLS

Post by John Hende » Sun, 29 Aug 1993 04:35:47



>Hi all,
>I am having trouble compiling colour X-term under Linux (SLS 1.03, pl12).
>This is the last bit of what I get when I try to compile (I just did a
>xmkmf, make depend, and a make):
>gcc -o xterm main.o input.o charproc.o cursor.o util.o tabs.o            
>screen.o scrollbar.o button.o Tekproc.o misc.o VTPrsTbl.o TekPrsTbl.o data.o
>menu.o  -O2 -m486 -DNO_ASM -fwritable-strings  -L/usr/X386/lib -lXaw -lXmu
>-lXt -lXext -lX11    -ltermcap
>main.o: Undefined symbol _bsd_ioctl referenced from text segment

    I just ran across this same problem. The symbol is in
/usr/include/bsd/sgtty.h, where ioctl is undefined, and bsd_ioctl is
defined.
    Where does it go from there? Where is bsd_ioctl?

--
John Henders       GO/MU/E d* -p+ c+++ l++ t- m--- s/++ g+ w+++ -x+

 
 
 

Help me compile Colour X-Term under SLS

Post by Jeremy Bett » Sun, 29 Aug 1993 00:57:57



>I am having trouble compiling colour X-term under Linux (SLS 1.03, pl12).
>This is the last bit of what I get when I try to compile (I just did a
>xmkmf, make depend, and a make):
>gcc -o xterm main.o input.o charproc.o cursor.o util.o tabs.o            
>screen.o scrollbar.o button.o Tekproc.o misc.o VTPrsTbl.o TekPrsTbl.o data.o
>menu.o  -O2 -m486 -DNO_ASM -fwritable-strings  -L/usr/X386/lib -lXaw -lXmu
>-lXt -lXext -lX11    -ltermcap
>main.o: Undefined symbol _bsd_ioctl referenced from text segment
>main.o: Undefined symbol _bsd_ioctl referenced from text segment
>[repeated 9 times total]
>main.o: Undefined symbol _bsd_ioctl referenced from text segment
>main.o: More undefined symbol _bsd_ioctl refs follow
>make: *** [xterm] Error 1

To compile programs that use BSD features, use the BSD compatiblity library.

Add the following to CFLAGS in your makefile:
-I/usr/include/bsd

and add this to LFLAGS or to LIBS or whatever varible contains the libraries:
-lbsd

Then it will all work just fine. Also, anytime you get a Undefined symbol,
try using grep bsd_ioctl /usr/lib/lib* and searching for the name in other
libs before you ask the whole world.  Grep usually answers most of my
questions for me.
--
Jeremy Bettis   -*-   Jerbo Jehoshaphat   -*-   University of Nebraska


Running Linux .99p11 Free Unix for i386/i486 machines. Ask me how.

 
 
 

Help me compile Colour X-Term under SLS

Post by Jeff Jennin » Sun, 29 Aug 1993 02:15:54



: >Hi all,

: >I am having trouble compiling colour X-term under Linux (SLS 1.03, pl12).
: >This is the last bit of what I get when I try to compile (I just did a
: >xmkmf, make depend, and a make):

: >gcc -o xterm main.o input.o charproc.o cursor.o util.o tabs.o            
: >screen.o scrollbar.o button.o Tekproc.o misc.o VTPrsTbl.o TekPrsTbl.o data.o
: >menu.o  -O2 -m486 -DNO_ASM -fwritable-strings  -L/usr/X386/lib -lXaw -lXmu
: >-lXt -lXext -lX11    -ltermcap
: >main.o: Undefined symbol _bsd_ioctl referenced from text segment

:     I just ran across this same problem. The symbol is in
: /usr/include/bsd/sgtty.h, where ioctl is undefined, and bsd_ioctl is
: defined.
:     Where does it go from there? Where is bsd_ioctl?

: --
: John Henders       GO/MU/E d* -p+ c+++ l++ t- m--- s/++ g+ w+++ -x+

here's a diff:

diff -c xterm/main.c xterm.new/main.c
*** xterm/main.c        Mon Nov  9 01:34:26 1992
--- xterm.new/main.c    Fri Aug 27 11:04:11 1993
***************
*** 159,165 ****
--- 159,167 ----
  #endif /* SYSV */

  #ifndef SYSV                          /* BSD systems */
+ #if !defined __linux__
  #include <sgtty.h>
+ #endif
  #include <sys/resource.h>
  #define HAS_UTMP_UT_HOST
  #define HAS_BSD_GROUPS

this compiles and runs fine on SLS 1.02, with XFree 1.3, gcc 2.4.5,
libc 4.4.1 and kernel 0.99.12A

- jeff
--
Jeff Jennings              | Imagination is more important than knowledge.

Storage Tek - Iceberg      |    (~)  Turn down your lights  (~)
LSVL 4 (303)673-7855       |     U     (where applicable)    U
GCS -d+ -p+ c++ l++ u+(++) e++ m+ s/+ n+(---) h---(*) f+(-) !g w+ t++ r- y+(*)

 
 
 

Help me compile Colour X-Term under SLS

Post by Jeff Jennin » Sun, 29 Aug 1993 02:12:40



: >Hi all,

: >I am having trouble compiling colour X-term under Linux (SLS 1.03, pl12).
: >This is the last bit of what I get when I try to compile (I just did a
: >xmkmf, make depend, and a make):

: >gcc -o xterm main.o input.o charproc.o cursor.o util.o tabs.o            
: >screen.o scrollbar.o button.o Tekproc.o misc.o VTPrsTbl.o TekPrsTbl.o data.o
: >menu.o  -O2 -m486 -DNO_ASM -fwritable-strings  -L/usr/X386/lib -lXaw -lXmu
: >-lXt -lXext -lX11    -ltermcap
: >main.o: Undefined symbol _bsd_ioctl referenced from text segment

:     I just ran across this same problem. The symbol is in
: /usr/include/bsd/sgtty.h, where ioctl is undefined, and bsd_ioctl is
: defined.
:     Where does it go from there? Where is bsd_ioctl?

here's a diff:

diff -c xterm/main.c xterm.new/main.c
*** xterm/main.c        Mon Nov  9 01:34:26 1992
--- xterm.new/main.c    Fri Aug 27 11:04:11 1993
***************
*** 159,165 ****
--- 159,167 ----
  #endif /* SYSV */

  #ifndef SYSV                          /* BSD systems */
+ #if !defined __linux__
  #include <sgtty.h>
+ #endif
  #include <sys/resource.h>
  #define HAS_UTMP_UT_HOST
  #define HAS_BSD_GROUPS

this compiles and runs fine on my SLS 1.02 with XFree 1.3, gcc 2.4.5,
libc 4.4.1, kernel 0.99.12A

- jeff
--
Jeff Jennings              | Imagination is more important than knowledge.

Storage Tek - Iceberg      |    (~)  Turn down your lights  (~)
LSVL 4 (303)673-7855       |     U     (where applicable)    U
GCS -d+ -p+ c++ l++ u+(++) e++ m+ s/+ n+(---) h---(*) f+(-) !g w+ t++ r- y+(*)

 
 
 

1. Help on Color X-term & CD-Player !!!

I just installed Slackware 3.4 (Partial) on my computer. The color x-term
worked fine for a while until I added some other packages in it (like
kernel source and GCC). Now everytime I run color x-term, the color is all
messed up. I cann't even read the man page. Does anyone have any idea
about what I should do? I don't think I should re-install everything since
this is the "Linux", not the "Windowz", right?

Also, I tried out the workman. It played CDs fine. But everytime I try to
add my audio track info, the application just quits and leaves me some
error message about xlib or something. Should I get the source and
re-compile it? Or it's because there's something missing that I should
install them.

BTW, is there any CD player in Linux supports CDDB (?), the internet CD
database?

2. Firewall live distro question

3. How do I make color x-term work with telnet?

4. Fast NICs

5. color X-Term

6. Integrity of RedHat-6.0 distribution?

7. X-term screen color -> white on black

8. Why do you call Linux "GNU/Linux"?

9. Smart-term vs. x-term

10. Help: Connect HP 700RX x-term to Linux PC

11. HELP NCD X-TERM OVERLOAD

12. X-Term setup help

13. New to RH7 X-term help needed