different versions of the shared library - dynamic-linking

I have a -lelf option in my makefile, I want to know: how does it choose the version of libelf.so to link (e.g. libelf.so.0 or libelf.so.1)? I do have a libelf.so.1 in my system, as well as a libelf.so which links to libelf.so.1. When I compile the code, everything is fine, however, when I try to run the binary, it reports: "can not find libelf.so.0". Any guide on solving this problem? Thanks in advance.

Ok, finally I understand something. I can specify which version of the .so at compile-time (I can force it to link to libelf.so.1, while it will cause some problem at run-time). It seems the best way is to find the required libelf.so.0 anyhow.

Related

ATOM - CSSLINT ignore ids

Is there a way to make csslint in Atom ignore "ids", so I don't get the warning "Don't use IDs in selectors"?
Edit: My question was identified as a possible duplicate of "Disable warnings (ids selector) in linter-csslint on Atom?", but I mentioned in my own answer that I could not understand how to make the process to solve my problem. I ended up finding out.
Well, guys, I ended up discovering how to do that. The other questions similar to mine did solve the problem, but they were not so clear TO ME on how to make the solution work. If you guys go to github "https://github.com/ebednarz/csslintrc/blob/master/.csslintrc", there are some lines to ignore the elements. What wasn't that clear to me was "ok, what should I do with it?".
So you have two options (I use Windows). You either create a file in Atom or command line called ".csslintrc" and place it INSIDE THE FOLDER OF THE PROJECT you are working on OR you can place this file in your USER FOLDER IN WINDOWS. Like, "C:\Users\yourUserName". If you put it there, all the projects will use this file.

Error: could not find function "lang_unnamespace"

I am getting the error here in this Travis build, and I cannot reproduce it locally. Yes, I realize that I do not have a minimal reproducible example, but I do know that it happens within tidyselect::vars_select(). Has anyone else encountered this before? I cannot find any mention of lang_unnamespace() in a Google search.
See if modifying your travis yaml to include the dev versions of the tidyverse packages help.
It looks like you're not calling rlang::lang_unnamespace() directly, correct? That function appears to have been removed, but tidyselect::vars_select() is still trying to call it.
I arbitrarily went back to the beginning of the year to see this old version.
The file doesn't even exist in today's version.

How to get the value of SQLITE_MAX_COMPOUND_SELECT

I know its default value is 500 but I don't want to rely on it. It seems like a really basic thing but I couldn't find an answer.
There is no separate mechanism to read this value, because SQLite's compilation options are set when you compile the library, so you already know it.
If you use a library compiled by someone else, then you are at the mercy of whoever did this. This is why it is recommended to compile your own copy.

What happened to CFFI-UNIX?

My ultimate goal here is to get the system FLEXI-TRIVIAL-DIRED (http://common-lisp.net/project/ftd/) to compile, which I'm having trouble with because I can't find one of the required packages, CFFI-UNIX anywhere.
Does anyone know what happened to it, why it originally existed, if it was merged into another project, why this was, etc.
The system used to "provide a portable interface to Unix functionality, with a focus on networking". Looking at the source of FTD, you can see it calling cffi-unix::getgrgid. This functionallity is now provided (superseded) by osicat.

JGit unstaging files/removing files from the index and ammending a commit

I figured out how to do a lot of things in the JGit library, such as commit files, find out the status of all files (ie. changed, modified, untracked etc), but i can't figure out how to unstage files i added to the index. Could someone let me know how to do this and maybe point me to some documenation as the eclipse site has none, and i can't find any on Google.
Also if anyone know how to ammend a commit i would much appreciate knowing that too.
Thanks.
Looks like you found a way to unstage files but ran into trouble as explained in your other question:
repository.getIndex().remove(getWorkignDirectoryAsFile(), new File(getWorkignDirectoryAsFile(), fileName));
repository.getIndex().write();
Did you solve your issue with the above? I notice that repository.getIndex() is deprecated and org.eclipse.jgit.dircache.DirCache should be used instead.
To amend a previous commit, you should look at
org.eclipse.jgit.api.CommitCommand.setAmend(boolean)
Would be great if you could report on your own answers if you found any.

Resources