Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Mar 2005 00:31:18 +0000
From:      Jonathon McKitrick <jcm@FreeBSD-uk.eu.org>
To:        freebsd-questions@freebsd.org
Subject:   _init and dynamically loaded libraries
Message-ID:  <20050304003117.GA54569@dogma.freebsd-uk.eu.org>

next in thread | raw e-mail | index | archive | help

I'm having some trouble getting _init() to run when I use dlopen() to load a
library.  I get this:

one.o: In function `_init':
/usr/home/jcm/exp/modules/libone/one.c:7: multiple definition of `_init'
/usr/lib/crti.o(.init+0x0): first defined here

With other signatures, _init() never gets called.  What is the correct
procedure to use here?

jm
-- 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050304003117.GA54569>