Sponsored Content
Full Discussion: How to compile this?
Top Forums Shell Programming and Scripting How to compile this? Post 303043255 by zognadal on Wednesday 22nd of January 2020 12:03:12 PM
Old 01-22-2020
How to compile this?

I want to compile cryptsetup keyslot_checker , but I get error
Code:
gcc -lm -lcryptsetup chk_luks_keyslots.c -o chk_luks_keyslots  chk_luks_keyslots.c:39:27: fatal error: libcryptsetup.h: No such file or directory  #include <libcryptsetup.h>

in FAQ they say
Code:
 There is a tool that automatizes this in the cryptsetup distribution from version 1.6.0 onwards.  It is located in misc/keyslot_checker/.  Instructions how to use and how to interpret results are in the README file.  Note that this tool requires a libcryptsetup from cryptsetup 1.6.0 or later (which means libcryptsetup.so.4.5.0 or later).  If the tool complains about missing functions in libcryptsetup, you likely have an earlier version from your distribution still installed.  You can either point the symbolic link(s) from libcryptsetup.so.4 to the new version manually, or you can uninstall the distribution version of cryptsetup and re-install that from cryptsetup >= 1.6.0 again to fix this.

but I use version newer than 1.6.0
Code:
 apt-cache policy cryptsetup cryptsetup:   Installed: 2:1.7.3-4   Candidate: 2:1.7.3-4   Version table:  *** 2:1.7.3-4 100         100 /var/lib/dpkg/status

How can I fix this ? I don't understand how to point the symbolic link(s) from libcryptsetup.so.4 to the new version manually. And I don't want to re-install crypsetup because I'm afraid of damaging my disk.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Compile X-Chat

Hi! Ive Solaris 8 x86 and i want to compile X-Chat. Ive installed glib-1.2.10-sol8-intel-local from www.sunfreeware.com. But the configure script of XChat tells me the following: ----- checking for pkg-config... /usr/local/bin/pkg-config checking for GLIB - version >= 2.0.3... sh:... (3 Replies)
Discussion started by: donald1111
3 Replies

2. Shell Programming and Scripting

¿compile .ksh?

hi.. i have a .ksh script what needs to be fixed. my question is the next: do i need to compile the .ksh script when i finish of fixing it? if that is correct, how do i compile a .ksh? please help me thanks jona (1 Reply)
Discussion started by: DebianJ
1 Replies

3. Programming

Compile error

Dear All I have a program writen in C and test in Unix. Now, I am try to run this program in windows 2000. I am receiving an error ]_getopt is not define. I will appreciate if any one can help explain to me why this problem is hapening and to slove this problem. Thank you (9 Replies)
Discussion started by: coulio
9 Replies

4. Programming

help to compile

Hello everybody, I have a small opensource project http://hpaftpd.sourceforge.net (single-threaded ftp-server). It tested with FreeBSD and Linux. Can anybody try it with another UNIX system ? I'm interesting about HP/UX and Solaris. I would very much appreciate receiving any results about it. ... (2 Replies)
Discussion started by: wwwdev
2 Replies

5. Solaris

Help to compile

Hi everybody, I have a small opensource project http://hpaftpd.sourceforge.net (single-threaded ftp-server for heavy network traffic). It tested with FreeBSD and Linux. Can anybody try it with another Unix system? I'm interesting about HP/UX and Solaris. Thanks. (1 Reply)
Discussion started by: wwwdev
1 Replies

6. HP-UX

Compile .java

How would I go about compiling a .java file into a .class file? (1 Reply)
Discussion started by: Tecron
1 Replies

7. UNIX for Dummies Questions & Answers

Trying to compile and looking for old libraries

I have been working to install gparted on Centos. Compiling gparted required a number of thing I didn't have, so I downloaded and comilied them as root. After a lot of frustration, I tried using a sript to do it in another directory and removed all of the previously compiled code which was in... (3 Replies)
Discussion started by: brownwrap
3 Replies

8. UNIX for Dummies Questions & Answers

Compiling gcc to compile make to compile yaboot

I have just installed OpenBSD on a 333MHz PPC iMac G3. It has a 6GB HDD that has been partitioned as 1GB MacOS 8.5.1, 3GB MacOS X 10.3.9, 2GB OpenBSD 4.8. I now need to install a bootloader so that my computer can recognize the OpenBSD partition at startup. I have been trying to install... (0 Replies)
Discussion started by: t04st3r
0 Replies

9. Linux

Cross compile

Hi, I'm cross compiling libelektra to arm from linux system its giving library errors can any one help me? (0 Replies)
Discussion started by: Gautham.P
0 Replies

10. Programming

How to compile .sh script using g++?

Hi guys, Can you please help with compiling 123.sh file using g++? The idea is to make 123.sh not readable (make it kind of binary). Is there any idea ho to achieve this? (18 Replies)
Discussion started by: nypreH
18 Replies
XkbLibraryVersion(3)						   XKB FUNCTIONS					      XkbLibraryVersion(3)

NAME
XkbLibraryVersion - Determines the compatibility of a library at runtime. SYNOPSIS
Bool XkbLibraryVersion (int *lib_major_in_out, int *lib_minor_in_out); ARGUMENTS
lib_major_in_out Specifies and returns the major Xkb library version. lib_minor_in_out Specifies and returns the minor Xkb library version. DESCRIPTION
If an application is dynamically linked, both the X server and the client-side X library must contain the Xkb extension in order for the client to use the Xkb extension capabilities. Therefore a dynamically linked application must check both the library and the server for compatibility before using Xkb function calls. A properly written program must check for compatibility between the version of the Xkb library that is dynamically loaded and the one used when the application was built. It must then check the server version for compatibility with the version of Xkb in the library. If your application is statically linked, you must still check for server compatibility and may check library compatibility. (It is possi- ble to compile against one set of header files and link against a different, incompatible, version of the library, although this should not normally occur.) Pass the symbolic value XkbMajorVersion in lib_major_in_out and XkbMinorVersion in lib_minor_in_out. These arguments represent the version of the library used at compile time. The XkbLibraryVersion function backfills the major and minor version numbers of the library used at run time in lib_major_in_out and lib_minor_in_out. If the versions of the compile time and run time libraries are compatible, XkbLi- braryVersion returns True, otherwise, it returns False. In addition, in order to use the Xkb extension, you must ensure that the extension is present in the server and that the server supports the version of the extension expected by the client. Use XkbQueryExtension to do this, as described in the next section. RETURN VALUES
True The XkbLibraryVersion returns True if the versions of the compile time and run time libraries are compatible. False The XkbLibraryVersion returns False if the versions of the compile time and run time libraries are not compatible. SEE ALSO
XkbMajorVersion(3), XkbMinorVersion(3), XkbQueryExtension(3) X Version 11 libX11 1.3.2 XkbLibraryVersion(3)
All times are GMT -4. The time now is 02:36 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy