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
On 1/24/07, Alexandre Vasconcelos <alexandre.barreto@terceirizado.mda.gov.br> wrote:> 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: >:> How to fix this?Apply the missing patch hunk (vi libexec/rtld-elf/rtld.c.rej) to libexec/rtld-elf/rtld.c. Scot -- DISCLAIMER: No electrons were mamed while sending this message. Only slightly bruised.
Scot Hetzel wrote:> Apply the missing patch hunk (vi libexec/rtld-elf/rtld.c.rej) to > libexec/rtld-elf/rtld.c.Thanks for answering Scot, and sorry for ignorance.. how can I do it? Thanks again, Alex
On 1/24/07, Alexandre Vasconcelos <alexandre.barreto@terceirizado.mda.gov.br> wrote:> Scot Hetzel wrote: > > > Apply the missing patch hunk (vi libexec/rtld-elf/rtld.c.rej) to > > libexec/rtld-elf/rtld.c. > > > Thanks for answering Scot, and sorry for ignorance.. how can I do it? >Open /usr/src/libexec/rtld-elf/rtld.c.rej in one window, and /usr/src/libexec/rtld-elf/rtld.c in another window. Goto line 129 in /usr/src/libexec/rtld-elf/rtld.c and add the missing _dlsym information from the *.rej file. Scot -- DISCLAIMER: No electrons were mamed while sending this message. Only slightly bruised.
On Wed, 24 Jan 2007 12:36:06 -0600 "Scot Hetzel" <swhetzel@gmail.com> wrote:> On 1/24/07, Alexandre Vasconcelos > <alexandre.barreto@terceirizado.mda.gov.br> wrote: > > 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: > > > : > > 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 -------------- next part -------------- A non-text attachment was scrubbed... Name: rtld_dlsym_hack_new.diff Type: text/x-patch Size: 835 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20070124/eb454d1a/rtld_dlsym_hack_new.bin
Tobias Roth wrote:> For your convenience: http://fsck.ch/rtld_dlsym_hack_new.diff > or the attached file (if it makes it through).Thank you guys, for all responses. Alex
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
Torfinn Ingolfsen <> wrote on Wednesday, January 24, 2007 10:51 PM:> On Wed, 24 Jan 2007 13:11:16 -0600 > ejc <eric.j.christeson@gmail.com> wrote: > >> rtld.c has changed a bit over time so here's a patch against the new >> file. > > BTW, what is the reason this "hack" isn't included in the base kernel > / code?Because it is probably unnecessary? I run a recent 6-STABLE and use the flash7 plugin *without* this patch. I am using Opera, though, not Firefox... Helge
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
Kai Lockwood <> wrote on Friday, January 26, 2007 5:10 AM:> Oliver Fromme wrote: >> Helge.Oldach@atosorigin.com wrote: >> > Torfinn Ingolfsen wrote: >> > > BTW, what is the reason this "hack" isn't included in the base kernel > > / code? >> > >> > Because it is probably unnecessary? I run a recent 6-STABLE and use >> > the flash7 plugin *without* this patch. I am using Opera, though, not > Firefox... >> >> Same here. I use Opera with the Flash plugin on 6-STABLE >> without any problems. I haven't applied a patch to rtld. >> > This is a Firefox specific patch which requires the rtld be patched. > Many thanks to those who have provided patch updates because I was at > a lost without them. >Ummm... In that case the application should be fixed rather than patching the operating system. Which finally explains why this patch should definitely not be included in the base. Helge