From owner-freebsd-hackers Tue Oct 31 22:01:06 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id WAA23639 for hackers-outgoing; Tue, 31 Oct 1995 22:01:06 -0800 Received: from netra.soft.net (netra.soft.net [164.164.128.17]) by freefall.freebsd.org (8.6.12/8.6.6) with SMTP id WAA23628 for ; Tue, 31 Oct 1995 22:01:00 -0800 From: ryan@genius.tisl.soft.net Received: from stpb.soft.net by netra.soft.net (5.x/SMI-SVR4) id AA24318; Wed, 1 Nov 1995 11:24:10 +0500 Received: from genius.tisl.soft.net by stpb.soft.net (5.x/SMI-4.1) id AA08751; Wed, 1 Nov 1995 11:22:33 +0500 X-Organisation: Software Technology Park, Bangalore Received: by genius.tisl.soft.net (AIX 3.2/UCB 5.64/4.03) id AA18692; Wed, 1 Nov 1995 11:21:30 GMT Date: Wed, 1 Nov 1995 11:21:30 +0000 (CUT) To: FreeBSD Technical Questions Subject: Shared Libraries Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@FreeBSD.org Precedence: bulk I have a peculiar problem(NOT RELATED TO FREEBSD). Hope you will be able to help me nevertheless!. Our product has many shared libraries and we are required to provide a cobol front end to it (ie., API). But the cobol compiler(MFCOBOL) which our clients have does not link with shared libraries (Our platform is SunOS 4.1.x, running on sparc 20 [sun 4m]). Therefore my plan is to write a cobol stub library(static) which will load the required shared libs and after getting the fn. address call the function using fn. pointers. But the problem is dlopen,dlcose & dlsym, which are the required fns. to load, unload and get fn addresses in SunOS 4.1.x, are themselves present in a shared library!. Therefore I am still unable to resolve my problem. Do you know of any solutions to this problem?. Or, do you know of any public-domain software to help me out. If nothing else, can you tell me how I could load a shared library and resolve function addresses? Thanks in advance (PLEASE HELP) Ryan (ryan@genius.tisl.soft.net)