11-17-2005
default location of libs in dlopen
Hi
Where is the default location of libs to search, when we specify any lib in dlopen function.
And if we want to specify a custom location, how will we do it?
thanks.
10 More Discussions You Might Find Interesting
1. Programming
I can open my so file successfully by calling dlopen directly in my main function. But if I fork a child process, and call dlopen in child process, it failed!
I don't know why. Following is my code:
#include <stdio.h>
#include <errno.h>
#include <dlfcn.h>
void childFunc(void)
{
void... (1 Reply)
Discussion started by: virmin
1 Replies
2. Programming
Hi unix lovers,
I am getting error while compile a function which uses dlopen.
My code is
I am getting error as follows
Am I missing something? I think I am missing a lot :-)
I am using solaris.
Thanks in advance,
-Ashish (5 Replies)
Discussion started by: shriashishpatil
5 Replies
3. Programming
//foo.c
#include<stdio.h>
int pen(int a)
{
printf("%d",a);
}
$cc -c foo.c
$ls -shared -o libfoo.so foo.o
///////////now libfoo.so formed
//i have already designed libfoo.so
//main.c
#include<stdio.h>
#include <dlfcn.h>
int main()
{ (2 Replies)
Discussion started by: lookforlohith
2 Replies
4. Solaris
Dear experts,
please help
#include <stdio.h>
#include <dlfcn.h>
#include <link.h>
#include <iostream.h>
#include<stdlib.h>
#include<errno.h>
void main()
{
printf("\n in the main\n");
void *handle;
handle = dlopen("my.so", RTLD_LAZY);
if( handle ==... (2 Replies)
Discussion started by: vin_pll
2 Replies
5. Shell Programming and Scripting
Create a script that copies files from one specified directory to another specified directory, in the order they were created in the original directory between specified times. Copy the files at a specified interval. (2 Replies)
Discussion started by: allways4u21
2 Replies
6. Programming
The gcc version is different on my computer than on the remote computer. An ldd on my program says:
Is there any way I can tell gcc to compile my program against my version of libc-2.7.so and ld-2.7.so (which I would provide along with the program) instead of the remote computer's libs ? (I do... (5 Replies)
Discussion started by: cyler
5 Replies
7. Programming
I've got a C++ program and some plugins ( shared objects ) that I have been developing for Linux. I was originally using and OSX machine to develop and test most of the code.
I use dlopen to open the shared objects and then call methods from them. It behaves differently on Linux ( don't know the... (3 Replies)
Discussion started by: rfkrakora
3 Replies
8. Shell Programming and Scripting
Hi,
I am logging to a linux server through a user "user1" in /home directory.
There is a script in a directory in 'root' for which all permissions are available including the directory. This script when executed creates a file in the directory.
When the script is added to crontab, on... (1 Reply)
Discussion started by: archana.n
1 Replies
9. Shell Programming and Scripting
Hi
This is my third past and very impressed with previous post replies
Hoping the same for below query
How to find a existing file location and directory location in solaris box (1 Reply)
Discussion started by: buzzme
1 Replies
10. AIX
I want to create a shared lib with certain libs statically linked to it. I can generate a fully shared lib as follows:
gcc -maix64 -DHAVE_CONFIG_H -I. -I./src -DHAVE_OPENSSL -I/usr/include/openssl -I/usr/include -I/usr/include/apr-1 -D_LARGEFILE64_SOURCE -I/usr/java8_64/include -shared -o... (0 Replies)
Discussion started by: amandeepgautam
0 Replies
LEARN ABOUT CENTOS
krb5-config
KRB5-CONFIG(1) MIT Kerberos KRB5-CONFIG(1)
NAME
krb5-config - tool for linking against MIT Kerberos libraries
SYNOPSIS
krb5-config [--help | --all | --version | --vendor | --prefix | --exec-prefix | --defccname | --defktname | --defcktname | --cflags |
--libs [libraries]]
DESCRIPTION
krb5-config tells the application programmer what flags to use to compile and link programs against the installed Kerberos libraries.
OPTIONS
--help prints a usage message. This is the default behavior when no options are specified.
--all prints the version, vendor, prefix, and exec-prefix.
--version
prints the version number of the Kerberos installation.
--vendor
prints the name of the vendor of the Kerberos installation.
--prefix
prints the prefix for which the Kerberos installation was built.
--exec-prefix
prints the prefix for executables for which the Kerberos installation was built.
--defccname
prints the built-in default credentials cache location.
--defktname
prints the built-in default keytab location.
--defcktname
prints the built-in default client (initiator) keytab location.
--cflags
prints the compilation flags used to build the Kerberos installation.
--libs [library]
prints the compiler options needed to link against library. Allowed values for library are:
+------------+------------------------------------------------+
|krb5 | Kerberos 5 applications (default) |
+------------+------------------------------------------------+
|gssapi | GSSAPI applications with Kerberos 5 bindings |
+------------+------------------------------------------------+
|kadm-client | Kadmin client |
+------------+------------------------------------------------+
|kadm-server | Kadmin server |
+------------+------------------------------------------------+
|kdb | Applications that access the Kerberos database |
+------------+------------------------------------------------+
EXAMPLES
krb5-config is particularly useful for compiling against a Kerberos installation that was installed in a non-standard location. For exam-
ple, a Kerberos installation that is installed in /opt/krb5/ but uses libraries in /usr/local/lib/ for text localization would produce the
following output:
shell% krb5-config --libs krb5
-L/opt/krb5/lib -Wl,-rpath -Wl,/opt/krb5/lib -L/usr/local/lib -lkrb5 -lk5crypto -lcom_err
SEE ALSO
kerberos(1), cc(1)
AUTHOR
MIT
COPYRIGHT
1985-2013, MIT
1.11.3 KRB5-CONFIG(1)