Sponsored Content
Top Forums UNIX for Advanced & Expert Users AIX Dependent Module could not be loaded Post 302587311 by Clovis_Sangrail on Wednesday 4th of January 2012 01:49:45 PM
Old 01-04-2012
I went hunting for AIX RPM's that might have libgpgme.a in them. I found and retrieved one, it turned out to be for a different CPU but I was able to examine the libgpgme.a that came with it. It turned out the only module inside the libgpgme.a archive was --- libgpgme.so.11 !

This seems kind of silly to me. I'm not a Unix developer but I always thought that "libxxxxx.a" files held static object files, and "libxxxx.so" files held shared object files. I never noticed a shared library being stored as a module in a static library before.

Well, I have the libgpgme.so.11 file for my system, it's right there in /usr/local/lib, so I ran 'ar' and made a libgpgme.a library whose only module was the shared library. It works!! (Or at least, it gets me to the point of needing a cipher to decrypt the files I want to access.):

Code:
++++++++++++++++++++
lipossrp01ga:/data/7700 $ /SCA/gtm_dist-V5.4-002A/mupip journal -extract=test.log -fences=none -noverify -forward acn.mjl_2012002010300 
%GTM-I-MUJNLSTAT, Initial processing started at Wed Jan  4 09:55:11 2012
%GTM-I-MUJNLSTAT, Backward processing started at Wed Jan  4 09:55:11 2012
%GTM-I-MUJNLSTAT, Forward processing started at Wed Jan  4 09:55:11 2012
%GTM-I-FILERENAME, File test.log is renamed to test.log_2012004095453
%GTM-I-FILECREATE, Journal extract file test.log created
%GTM-E-CRYPTINIT, Error initializing encryption library. Environment variable gtm_passwd not set
%GTM-E-MUNOACTION, MUPIP unable to perform requested action
%GTM-I-MUJNLSTAT, End processing at Wed Jan  4 09:55:11 2012
lipossrp01ga:/data/7700 $
++++++++++++++++++++



I have to idea why my program (mupip) cannot simply find and use the shared library, but instead must open a static library and read the shared library from it. Has anybody ever encountered something like this?

Not that I'm complaining, I'm glad it works. But it seems silly.
 

10 More Discussions You Might Find Interesting

1. AIX

List loaded drives in AIX?

Does anyone know how I can list the loaded drivers in AIX. I suspect it has something to do with ODM but I dont know how to do it. I am trying to find wich scsi device (scsi1 2 3 etc) is attached to a particular piece of hardware. I know the driver name but how to find which scsi device is... (4 Replies)
Discussion started by: ksas025
4 Replies

2. Linux

How to convert Linux Kernel built-in module into a loadable module

