Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Jan 2007 21:02:16 +0100
From:      Firas Kraiem <fkraiem@free.fr>
To:        freebsd-stable@freebsd.org
Subject:   Re: FreeBSD 6.2-STABLE and Flash 7 patch
Message-ID:  <200701242102.17116.fkraiem@free.fr>
In-Reply-To: <45B7A0FA.1050901@terceirizado.mda.gov.br>
References:  <45B7A0FA.1050901@terceirizado.mda.gov.br>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday 24 January 2007 19:10, Alexandre Vasconcelos wrote:
> Hello,
>
> Working setup:
> - FreeBSD 6.2-PRERELEASE, firefox 2 and flash 7 patched with
> rtld_dlsym_hack.diff, like suggested on Handbook.
>
> After 6.2-STABLE upgrade reaplying the rtld_dlsym_hack.diff fails:
>
> root@alex 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:
>
> [root@alex rtld-elf]# make
> cc -O2 -fno-strict-aliasing -pipe  -Wall -DFREEBSD_ELF -DIN_RTLD
> -I/usr/src/libexec/rtld-elf/i386 -I/usr/src/libexec/rtld-elf -elf -fpic
> -DPIC -std=gnu99 -Wformat=2 -Wno-format-extra-args -Werror -c
> /usr/src/libexec/rtld-elf/i386/rtld_start.S
> cc -O2 -fno-strict-aliasing -pipe  -Wall -DFREEBSD_ELF -DIN_RTLD
> -I/usr/src/libexec/rtld-elf/i386 -I/usr/src/libexec/rtld-elf -elf -fpic
> -DPIC -std=gnu99 -Wformat=2 -Wno-format-extra-args -Werror -c
> /usr/src/libexec/rtld-elf/i386/reloc.c
> cc -O2 -fno-strict-aliasing -pipe  -Wall -DFREEBSD_ELF -DIN_RTLD
> -I/usr/src/libexec/rtld-elf/i386 -I/usr/src/libexec/rtld-elf -elf -fpic
> -DPIC -std=gnu99 -Wformat=2 -Wno-format-extra-args -Werror -c
> /usr/src/libexec/rtld-elf/rtld.c
> /usr/src/libexec/rtld-elf/rtld.c:189: error: `_dlsym' undeclared here
> (not in a function)
> /usr/src/libexec/rtld-elf/rtld.c:189: error: initializer element is not
> constant
> /usr/src/libexec/rtld-elf/rtld.c:189: error: (near initialization for
> `exports[4]')
> *** Error code 1
>
> Stop in /usr/src/libexec/rtld-elf.
>
>
> How to fix this?
> Thanks,
> Alex
> _______________________________________________
> freebsd-stable@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"

Hello

I had the same problem, I've patched the library myself but I don't know how 
to make a proper "patch file" so if you want, here's my patched one :

http://fkraiem.free.fr/rtld.c

Copy into /usr/src/libexec/rtld-elf and follow the instructions given in the 
handbook.

-- 
()  ascii ribbon campaign - against HTML e-mail 
/\  www.asciiribbon.org   - against proprietary attachments




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