A.Sloman@cs.bham.ac.uk writes:
> John,
>
> Many thanks for trying this out.
>
> > I had to make a couple of links.
> >
> > ln -s /lib/libtermcap.so.2.0.8 /lib/libtermcap.so
>
> I wonder whether running ldconfig, or rebooting the machine after
> installing termcap would have done that anyway?
(snip)
>
> It's a pity we can't pass a flag to 'ld' telling it to use any version
> it can find if the .so file is not there.
>
Tried all that because I didn't want to do any thing as root if at all
possible. What is even funnier is when trying to get it to link to
-lncurses it complains about not finding libtermcap.so.2
From man 1 ld
Note - if the linker is being invoked indirectly,via a compiler driver (
e.g.gcc) then all the linker command line options should be prefixed by
-Wl, ( or whatever is appropiate for the particular compiler driver )
like this :
gcc -Wl,--startgroup foo.o bar.o -Wl,--endgroup
This is important,because otherwise the compiler driver program may
silently drop the linker options,resulting in a bad link.
In my poplink_cmnd it starts $POP__cc -Wl,-x,-export-dynamic -o $IM and
so on, which is only one -Wl at the beginning. I have tried putting a
few more in but am not sure of the results.
If you stick -Wall in the command line you get warnings about using
those different types of arguments you have talked about lately.
> > ln -s /home/agley/poplog/local/setup/bin/poplog.sh /usr/local/bin/poplog
>
> I guess I should switch the instllation script to do this instead of
> linking to setup/bin/poplog, which assumes that csh or tcsh is present.
I have removed this link now,one less thing to do as root. I found that
on Debian the file ~/.bash_profile handles login shells so have sourced
the poplog.sh there and it works as you intend.
I am also using your Xdefaults file.
>
> Which file browser is that? If you use Lesstif it should not be very
> different from motif.
I am not using Lesstif, it is the rclib menu File Browser I am trying
out.By the way I wasn't suggesting rewriting Poplog to use ncurses but
just to try to point it at ncurses instead of termcap and see how it
goes. Apparently many programs which say they need termcap can happily
run under ncurses, though it seems there must be some places where
termcap is hard coded into Poplog from what I can find so far.
All the best,
John Duncan
|