This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: /usr/lib/libXaw.a(Pixmap.o)(.text+0x1d4b):Pixmap.c: undefined reference to `XpmReadFileToPixmap'


Add the -lXpm to your linker please.
XpmReadFileToPixmap
^^^ points to what your linker is missing (a libXpm.a).  The -lXpm must be
after -lXaw and before -lX11.

Suhaib


> -----Original Message-----
> From: George J. Wakileh [mailto:george.wakileh@vol.at]
> Sent: Tuesday, May 22, 2001 6:56 PM
> To: 'cygwin-xfree'
> Subject: /usr/lib/libXaw.a(Pixmap.o)(.text+0x1d4b):Pixmap.c: undefined
> reference to `XpmReadFileToPixmap'
> 
> Hi,
> 
> Trying to compile xdvi-22.39, I got
> /usr/lib/libXaw.a(Pixmap.o)(.text+0x1d4b):Pixmap.c: undefined reference to
> `XpmReadFileToPixmap'
> 
> Could someone kindly comment on that?  What is the problem with libXaw.a?
>  I am not sure if your distribution has libXaw.a.  If not, sometime ago, I
> downloaded xc-src and compiled.
> 
> Kind regards,
> 
> George
> 
> ---
> 
> $ ./configure
> creating cache ./config.cache
> checking for gcc... gcc
> checking whether the C compiler (gcc  ) works... yes
> checking whether the C compiler (gcc  ) is a cross-compiler... no
> checking whether we are using GNU C... yes
> checking whether gcc accepts -g... yes
> checking for a BSD compatible install... /bin/install -c
> checking how to run the C preprocessor... gcc -E
> checking for X... libraries /usr/lib, headers
> checking for dnet_ntoa in -ldnet... no
> checking for dnet_ntoa in -ldnet_stub... no
> checking for gethostbyname... yes
> checking for connect... yes
> checking for remove... yes
> checking for shmat... no
> checking for shmat in -lipc... no
> checking for IceConnectionNumber in -lICE... yes
> checking for ANSI C header files... yes
> checking for X11/Xosdefs.h... yes
> checking for unistd.h... yes
> checking for dirent.h that defines DIR... yes
> checking for opendir in -ldir... no
> checking for sys/wait.h that is POSIX.1 compatible... yes
> checking whether byte ordering is bigendian... no
> checking for integer type to use in bitmaps... unsigned int, size = 4
> checking for whether the C compiler supports string concatenation... yes
> checking for stropts.h and isastream()... no
> checking for SunOS 4... no
> checking for certain old versions of Linux... no
> checking for off_t... yes
> checking for pid_t... yes
> checking for size_t... yes
> checking return type of signal handlers... void
> checking for poll.h and poll()... yes
> checking for vfork.h... no
> checking for working vfork... yes
> checking for waitpid... yes
> checking for putenv... yes
> checking for mkstemp... yes
> checking for sigaction... yes
> checking for ulltostr... no
> checking for vsnprintf... yes
> checking for sin... yes
> updating cache ./config.cache
> creating ./config.status
> creating Makefile
> creating config.h
> 
> wakileh@SATURN /xdvi-22.39
> $ make
> gcc -c -g -O2  -I. -I.  xdvi.c
> gcc -c -g -O2  -I. -I.  events.c
> gcc -c -g -O2  -I. -I.  dvi-init.c
> gcc -c -g -O2  -I. -I.  dvi-draw.c
> gcc -c -g -O2  -I. -I.  special.c
> gcc -c -g -O2  -I. -I.  font-open.c
> gcc -c -g -O2  -I. -I.  filefind.c
> gcc -c -g -O2  -I. -I.  pk.c
> gcc -c -g -O2  -I. -I.  vf.c
> gcc -c -g -O2  -I. -I.  util.c
> gcc -c -g -O2  -I. -I.  popups.c
> gcc -L/usr/lib -o xdvi xdvi.o events.o dvi-init.o dvi-draw.o special.o
> font-open.o filefind.o pk.o vf.o util.o popups.o -lXaw -lXmu -lXt -lSM
> -lICE -lXext -lX11
> 
> /usr/lib/libXaw.a(Pixmap.o)(.text+0x1d4b):Pixmap.c: undefined reference to
> `XpmReadFileToPixmap'
> collect2: ld returned 1 exit status
> make: *** [xdvi] Error 1


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]