This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: Building Eterm - please more help
- From: Benjamin Riefenstahl <Benjamin dot Riefenstahl at epost dot de>
- To: cygwin-xfree at cygwin dot com
- Date: 31 Oct 2002 14:48:33 +0100
- Subject: Re: Building Eterm - please more help
- References: <OF1759A8A4.DF7F85FF-ON88256C63.00082170@flextronicssemi.com>
- Reply-to: cygwin-xfree at cygwin dot com
Hi Robert,
bob.cavanaugh@flextronics.com writes:
> gcc -g -O2 -L/usr/lib -L/usr/X11R6/lib -o Eterm main.o
> .libs/libEterm.a -last -lImlib2 -lttf -lSM -lICE -lXext -lX11 -lipc
> -last -lImlib2 -lttf -lSM -lICE -lXext -lX11 -lipc -Wl,--rpath
> -Wl,/usr/lib:/usr/lib/Eterm -Wl,--rpath -Wl,/usr/lib:/usr/lib/Eterm
>
> .libs/libEterm.a(screen.o): In function `selection_copy_string':
> /usr/local/Eterm-0.9.1/src/screen.c:2455: undefined reference to
> `_XA_CLIPBOARD'
>
> /usr/local/Eterm-0.9.1/src/screen.c:2455: undefined reference to
> `XmuInternAtom'
>
> .libs/libEterm.a(screen.o): In function `selection_paste':
> /usr/local/Eterm-0.9.1/src/screen.c:2482: undefined reference to
> `_XA_CLIPBOARD'
>
> /usr/local/Eterm-0.9.1/src/screen.c:2482: undefined reference to
> `XmuInternAtom'
So you need to add the libraries that contain _XA_CLIPBOARD and
XmuInternAtom. To find these I use the nm tool, like this
$ cd /usr/X11R6/lib
$ nm -A lib*.a | grep CLIPBOARD
libXmu.a:Atoms.o:00000038 G _XA_CLIPBOARD
libXmu.a:Atoms.o:00000030 g __XA_CLIPBOARD
$
Which tells me that you need to add -lXmu to the list of X11
libraries.
Read the man page for nm to find what the output of the tool means in
detail.
so long, benny