Hello Nottebrock...

At your request the patch for the ld-elf-so  that
makes flashplayer-7 work...

you need to install the src/libexec from the sources in /usr/src

than apply the patch that simply makes an entry for the _dlsym in the loader...
I tried first to put the _dlsym in the flashplayer wapper but it does not work because
it must be resolved at loader time.. so I searched internet and found a solution
coded mine and here is the patch code against the 6.X series (6.1 in my case).


apply.....

cd /usr/src
patch < patch_code_below

than..
cd /usr/src/rtld-elf
make clean all

care must be taken to not overwrite the ld-elf-....  in the /libexec with cp or mv..
tar will do the trick...
tar cvf /tmp/ld.tar ld-elf.so.1
than...
cd /libexec
tar xvf /tmp/ld.tar




==============================================

--- libexec/rtld-elf/rtld.c.orig        Fri Dec 30 20:13:56 2005
+++ libexec/rtld-elf/rtld.c     Sun Aug  6 14:11:48 2006
@@ -79,6 +79,9 @@
/*
  * Function declarations.
  */
+
+void *_dlsym(void *, const char *);
+
static const char *basename(const char *);
static void die(void);
static void digest_dynamic(Obj_Entry *, int);
@@ -192,6 +195,7 @@
     (func_ptr_type) &__tls_get_addr,
     (func_ptr_type) &_rtld_allocate_tls,
     (func_ptr_type) &_rtld_free_tls,
+    (func_ptr_type) &_dlsym,
     NULL
};

@@ -2839,4 +2843,8 @@
     lockstate = wlock_acquire(rtld_bind_lock);
     free_tls(tcb, tcbsize, tcbalign);
     wlock_release(rtld_bind_lock, lockstate);
+}
+
+void * _dlsym(void *handle, const char *fname) {
+    return dlsym(handle, fname);
}
==============================================

_______________________________________________
kde-freebsd mailing list
[email protected]
http://kf.liquidneon.com/mailman/listinfo/kde-freebsd

Reply via email to