dynamic-linker and readline across ubuntu versions

Mike Marchywka marchywka at hotmail.com
Sun Sep 13 09:06:15 UTC 2020


On Sun, Sep 13, 2020 at 01:26:48AM +0100, Colin Watson wrote:
> On Sat, Sep 12, 2020 at 04:00:45PM +0000, Mike Marchywka wrote:
> > I'm making a bit of a bastard application using email for data exchange and hope to deploy
> > on a laptop acting as a server. I'm developing on 16.04 and trying to deploy on 18.04
> > ( Beaver is on the lap top). Rather than copy around a bunch of shared objects, I tried to 
> > do as much static linking as possible and I finally got an executable that runs on
> > both machines but I had to copy over readline.so as it absolutely required 6 although
> > 5 and 7 were in the 18.04 repo.
> 
> You're going to have a really hard time with this sort of thing in
> general.  Have you considered building the application in an 18.04
> chroot or container, which should be entirely possible even if the host
> system is running 16.04?  It's going to be much easier to get that sort

Thanks. I had not thought much about the OS before actually as I thought
most of my needs were pretty much independent of it. If it was
that big a deal I guess I could have done it in java although
I'm not sure what mail/imap support exists I would imagine
it is there. The thing apparently can compile for a lot
of targets I did not think going from 16 to 18 would
need a cross compiler :)  Probably once I get some idea
what is going on I can just build for different targets
but still suprised about some of these details.  


> of thing working reliably than to cobble together the sort of thing
> you're trying.

I'm using two email/imap codes- libetpan and a hacked up neomutt-
but it looks like most of wierdness came from glib and the crypto
stuff. My console app "template code" uses readline for user
interaction( most of the header files can be built in a test
mode where the class can be tested interactively using
readline ).   

Probably everything would be ok if I just built pure dynamic
link except for readline. Going pure static produced a lot
of warnings about still needed a runtime lib. 

Oddly, it seems the dynamic-linker option became an issue
when I went partially static. 


> 
> -- 
> Colin Watson (he/him)                              [cjwatson at ubuntu.com]
> 
> -- 
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

-- 

mike marchywka
306 charles cox
canton GA 30115
USA, Earth 
marchywka at hotmail.com
404-788-1216
ORCID: 0000-0001-9237-455X




More information about the ubuntu-users mailing list