Sponsored Content
Top Forums Programming Listing function exports from object file Post 302141112 by DreamWarrior on Wednesday 17th of October 2007 05:36:46 PM
Old 10-17-2007
Listing function exports from object file

Is it possible to view all the functions exported by a given object file?

"dump -tv" comes the closest, but what exactly am I looking for to determine whether the symbol exists in the object file?

Essentially, I have a library that requires a call to "xdr_sizeof" and the compile is failing because the linker can not find it. I am curious if I can find where (and if) this function is provided so I can link it in. I have ran the following under /usr/lib:

Code:
for i in `find . -name "*.a"`
do
cnt=`dump -tv $i | grep -c xdr_sizeof`
if [ $cnt -ne 0 ]
then
echo $i " " $cnt
fi
done

Running this I get:

./libnsl.a 3
./libnsl_r.a 3
./libtt.a 1
./libnisdb.a 4

How do I know which of those, if any, actually contains the xdr_sizeof function I want? Is there a better way to do the dump to limit it only to outputing lines for functions exported by the library? Am I completely off base here? I know the function can not be in four different libraries...or it shouldn't be....

AIX 5.2 is the O/S if it matters!

Thanks y'all!
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

/etc/exports

i have the following entry in /etc/exports which is /opt/hpxt. i am on hpux b11.0.0 questions 1) is /hpxt in the same physical machine? got confused by the meaning of export. (1 Reply)
Discussion started by: yls177
1 Replies

2. UNIX for Advanced & Expert Users

How can i read a non text file in unix - ELF-64 executable object file - IA64

The binary file is ELF-64 executable object file - IA64. How i know that the source is Is there any comamnd in unix i can read these kind of files or use a thirty party software? Thanks for your help (8 Replies)
Discussion started by: alexcol
8 Replies

3. UNIX for Dummies Questions & Answers

Object reference not set to an instance of an object

I am new to PHP and UNIX. I am using Apache to do my testing on a Windows Vista machine. I am getting this error when I am trying to connect to a web service. I did a search and did not see any posts that pertain to this. Here is my function: <?php function TRECSend($a, $b, $c, $d,... (0 Replies)
Discussion started by: EddiRae
0 Replies

4. AIX

AIX Exports file

Why can I not add more than 1 filesystem to the /etc/exports file and export them via smitty, or command line? I have tried, I stopped the NFS daemons, edited the /etc/exports file by hand, saved it, then re-started NFS, but it only still exports the first line in the exports file. ... (4 Replies)
Discussion started by: mrmurdock
4 Replies

5. Shell Programming and Scripting

How to Call external function in .C or .So (Shared Object)

Hi, Anybody know any way to Call with Shell Script an external function wrote in .C or .So (Shared Object) on AIX enviroment and returning parameters of .C or .SO to Shell Script? Tks!! (6 Replies)
Discussion started by: rdgsantos
6 Replies

6. Programming

question about function object

I have a code as following: #include <iostream> #include <algorithm> #include <list> using namespace std; //the class Nth is a predicates class Nth{ private: int nth; int count; public: Nth(int n):nth(n),count(0){} bool operator()(int){ ... (2 Replies)
Discussion started by: homeboy
2 Replies

7. SCO

Problem with nfs exports between 5.0.5 and 5.0.7

Hello everyone! I have two systems: an old SCO 5.0.5 Openserver (here's the uname -a output): /# uname -a SCO_SV munixela 3.2 5.0.5 i386 And a SCO 5.0.7 OpenServer (uname -a output): /# uname -a SCO_SV catedral 3.2 5.0.7 i386 I exported a Filesystem from the 5.0.7 machine, using the... (13 Replies)
Discussion started by: superchivo
13 Replies

8. Programming

passing object to function, columns class

I am working on a small columns class, since I use allot of tabular data. I am trying to set up code to allow me to efficiently read in tabular data, manipulate it, and write to output files. I more or less know what I need to do, but there are many options to sort through. I have the beginnings... (14 Replies)
Discussion started by: LMHmedchem
14 Replies

9. UNIX for Dummies Questions & Answers

NFS not showing under /etc/fstab nor /etc/exports

Hi guys, I was asked to perform the following: On server usdfslpsap04 following NFS mounts should be disabled usdfslpwmt3:/u01/opt/wm6_data/ebiz_edi/CALIBER_data 50412232 13369544 34481872 28% /u01/opt/wm6_data/ebiz_edi/CALIBER_data usauxoradw:/DWH/Transfer/current... (1 Reply)
Discussion started by: 300zxmuro
1 Replies

10. Programming

How to initialize an object with another object of different class?

How to initialize an object of class say "A", with an object of type say "B". The following code give the error message "error: conversion from âAâ to non-scalar type âBâ requested" #include <iostream> using namespace std; class B; class A{ public: A() { cout <<"\nA()" << endl; } ... (1 Reply)
Discussion started by: techmonk
1 Replies
I2C-STUB-FROM-DUMP(8)					      System Manager's Manual					     I2C-STUB-FROM-DUMP(8)

NAME
i2c-stub-from-dump - feed i2c-stub with dump files SYNOPSIS
i2c-stub-from-dump address[,address,...] dump-file [dump-file ...] DESCRIPTION
i2c-stub-from-dump is a small helper script for the i2c-stub kernel driver. It lets you setup one or more fake I2C chips on the i2c-stub bus based on dumps of the chips you want to emulate. i2c-stub-from-dump requires i2cdetect and i2cset to be installed and reachable through the user's PATH. The former is used to find out the i2c-stub bus number, while the latter is used to write to the fake I2C chips. EXAMPLE
You have an I2C chip on system A. You would like to do some development on its driver on system B. Here are the few steps you have to fol- low. On system A, use i2cdump to capture a dump from the chip. Assuming that the chip in question lives at address 0x4c on I2C bus 0, you would run: i2cdump -y 0 0x4c b > chip.dump Adjust the bus number and chip address for your case. i2cdetect can help you find out their values. If the device uses word (16-bit) regis- ter access instead of the traditional byte (8-bit) access, use mode w instead of b. Copy the dump file to system B. On system B, run: i2c-stub-from-dump 0x4c chip.dump This will load the required i2c-dev and i2c-stub kernel drivers if needed, then write all the register values to the emulated I2C chip at address 0x4c. Again, adjust the address as needed. LIMITATIONS
There are some limitations to the kind of devices that can be handled: o Device must not have banks (as most Winbond devices do). SEE ALSO
i2cdump(8), i2cdetect(8), i2cset(8) AUTHOR
Jean Delvare March 2010 I2C-STUB-FROM-DUMP(8)
All times are GMT -4. The time now is 09:35 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy