Sponsored Content
Top Forums UNIX for Dummies Questions & Answers What programs access shared library file Post 302268246 by otheus on Monday 15th of December 2008 08:51:23 AM
Old 12-15-2008
Do you want to know which programs are currently using libobjc.A.dylib or which use it in general? Chances are the answer is everything (or everything running). Which OS are you using?
 

10 More Discussions You Might Find Interesting

1. AIX

How to debug a shared library(.so file) on AIX?

How to debug a shared library(.so file) on AIX? (1 Reply)
Discussion started by: AlbertGao
1 Replies

2. UNIX for Dummies Questions & Answers

access collision with shared file system

Hello ALL, In my system, there are 14 machines running the same version of Linux RHEL4. The 14 machines use a NFS file system, i.e., a shared file system. My question is that if the programs in individual machines can access a common file simutaneously. Or, they have to access the file... (1 Reply)
Discussion started by: cy163
1 Replies

3. Programming

Shared memory for shared library

I am writing a shared library in Linux (but compatible with other UNIXes) and I want to allow multiple instances to share a piece of memory -- 1 byte is enough. What's the "best" way to do this? I want to optimize for speed and portability. Obviously, I'll have to worry about mutual exclusion. (0 Replies)
Discussion started by: otheus
0 Replies

4. Linux

how to backtrace a shared library file (.so)

I have a shared library file (.so) and I need to know some information 1. By which GCC version was this .so built? 2. Was this .so built in 32 bits mode or 64 bits mode Any command / tools to backtrace such kind of information? Thanks in advance! (2 Replies)
Discussion started by: princelinux
2 Replies

5. Shell Programming and Scripting

How to change a Makefile from building static library to shared library?

Hi: I have a library that it only offers Makefile for building static library. It built libxxx.a file. How do I in any way build a shared library? (either changin the Makefile or direct script or command to build shared library) Thanks. (1 Reply)
Discussion started by: cpthk
1 Replies

6. HP-UX

Problem in Shared library file .sl on 64bit HP-UX 11.11

We are facing issue with shared library file, we are getting difference in content for same shared file for chatr command :confused: , below are the detail about *.sl file, even we are also getting difference in size of both file. can you please tell me what will be the issue for same. is my new... (1 Reply)
Discussion started by: amodkavi
1 Replies

7. Programming

Shared Memory Between C Programs

I'm involved in a project with multiple teams which are developing C code for a Linux machine and we would like to have our program pass data to one of the other group's programs. The immediate idea is to have shared memory between the programs which would simply consist of variables whose size and... (2 Replies)
Discussion started by: cmcmanus3
2 Replies

8. Shell Programming and Scripting

Shared File system- lib access issue

I have a C++ binary executable installed in a file system which is shared across multiple solaris boxes. When I start this executable from one of the boxes,I am able to start only 4 parallel instances and from the 5th instance onwards I am getting the following error. fatal: libdb2.so.1:... (2 Replies)
Discussion started by: prasperl
2 Replies

9. Programming

Shared library with acces to shared memory.

Hello. I am new to this forum and I would like to ask for advice about low level POSIX programming. I have to implement a POSIX compliant C shared library. A file will have some variables and the shared library will have some functions which need those variables. There is one special... (5 Replies)
Discussion started by: iamjag
5 Replies

10. AIX

Add shared members from library to same library in a different directory

I'm trying to install libiconv to AIX 7.1 from an rpm off of the perzl site. The rpm appears to install but I get this error message. add shr4.o shared members from /usr/lib/libiconv.a to /opt/freeware/lib/libiconv.a add shr.o shared members from /usr/lib/libiconv.a to ... (5 Replies)
Discussion started by: kneemoe
5 Replies
GEN_BRIDGE_METADATA(1)					    BSD General Commands Manual 				    GEN_BRIDGE_METADATA(1)

NAME
gen_bridge_metadata -- Objective-C Bridges Metadata Generator SYNOPSIS
gen_bridge_metadata [options...] headers... DESCRIPTION
gen_bridge_metadata is a tool that generates bridging metadata information for a given framework or set of headers. The Objective-C bridges supported in Mac OS X, such as PyObjC (Python), read this information at runtime. As of Mac OS 10.7, gen_bridge_metadata uses an improved parser, based on clang. This means the generated files should be more correct and complete, and the true parsing allows the automatic extraction of metadata from existing __attribute__() information supported by the com- piler. File generation time should also be faster. Metadata files describe the parts of an Objective-C framework that the bridges cannot automatically handle. These are primarily the ANSI C elements of the framework -- functions, constants, enumerations, and so on -- but also include special cases such as functions or methods that accept pointer-like arguments. These special cases must be manually specified in separate files called exceptions. The gen_bridge_metadata tool can then read in the exceptions file when it generates the framework metadata. The file extension used for metadata files should be .bridgesupport. Certain elements, such as inline functions, cannot be described in the metadata files. It is therefore required to generate a dynamic library in order to make the bridges use them. The gen_bridge_metadata tool can take care of that for you. The file extension for the dynamic libraries should be .dylib. You should install metadata files in one of three filesystem locations. For example, for a framework named MyFramework that is installed as /Library/Frameworks/MyFramework.framework, you can install the MyFramework.bridgesupport and MyFramework.dylib files in one of the following possible locations, in order of priority: o /Library/Frameworks/MyFramework/Resources/BridgeSupport o /Library/BridgeSupport o ~/Library/BridgeSupport OPTIONS
The gen_bridge_metadata tool accepts the following command-line options: -f framework, --framework framework Generates metadata for the given framework. This argument can accept both the name of a framework of an absolute path to a framework. When passing a framework name, the program will try to locate the framework in one of the standard framework locations. -p, --private Generates metadata based on the private headers of the given frameworks. This argument must be used with the -f argument. -F format, --format format Selects the metadata format that will be generated. Possible values are: final The final metadata format. This is the default value. dylib The dynamic library format. This is only required if you want to support inline functions. In order to use this format you need to pass a value for the -o argument. exceptions-template This will generate an exception template. Please consult BridgeSupport(5) for more details about the exception for- mat. Once your exception file is finished you can pass it to the -e argument in order to generate the final meta- data. -e file, --exception file Considers the given exception file when generating the final metadata format. The given exception file must conform to a certain format, described in bridgeSupport(5). Exception files are manually written, but you can generate a template by passing -F exceptions-template to the generator. --64-bit (This option is included for backwards compatibility, as this is now the default behavior.) Writes both 32 and 64-bit annotations to the final metadata format and compiles the dylib both 32 and 64-bit (if a framework is specified and it only contains either 32 or 64-bit architectures, then the final metadata format and dylib will be created only for that architecture). In order to use this option you need to run the generator on a 64-bit machine. The generation will take a bit more than twice the time, as both 32 and 64-bit will need to be processed and merged into one. --no-32-bit Do not write the 32-bit annotations to the final metadata format or compile the dylib 32-bit. May not be used with --no-64-bit. --no-64-bit Do not write the 64-bit annotations to the final metadata format or compile the dylib 64-bit. May not be used with --no-32-bit. -c, --cflags flags Provides custom flags that will be passed to the C compiler. The generator compiles and executes several C and Objective-C programs dur- ing the generation of the final metadata format. Some flags are determined by default, but you might want to provide your own flags according to the piece of code you want to generate metadata for (for example, a framework part of a umbrella framework). -C, --cflags-64 flags Provides custom flags that will be passed to the C compiler, when generating 64-bit annotations. By default the same flags are passed to the C compiler when generating both 32-bit and 64-bit annotations. -o, --output file Writes the output to the given file. This argument is mandatory when generating the ``dylib'' format. For other formats, by default the output is redirected to the standard output. -h, --help Prints a summary of the options. -d, --debug Turns on debugging messages. You probably don't want to enable this option, unless you are going to debug the metadata generator. -v, --version Shows the version of the program. The version is also marked in generated metadata files, as the ``version'' attribute of the ``signatures'' top-level element. EXAMPLES
This generates bridge support metadata for a custom framework: mkdir -p /Path/To/YourFramework.framework/Resources/BridgeSupport gen_bridge_metadata -f /Path/To/YourFramework.framework -o /Path/To/YourFramework.framework/Resources/BridgeSupport/YourFramework.bridgesupport If the custom framework has inline functions and you want to be able to call them, here is how you can generate a ``dylib'' file: gen_bridge_metadata -f /Path/To/YourFramework.framework -F dylib -o /Path/To/YourFramework.framework/Resources/BridgeSupport/YourFramework.dylib It is also possible to generate bridge support metadata for a standalone C library (here, libcurl): gen_bridge_metadata -c '-lcurl -I/usr/include/curl' /usr/include/curl/*.h > /Library/BridgeSupport/curl.bridgesupport SEE ALSO
BridgeSupport(5) /System/Library/DTDs/BridgeSupport.dtd ruby(1) python(1) BSD
May 24, 2010 BSD
All times are GMT -4. The time now is 12:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy