On Wed, 24 Jan 2007 12:36:06 -0600
"Scot Hetzel" <[EMAIL PROTECTED]> wrote:
> On 1/24/07, Alexandre Vasconcelos
> <[EMAIL PROTECTED]> wrote:
> > [EMAIL PROTECTED] src]# patch < rtld_dlsym_hack.diff
> > Hmm... Looks like a unified diff to me...
> > The text leading up to this was:
> > --------------------------
> > |--- libexec/rtld-elf/rtld.c.orig Fri Sep 24 08:04:52 2004
> > |+++ libexec/rtld-elf/rtld.c Sun Oct 17 03:37:44 2004
> > --------------------------
> > Patching file libexec/rtld-elf/rtld.c using Plan A...
> > Hunk #1 failed at 129.
> > Hunk #2 succeeded at 187 (offset 9 lines).
> > Hunk #3 succeeded at 1820 (offset 82 lines).
> > 1 out of 3 hunks failed--saving rejects to
> > libexec/rtld-elf/rtld.c.rej done
> >
> > And make fails:
> >
> :
> > How to fix this?
>
> Apply the missing patch hunk (vi libexec/rtld-elf/rtld.c.rej) to
> libexec/rtld-elf/rtld.c.
For your convenience: http://fsck.ch/rtld_dlsym_hack_new.diff
or the attached file (if it makes it through).
cheers,
Tobias
--- libexec/rtld-elf/rtld.c.orig Tue Jan 16 08:51:04 2007
+++ libexec/rtld-elf/rtld.c Wed Jan 24 19:43:57 2007
@@ -129,6 +129,7 @@
static void unlink_object(Obj_Entry *);
static void unload_object(Obj_Entry *);
static void unref_dag(Obj_Entry *);
+void *_dlsym(void *, const char *);
static void ref_dag(Obj_Entry *);
void r_debug_state(struct r_debug *, struct link_map *);
@@ -182,6 +183,7 @@
(func_ptr_type) &dlclose,
(func_ptr_type) &dlerror,
(func_ptr_type) &dlopen,
+ (func_ptr_type) &_dlsym,
(func_ptr_type) &dlsym,
(func_ptr_type) &dladdr,
(func_ptr_type) &dllockinit,
@@ -1762,6 +1764,12 @@
trace_loaded_objects(obj);
wlock_release(rtld_bind_lock, lockstate);
exit(0);
+}
+
+void *
+_dlsym(void *handle, const char *name)
+{
+ return dlsym(handle, name);
}
void *
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"