FreeBSD native xanim (was Re: Native Applixware for FreeBSD -- When? )
-BEGIN PGP SIGNED MESSAGE- Bill Fumerola wrote: >How often do I see a author make a program and release _one_ FreeBSD >binary and about 5 different binaries depending on what linux libc format >you have. On a related note, I don't know if people use xanim, a movie viewer in the ports collection, but it's recently been upgraded to support dynamically loadable codecs. The problem is that none of the codecs are compiled for FreeBSD, although there are three Linux versions :-). To use them (really to use the program at all) you have to compile a Linux version of xanim and run under emulation (which works really well, thanks emulation guys!). Yes, I've tried using the Linux codecs on the FreeBSD binary. No dice. The author is perfectly willing to compile these codecs for FreeBSD, but because he's under NDA for the codecs he can only release compiled versions. He's only willing to compile versions for other OSes under Linux (i.e. compile the codecs for FreeBSD on his Linux machine) or on a donated machine. (His reasoning for this, which IMHO is rational, is on http://xanim.va.pubnix.com/xa_dlls.html ) Given that he's running Linux, is a "cross-compiling environment" any more complex than having him link against our libc? If not can someone give me an idea what he does need. I'm delighted to act as a contact point and a tester for the xanim author, but I just don't know enough about our link environment. Anyone want to enlighten me? (I tried this on multimedia, and got no response). - -- Ted Faberfa...@isi.edu USC/ISI Computer Scientist http://www.isi.edu/~faber (310) 822-1511 x190 PGP Key: http://www.isi.edu/~faber/pubkey.asc -BEGIN PGP SIGNATURE- Version: 2.6.2 iQCVAwUBNzh724b4eisfQ5rpAQGgSgP+NohAmLnZxdWK9D9lYGyjLoQ0vhUtMb1u LsgVyZ2YSgH0p2sqaNN5ZWIHY8+GeuSPh9Xedl7/PI+2YdPABAyWXOOl2kklinE+ fl3eRIyN2D36eyjlhjcATASTCMmpGYeGAZ81dijn8MJuA31rOjW5Ev5LJfwfp6cJ DE5oRjP2KNY= =Vl1i -END PGP SIGNATURE- To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-hackers" in the body of the message
Re: FreeBSD native xanim (was Re: Native Applixware for FreeBSD -- When? )
> On a related note, I don't know if people use xanim, a movie viewer in > the ports collection, but it's recently been upgraded to support > dynamically loadable codecs. The problem is that none of the codecs > are compiled for FreeBSD, although there are three Linux versions :-). > To use them (really to use the program at all) you have to compile a > Linux version of xanim and run under emulation (which works really well, > thanks > emulation guys!). > > Yes, I've tried using the Linux codecs on the FreeBSD binary. No dice. > > The author is perfectly willing to compile these codecs for FreeBSD, > but because he's under NDA for the codecs he can only release compiled > versions. He's only willing to compile versions for other OSes under > Linux (i.e. compile the codecs for FreeBSD on his Linux machine) or on > a donated machine. (His reasoning for this, which IMHO is rational, > is on http://xanim.va.pubnix.com/xa_dlls.html ) > > Given that he's running Linux, is a "cross-compiling environment" any > more complex than having him link against our libc? If not can > someone give me an idea what he does need. > > I'm delighted to act as a contact point and a tester for the xanim > author, but I just don't know enough about our link environment. > > Anyone want to enlighten me? (I tried this on multimedia, and got no > response). > > - -- > Ted Faberfa...@isi.edu > USC/ISI Computer Scientist http://www.isi.edu/~faber > (310) 822-1511 x190 PGP Key: http://www.isi.edu/~faber/pubkey.asc > The only reason some of the linux codecs are not useable on FreeBSD is the reference of symbol __IO_stderr, it should be quite easy to convert them to references to &__sF[2]. -lq To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-hackers" in the body of the message
Re: FreeBSD native xanim (was Re: Native Applixware for FreeBSD -- When? )
On Tue, May 11, 1999 at 11:50:04AM -0700, Ted Faber wrote: > > [xanim modules for Linux only, author lacks a build env] > There are a couple of people with shell accounts on my machines, who use them to compile FreeBSD versions of things. I'm more than happy to provide more (although some of the machines are laboriously slow). They're all in New Zealand, which isn't as far from the west coast USA in network terms as you might think. It just occurs to me that a list of people prepared to offer compilation environments to people who insist in distributing binaries might be helpful. Here's a start, anyway: Joe Abley , 4.0-CURRENT, 2.2.8, 3.1 Joe To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-hackers" in the body of the message
Re: FreeBSD native xanim (was Re: Native Applixware for FreeBSD -- When? )
-BEGIN PGP SIGNED MESSAGE- Joe Abley wrote: >On Tue, May 11, 1999 at 11:50:04AM -0700, Ted Faber wrote: >> >> [xanim modules for Linux only, author lacks a build env] >> > >There are a couple of people with shell accounts on my machines, who use >them to compile FreeBSD versions of things. I'm more than happy to provide >more (although some of the machines are laboriously slow). They're all >in New Zealand, which isn't as far from the west coast USA in network >terms as you might think. Thanks for the offer, Joe, and I think it's generally a good thing, but the xanim author won't go that route. See http://xanim.va.pubnix.com/xa_dlls.html . The short form is that the NDA he's under (or at least his interpretation thereof) won't let him upload to an account and compile there. > >It just occurs to me that a list of people prepared to offer compilation >environments to people who insist in distributing binaries might be helpful. I think that's a good idea. Is there some human at FreeBSD who would be willing to keep track of such a list and put it on a web page? Or is there too little cost/benefit? - -- Ted Faberfa...@isi.edu USC/ISI Computer Scientist http://www.isi.edu/~faber (310) 822-1511 x190 PGP Key: http://www.isi.edu/~faber/pubkey.asc -BEGIN PGP SIGNATURE- Version: 2.6.2 iQCVAwUBNzidRob4eisfQ5rpAQH75wQAjTduOGo0ut1DBKoi08NKVRDtKMeoOG7l RTIuM63bSJdpGKqp9JZYoRDITdcEQuvACgPkar4HbgD9TNAtal8HU3JEZPFQS3rx 4sDVIa7/9EDJD9xVI4oGDq1LIm6VYi6weisxX/hiXKJTYnH9fkoyRfUN4QwC4c/p 9YAO1sjm21s= =BC0Q -END PGP SIGNATURE- To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-hackers" in the body of the message
Re: FreeBSD native xanim (was Re: Native Applixware for FreeBSD -- When? )
On Tue, 11 May 1999, Ted Faber wrote: > >It just occurs to me that a list of people prepared to offer compilation > >environments to people who insist in distributing binaries might be helpful. > > I think that's a good idea. Is there some human at FreeBSD who would > be willing to keep track of such a list and put it on a web page? Or > is there too little cost/benefit? If there is enough people, I'll make a FAQ entry. - bill fumerola - bi...@chc-chimes.com - BF1560 - computer horizons corp - - ph:(800) 252-2421 - bfume...@computerhorizons.com - bi...@freebsd.org - To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-hackers" in the body of the message
Re: FreeBSD native xanim (was Re: Native Applixware for FreeBSD -- When? )
> Thanks for the offer, Joe, and I think it's generally a good thing, > but the xanim author won't go that route. See > http://xanim.va.pubnix.com/xa_dlls.html . The short form is that the > NDA he's under (or at least his interpretation thereof) won't let him > upload to an account and compile there. Why not have someone with a Linux box build a Linux->FreeBSD cross compiler for the xanim author. I did this a couple of years ago for a Solaris->FreeBSD (elf) cross compiler without too much of a problem. Since we're now officially at ELF and using the GNU toolchain, it shouldn't be too difficult to do. And no, I'm not volunteering - my plate is full (and I don't have a Linux box any longer :-)). Hmm, if this were done, perhaps we could make it available for other Linux vendors to use in building native FreeBSD apps... Dan Eischen eisc...@vigrid.com To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-hackers" in the body of the message
Re: FreeBSD native xanim (was Re: Native Applixware for FreeBSD -- When? )
[I am Bcc-ing Mark Podlipec since he might give us some input -- Mark, we were discussing about FreeBSD versions of the DLL's] > > but the xanim author won't go that route. See > > http://xanim.va.pubnix.com/xa_dlls.html . The short form is that the > > NDA he's under (or at least his interpretation thereof) won't let him > > upload to an account and compile there. > > Why not have someone with a Linux box build a Linux->FreeBSD cross > compiler for the xanim author. I did this a couple of years ago i think the necessary hardware would cost $1000 or less, and FreeBSD,Inc has some funds for this thipe of things i suppose. It is just a matter of deciding whether this is something worthwhile doing, and seeing if mark podlipec (Xanim's author) can handle cash or he needs a preinstalled machine shipped to him. Jordan, what do you think ? cheers luigi ---+- Luigi RIZZO, lu...@iet.unipi.it . Dip. di Ing. dell'Informazione http://www.iet.unipi.it/~luigi/ . Universita` di Pisa TEL/FAX: +39-050-568.533/522 . via Diotisalvi 2, 56126 PISA (Italy) http://www.iet.unipi.it/~luigi/ngc99/ First International Workshop on Networked Group Communication ---+- To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-hackers" in the body of the message
Re: FreeBSD native xanim (was Re: Native Applixware for FreeBSD -- When? )
> Jordan, what do you think ? I don't think it's worth it for just xanim. Give me more incentive than this. :) - Jordan To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-hackers" in the body of the message
Re: FreeBSD native xanim (was Re: Native Applixware for FreeBSD -- When? )
> > On a related note, I don't know if people use xanim, a movie viewer in > > the ports collection, but it's recently been upgraded to support > > dynamically loadable codecs. The problem is that none of the codecs > > are compiled for FreeBSD, although there are three Linux versions :-). > > To use them (really to use the program at all) you have to compile a > > Linux version of xanim and run under emulation (which works really well, > > thanks > > emulation guys!). > > > > Yes, I've tried using the Linux codecs on the FreeBSD binary. No dice. > > > > The author is perfectly willing to compile these codecs for FreeBSD, > > but because he's under NDA for the codecs he can only release compiled > > versions. He's only willing to compile versions for other OSes under > > Linux (i.e. compile the codecs for FreeBSD on his Linux machine) or on > > a donated machine. (His reasoning for this, which IMHO is rational, > > is on http://xanim.va.pubnix.com/xa_dlls.html ) > > > > Given that he's running Linux, is a "cross-compiling environment" any > > more complex than having him link against our libc? If not can > > someone give me an idea what he does need. > > > > I'm delighted to act as a contact point and a tester for the xanim > > author, but I just don't know enough about our link environment. > > > > Anyone want to enlighten me? (I tried this on multimedia, and got no > > response). > > > > - -- > > Ted Faberfa...@isi.edu > > USC/ISI Computer Scientist http://www.isi.edu/~faber > > (310) 822-1511 x190 PGP Key: http://www.isi.edu/~faber/pubkey.asc > > > The only reason some of the linux codecs are not useable on FreeBSD is > the reference of symbol __IO_stderr, it should be quite easy to convert > them to references to &__sF[2]. > > -lq > Compile this little program, use it to process the linux .xa files, and they should be useable on FreeBSD. -lq #include #include #include #include #include #include main(int argc, char **argv) { int fd, i; void *addr; Elf_Ehdr *eh; Elf_Phdr *ph; Elf_Dyn *ed; Elf_Rel *reltab, *er; Elf_Sym *symtab; char *strtab, *name; int relsz, relent; struct stat stb; if (argc < 2) exit(1); fd = open(argv[1], O_RDWR); if (fd < 0) err(1, "%s", argv[1]); if (fstat(fd, &stb) < 0) { close(fd); err(-1, "fstat: %s", argv[1]); } addr = mmap(0, stb.st_size, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); close(fd); if ((int)addr == -1) err(-1, "mmap"); eh = (Elf_Ehdr *)addr; if (!IS_ELF(*eh)) err(1, "%s: not an ELF file", argv[1]); ph = (Elf_Phdr *)((unsigned)addr + eh->e_phoff); for (i = 0; i < eh->e_phnum; i++, ph++) { if (ph->p_type == PT_DYNAMIC) break; } if (i >= eh->e_phnum) err(-1, "no dynamic section"); ed = (Elf_Dyn *)((unsigned)addr + ph->p_offset); for (; ed->d_tag != DT_NULL; ed++) { if (ed->d_tag == DT_STRTAB) strtab = (char *)((unsigned)addr + ed->d_un.d_val); if (ed->d_tag == DT_SYMTAB) symtab = (Elf_Sym *)((unsigned)addr + ed->d_un.d_val); if (ed->d_tag == DT_REL) reltab = (Elf_Rel *)((unsigned)addr + ed->d_un.d_val); if (ed->d_tag == DT_RELSZ) relsz = ed->d_un.d_val; if (ed->d_tag == DT_RELENT) relent = ed->d_un.d_val; } for (i = 0, er = reltab; i < relsz / relent; i++, er++) { name = &strtab[symtab[ELF_R_SYM(er->r_info)].st_name]; if (strcmp("_IO_stderr_", name)) continue; strcpy(name, "__sF"); *(unsigned long *)((unsigned)addr + er->r_offset) += (unsigned)stderr - (unsigned)stdin; } munmap(addr, stb.st_size); } To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-hackers" in the body of the message
Re: FreeBSD native xanim (was Re: Native Applixware for FreeBSD -- When? )
On 11 May 1999 at 22:36, Luigi Rizzo wrote: > i think the necessary hardware would cost $1000 or less, and FreeBSD,Inc > has some funds for this thipe of things i suppose. It is just a > matter of deciding whether this is something worthwhile doing, and > seeing if mark podlipec (Xanim's author) can handle cash or he > needs a preinstalled machine shipped to him. vmware to the rescue? + a couple of hundred megs of disk space Jacques Vidrine / n...@nectar.cc / nec...@freebsd.org To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-hackers" in the body of the message
Re: FreeBSD native xanim (was Re: Native Applixware for FreeBSD -- When? )
> > matter of deciding whether this is something worthwhile doing, and > > seeing if mark podlipec (Xanim's author) can handle cash or he > > needs a preinstalled machine shipped to him. > > vmware to the rescue? + a couple of hundred megs of disk space possibly, yes... luigi To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-hackers" in the body of the message
Re: FreeBSD native xanim (was Re: Native Applixware for FreeBSD -- When? )
Luigi Rizzo wrote: > > [I am Bcc-ing Mark Podlipec since he might give us some input -- Mark, > we were discussing about FreeBSD versions of the DLL's] > > > > but the xanim author won't go that route. See > > > http://xanim.va.pubnix.com/xa_dlls.html . The short form is that the > > > NDA he's under (or at least his interpretation thereof) won't let him > > > upload to an account and compile there. > > > > Why not have someone with a Linux box build a Linux->FreeBSD cross > > compiler for the xanim author. I did this a couple of years ago > > i think the necessary hardware would cost $1000 or less, and FreeBSD,Inc > has some funds for this thipe of things i suppose. It is just a > matter of deciding whether this is something worthwhile doing, and > seeing if mark podlipec (Xanim's author) can handle cash or he > needs a preinstalled machine shipped to him. I'd really rather have the cross-compilers. One for ELF and one for the older freebsd object file format(A.OUT?). That way every time I make a change I can just type "make freebsdELF" and "make freebsd" right afterwards. The problem with a separate machine(or OS partition) is the time it takes to setup and maintain and more importantly having to transfer the correct sources across to it and then transfer the compiled module back from it every time something changes. It doesn't sound like much but it really eats up the time. Especially given the number of different systems I'll have to support. Someone has attempted to send me a FreeBSD ELF cross-compiler but it was missing a section due to tar archiving a link and not the directory the link pointed to. They will be sending me the missing part soon, hopefully. I did have a freebsd cross-compiler for a sunos 4.x system but it didn't have enough to do the DLLs and beside my sunos 4.x system is going away in a week or so. The cross-compiler should be for a linux x86 glib 2.x system(since I don't have easy access to a libc 5.0 system). Mark To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-hackers" in the body of the message
Re: FreeBSD native xanim (was Re: Native Applixware for FreeBSD -- When? )
> I'd really rather have the cross-compilers. One for ELF and one for > the older freebsd object file format(A.OUT?). That way every time > I make a change I can just type "make freebsdELF" and "make freebsd" > right afterwards. ... > The problem with a separate machine(or OS partition) is the time it > takes to setup and maintain and more importantly having to transfer > the correct sources across to it and then transfer the compiled module i can understand the problems with a separate OS partition, which would force you to reboot, but with a separate machine the only trouble i can see is having one more box around -- NFS and diskless really help a lot for everything else. The system (if you use a 3.1S/3.2 should be relatively stable so you should not need to upgrade for a reasonably long time. Someone suggested vmware and run a FreeBSD system under Linux on it ? cheers luigi To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-hackers" in the body of the message
Re: FreeBSD native xanim (was Re: Native Applixware for FreeBSD -- When? )
>> The only reason some of the linux codecs are not useable on FreeBSD is >> the reference of symbol __IO_stderr, it should be quite easy to convert >> them to references to &__sF[2]. > > Compile this little program, use it to process the linux .xa files, and they > should be useable on FreeBSD. Hi. This is ishizuka. It's great!!! Thank you very much. -- ishiz...@ish.org To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-hackers" in the body of the message
Re: FreeBSD native xanim (was Re: Native Applixware for FreeBSD -- When? )
On Thu, 13 May 1999, Masachika ISHIZUKA wrote: >>> The only reason some of the linux codecs are not useable on FreeBSD is >>> the reference of symbol __IO_stderr, it should be quite easy to convert >>> them to references to &__sF[2]. >> >> Compile this little program, use it to process the linux .xa files, and they >> should be useable on FreeBSD. > > Hi. This is ishizuka. > It's great!!! Thank you very much. Hmmm, maybe someone should just fire these .xa files back to Mr. Xanim for the FreeBSD port? OR, add this little program to the freebsd port to convert the files? Maybe that would be better yet. Brian To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-hackers" in the body of the message
Re: FreeBSD native xanim (was Re: Native Applixware for FreeBSD -- When? )
On Tue, 11-May-1999 at 11:50:04 -0700, Ted Faber wrote: > -BEGIN PGP SIGNED MESSAGE- > > > Bill Fumerola wrote: > >How often do I see a author make a program and release _one_ FreeBSD > >binary and about 5 different binaries depending on what linux libc format > >you have. > > On a related note, I don't know if people use xanim, a movie viewer in > the ports collection, but it's recently been upgraded to support > dynamically loadable codecs. The problem is that none of the codecs > are compiled for FreeBSD, although there are three Linux versions :-). > To use them (really to use the program at all) you have to compile a > Linux version of xanim and run under emulation (which works really well, > thanks > emulation guys!). > > Yes, I've tried using the Linux codecs on the FreeBSD binary. No dice. It works here with the FreeBSD binary. There are two things I have done: 1. copy the DLL's in the following order to /usr/X11R6/lib/X11/xanim vid_iv32_2.1_linuxELFx86c5.xa vid_iv41_1.0_linuxELFx86c5.xa vid_iv50_1.0_linuxELFx86c5.xa vid_cvid_2.0_linuxELFx86c5.xa vid_cyuv_1.0_linuxELFx86c5.xa vid_h261_1.0_linuxELFx86c5.xa vid_h263_1.0_linuxELFx86c5.xa 2. run xanim through the following script (of course, you need the linuxemu). #!/bin/sh export XANIM_MOD_DIR=/usr/X11R6/lib/X11/xanim export LD_LIBRARY_PATH=/compat/linux/lib exec xanim.bin +Aev90 +Sr +Wp +Zper +v "$@" BTW, there is a bug in the ports Makefile: --- Makefile.ORIMon Apr 12 10:57:50 1999 +++ MakefileMon Apr 12 10:53:29 1999 @@ -18,8 +18,8 @@ EXTRACT_ONLY= ${DISTNAME}.tar.gz USE_IMAKE= yes MAN1= xanim.1 -MAKE_ENV= XA_IV32_DEF=-DXA_INDEO \ - XA_CVID_DEF=-DXA_CINEPAK \ +MAKE_ENV= XA_IV32_DEF=-DXA_IV32 \ + XA_CVID_DEF=-DXA_CVID \ XA_CYUV_DEF=-DXA_CYUV .include -Andre To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-hackers" in the body of the message