🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #41724

Cannot link rxvt - X11 library problem

#41724
From: Oliver Elphick
Date: Tue, 20 Feb 1996 00:00
46 lines
2479 bytes
This is a multi-part message in MIME format.

--------------5F431A803065559E2C226462
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I attempt to compile rxvt-2.10.

When the make gets to the linking stage, it fails because it cannot
resolve references to the X11 library routines (see the attached
session script). 

The system is Linux 1.2.13, with ELF support and gcc version 2.7.2

What is going wrong here, please?

--------------5F431A803065559E2C226462
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="ol"

linda:~/rxvt-2.10$ make
rm -f rxvt
gcc -o rxvt  -ansi     -L/usr/X11R6/lib rxvt.o command.o sbar.o screen.o utmp.o xsetup.o debug.o resources.o graphics.o	   -lXExExt -lXext -lX11      
command.o: In function `init_command':
command.o(.text+0x721): undefined reference to `XInternAtom'
command.o(.text+0x743): undefined reference to `XSetWMProtocols'
command.o(.text+0x788): undefined reference to `XConnectionNumber'
command.o(.text+0x7df): undefined reference to `XLookupString'
command.o(.text+0x159f): undefined reference to `XPending'
command.o(.text+0x180d): undefined reference to `XFlush'
command.o: In function `get_X_event':
command.o(.text+0x1845): undefined reference to `XNextEvent'
command.o(.text+0x1955): undefined reference to `XRefreshKeyboardMapping'

and so on..

linda:/usr/X11R6/lib$ file libX11*
libX11.a:        current ar archive random library
libX11.sa:       current ar archive random library
libX11.so.3:     symbolic link to libX11.so.3.1.0
libX11.so.3.1.0: Linux/i386 demand-paged executable (ZMAGIC)
libX11.so.6:     symbolic link to libX11.so.6.0
libX11.so.6.0:   Linux/i386 demand-paged executable (ZMAGIC)

--------------5F431A803065559E2C226462--
Technical Details
Message-ID: <3129BFA3.FB7EE20@logchox.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,57b9d05e90d7edb2,start
X-Google-Attributes: gid11318c,public
X-Google-Thread: 100b1f,57b9d05e90d7edb2,start
X-Google-Attributes: gid100b1f,public
From: Oliver Elphick <olly@logchox.co.uk>
Subject: Cannot link rxvt - X11 library problem
Date: 1996/02/20
Message-ID: <3129BFA3.FB7EE20@logchox.co.uk>
X-Deja-AN: 140313342
distribution: inet
content-type: multipart/mixed; boundary="------------5F431A803065559E2C226462"
organization: Logical Choice Ltd
mime-version: 1.0
newsgroups: gnu.gcc.help,comp.os.linux.help
x-mailer: Mozilla 2.0 (X11; I; Linux 1.2.13 i486)