Hi all, I am working on USB data monitoring on Fedora Core 9. Kernel 2.6.25 has a built-in module (the one that isn't loadable, but compiles and links statically with the kernel during compilation) to snoop USB data. It is in <kernel_source_code>/drivers/usb/mon/. I need to know if I can... (0 Replies)
Discussion started by: anitemp
0 Replies

3. Solaris

mcrypt module is not initially loaded with php

Hi I'm trying to do an upgrade for one application and whenever I run the upgradre the program shows the error that mcrypt module is not initially loaded with php. My server is running xampp 0.9 and I know this library of mcrypt is already installed. I changed the php.ini file in order to... (0 Replies)
Discussion started by: dahr
0 Replies

4. AIX

AIX pre-loaded, no license

Hi, I've found some old threads on AIX licensing, but still not sure: I'd like to get some used pSeries box for hands-on AIX learning. If somebody on eBay offers a box with $subj - what problems/limitations (technical, not legislative) I could expect? Is this system usable for my intention? ... (2 Replies)
Discussion started by: tacelus
2 Replies

5. AIX

Problem with AIX: shared libraries aren't loaded

Hello guys, I have a trouble when running an application in AIX, I've compiled and the LIBRARY_PATH seems ok, but I get the following message: rtld: 0712-001 Symbol __pthread was referenced from module main_app(), but a runtime definition of the symbol was not found ldd... (4 Replies)
Discussion started by: edgarvm
4 Replies

6. SCO

module loaded during the start up

hi Howto find out which driver (module) were loaded during the startup of SCO 5.0.6? (5 Replies)
Discussion started by: ccc
5 Replies

7. UNIX for Advanced & Expert Users

How the user process can access the character device loaded by my module

I am trying to load into the kernel a system-call dynamically (without restarting the kernel and compailing it) in an attempt to (once in kernel mode) write to user process's memory. (I know there is a way to do this with the ptrace interface but it is not an option.) I know the only way to... (1 Reply)
Discussion started by: hopelessProgram
1 Replies

8. Shell Programming and Scripting

Script to Start services based on dependent services on other AIX machine

Hi, I just started working on a script. After my research, i found a command which can help me: AIM: To build a script which starts the services (Services 1) on server 1 automatically whenever its down. And it has a dependency on other service (Service 2) on Server 2. So my script has to... (4 Replies)
Discussion started by: draghun9
4 Replies

9. UNIX and Linux Applications

WINBIND module missing in AIX 7.1

I have installed following packages from perzl samba-winbind-clients-3.6.22-1 samba-client-3.6.22-1 samba-domainjoin-gui-3.6.22-1 samba-winbind-devel-3.6.22-1 samba-3.6.22-1 samba-common-3.6.22-1 samba-winbind-krb5-locator-3.6.22-1 samba-doc-3.6.22-1 samba-swat-3.6.22-1... (7 Replies)
Discussion started by: laxtnog
7 Replies

10. Shell Programming and Scripting

Inputs required in decoding file on AIX- executable (RISC System/6000) or object module not stripped

Hi, We are in the process of migrating from AIX to Linux. There is a script of type "executable (RISC System/6000) or object module not stripped" on AIX and we are unable to read the contents of it. Is there a way to read the contents of the file on AIX, so that we can rewrite the code in... (3 Replies)
Discussion started by: venkatesh17
3 Replies
READER.CONF(5)							    PC/SC Lite							    READER.CONF(5)

NAME
reader.conf - configuration file for pcscd readers' drivers DESCRIPTION
The /etc/reader.conf.d/reader.conf file contains configuration information for serial and (some) PCMCIA smart card readers. USB readers SHALL NOT be configured using this file. pcscd uses another mechanism to automatically load USB drivers. SYNTAX
The /etc/reader.conf.d/reader.conf is a regular text file. Each reader must be defined by four fields: FRIENDLYNAME TEXT_STRING DEVICENAME FILENAME LIBPATH FILENAME CHANNELID NUMBER The "FRIENDLYNAME" field is an arbitrary text used to identify the reader. This text is displayed by commands like pcsc_scan(1) that prints the names of all the connected and detected readers. The "DEVICENAME" field was not used for old drivers (using the IFD handler version 2.0 or earlier). It is now (IFD handler version 3.0) used to identify the physical port on which the reader is connected. This is the device name of this port. It is dependent of the OS ker- nel. The first serial port device is called /dev/ttyS0 under Linux and /dev/cuaa0 under FreeBSD. The "LIBPATH" field is the filename of the driver code. The driver is a dynamically loaded piece of code (generally a drivername.so*file). The "CHANNELID" is no more used for recent drivers (IFD handler 3.0) and has been superseded by "DEVICENAME". If you have an old driver this field is used to indicate the port to use. You should read your driver documentation to know what information is needed here. It should be the serial port number for a serial reader. EXAMPLE
# Gemplus GemPCTwin reader with serial communication # connected to the first serial port FRIENDLYNAME "GemPCTwin serial" DEVICENAME /dev/ttyS0 LIBPATH /usr/lib64/pcsc/drivers/serial/libccidtwin.so.0.4.1 CHANNELID 1 DEBUGGING
In order to set up your /etc/reader.conf.d/reader.conf file correctly you may want to have debug messages from pcscd. I recommend you to start pscsd in the foreground and debug mode using: # pcscd --foreground --debug If everything seems OK you can use the pcsc_scan command to print the list of correctly detected readers and try to get the ATR of your smart cards. AUTHOR
Ludovic Rousseau <ludovic.rousseau@free.fr> SEE ALSO
pcscd(8), pcsc_scan(1) Muscle August 2005 READER.CONF(5)
All times are GMT -4. The time now is 09:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy