Re: Building on an IMac Intel
"David Wolstencroft" <[email protected]> Tue, 21 Feb 2006 13:14:16 -0800
| Newsgroups | gmane.comp.video.xvid.user |
|---|---|
| Message-ID | <[email protected]> |
--===============1894620580== Content-Type: multipart/alternative; boundary="----=_Part_3649_12384462.1140556456563" ------=_Part_3649_12384462.1140556456563 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline This means that PIC code has not been generated. I'm not completely sure ho= w to do this with nasm and mach-o, but I'd surely like to find out... - David On 2/21/06, Tate Jones <[email protected]> wrote: > > Cheers. > > I continued further with the following error. Any ideas? > > > L: libxvidcore.a > ranlib: file: libxvidcore.a(timer.o) has no symbols > ranlib: file: libxvidcore.a(timer.o) has no symbols > L: libxvidcore.so.4 > /usr/bin/ld: libxvidcore.so-temp.o has local relocation entries in > non-writable section (__TEXT,__text) > collect2: ld returned 1 exit status > make: *** [libxvidcore.so.4] Error 1 > > > > On 22/02/2006, at 6:52 AM, Michael Militzer wrote: > > > Hm, it should only be '-DPREFIX'. No '=3D_' needed. The cglobl macro > > will > > add the underscore to every function as soon as PREFIX is defined. See > > the beginning of one of the asm files... > > > > Bye, > > Michael > > > > > > Quoting Tate Jones <[email protected]>: > > > >> I have added the -DPREFIX to platform.inc. What are the required > >> changes for the makefile? > >> > >> # > >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > >> =3D=3D=3D > >> =3D=3D=3D=3D > >> # Assembler > >> # > >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > >> =3D=3D=3D > >> =3D=3D=3D=3D > >> > >> AS=3Dnasm > >> AFLAGS=3D-I$(<D)/ -f macho -DPREFIX=3D_ > >> ASSEMBLY_EXTENSION=3Dasm > >> > >> > >> > >> On 22/02/2006, at 6:32 AM, Michael Militzer wrote: > >> > >>> Hi, > >>> > >>> there's a macro used in all nasm files to handle the underscore > >>> problem. > >>> If you need all functions to be prefixed by underscores you should > >>> call > >>> nasm with -DPREFIX as additional parameter (and change your makefile > >>> accordingly). > >>> > >>> The 'no symbols' warning seems to be no issue. The timer.c file will > >>> be empty if you compile in non-profiling mode (which is ok). So > >>> should be > >>> nothing to worry about... > >>> > >>> Regards, > >>> Michael > >>> > >>> > >>> Quoting Tate Jones <[email protected]>: > >>> > >>>> Correction. The nasm files requires attention on OSX > >>>> > >>>> On OSX, the assembly name of the function begins with an underscore > >>>> e.g. _uyvy_to_yv12_xmm for uyvy_to_yv12_xmm. > >>>> > >>>> But the assembly names of the assembly functions in xvidcore do not > >>>> begin with an underscore. This means, to really link afterwards > >>>> you > >>>> have to add that underscore to every coded function in the file. > >>>> > >>>> Any suggestions, other than adding _ to all nasm symbols? > >>>> > >>>> On 21/02/2006, at 8:15 PM, Tate Jones wrote: > >>>> > >>>>> Recently tried to build libxvidcore.a on an IMac Intel. The > >>>>> 'has no > >>>>> symbols' message appears, which to my limited knowledge > >>>>> indicates I > >>>>> cannot import the library elsewhere. I am trying to build a > >>>>> xvid > >>>>> quicktime component which relies on this http://n.ethz.ch/student/ > >>>>> naegelic/ . > >>>>> > >>>>> Has anyone had any luck with this? > >>>>> > >>>>> > >>>>> A: quant/x86_asm/quantize_mpeg_mmx.asm > >>>>> A: utils/x86_asm/mem_transfer_mmx.asm > >>>>> A: utils/x86_asm/mem_transfer_3dne.asm > >>>>> A: utils/x86_asm/interlacing_mmx.asm > >>>>> A: utils/x86_asm/cpuid.asm > >>>>> L: libxvidcore.a > >>>>> ranlib: file: libxvidcore.a(timer.o) has no symbols > >>>>> ranlib: file: libxvidcore.a(timer.o) has no symbols > >>>>> L: libxvidcore.so.4 > >>>>> > >>>>> --------------------------------------------------------------- > >>>>> XviD has been successfully built. > >>>>> > >>>>> * Binaries are currently located in the '=3Dbuild' directory > >>>>> * To install them on your system, you can run '# make install' > >>>>> as root. > >>>>> --------------------------------------------------------------- > >>>>> > >>>>> > >>>>> _______________________________________________ > >>>>> XviD-users mailing list > >>>>> [email protected] > >>>>> http://list.xvid.org/mailman/listinfo/xvid-users > >>>> > >>>> _______________________________________________ > >>>> XviD-users mailing list > >>>> [email protected] > >>>> http://list.xvid.org/mailman/listinfo/xvid-users > >>>> > >>> > >>> > >>> > >>> > >>> _______________________________________________ > >>> XviD-users mailing list > >>> [email protected] > >>> http://list.xvid.org/mailman/listinfo/xvid-users > >> > >> _______________________________________________ > >> XviD-users mailing list > >> [email protected] > >> http://list.xvid.org/mailman/listinfo/xvid-users > >> > > > > > > > > > > _______________________________________________ > > XviD-users mailing list > > [email protected] > > http://list.xvid.org/mailman/listinfo/xvid-users > > _______________________________________________ > XviD-users mailing list > [email protected] > http://list.xvid.org/mailman/listinfo/xvid-users > ------=_Part_3649_12384462.1140556456563 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline <div>This means that PIC code has not been generated. I'm not completely su= re how to do this with nasm and mach-o, but I'd surely like to find out...<= /div> <div> </div> <div>- David<br><br> </div> <div><span class=3D"gmail_quote">On 2/21/06, <b class=3D"gmail_sendername">= Tate Jones</b> <<a href=3D"mailto:[email protected]">[email protected].= au</a>> wrote:</span> <blockquote class=3D"gmail_quote" style=3D"PADDING-LEFT: 1ex; MARGIN: 0px 0= px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Cheers.<br><br>I continued furth= er with the following error. Any ideas?<br><br><br> L= : libxvidcore.a<br> ranlib: file: libxvidcore.a(timer.o) has no symbols<br>ranlib: file: libxvi= dcore.a(timer.o) has no symbols<br> L: libxvidcore.so.4<br>/usr/= bin/ld: libxvidcore.so-temp.o has local relocation entries in<br>non-writab= le section (__TEXT,__text) <br>collect2: ld returned 1 exit status<br>make: *** [libxvidcore.so.4] Err= or 1<br><br><br><br>On 22/02/2006, at 6:52 AM, Michael Militzer wrote:<br><= br>> Hm, it should only be '-DPREFIX'. No '=3D_' needed. The cglobl macr= o <br>> will<br>> add the underscore to every function as soon as PREFI= X is defined. See<br>> the beginning of one of the asm files...<br>><= br>> Bye,<br>> Michael<br>><br>><br>> Quoting Tate Jones <= ; <a href=3D"mailto:[email protected]">[email protected]</a>>:<br>>= <br>>> I have added the -DPREFIX to platform.inc. What are= the required<br>>> changes for the makefile?<br>>><br>>>= #<br>>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D <br>>> =3D=3D=3D<br>>> =3D=3D=3D=3D<br>>> # Assembler<br>= >> #<br>>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D<br>>> =3D=3D=3D<br>>> =3D=3D=3D=3D<br>>><br>>&g= t; AS=3Dnasm<br> >> AFLAGS=3D-I$(<D)/ -f macho -DPREFIX=3D_<br>>> ASSEMBLY_EX= TENSION=3Dasm<br>>><br>>><br>>><br>>> On 22/02/2006= , at 6:32 AM, Michael Militzer wrote:<br>>><br>>>> Hi,<br>&g= t;>> <br>>>> there's a macro used in all nasm files to handle the under= score<br>>>> problem.<br>>>> If you need all functions to= be prefixed by underscores you should<br>>>> call<br>>>>= nasm with -DPREFIX as additional parameter (and change your makefile <br>>>> accordingly).<br>>>><br>>>> The 'no symb= ols' warning seems to be no issue. The timer.c file will<br>>>> be= empty if you compile in non-profiling mode (which is ok). So<br>>>&g= t; should be <br>>>> nothing to worry about...<br>>>><br>>>> = Regards,<br>>>> Michael<br>>>><br>>>><br>>>= ;> Quoting Tate Jones <<a href=3D"mailto:[email protected]">tate@bl= uedog.com.au </a>>:<br>>>><br>>>>> Correction. The na= sm files requires attention on OSX<br>>>>><br>>>>> = On OSX, the assembly name of the function begins with an underscore<br>>= >>>=20 e.g. _uyvy_to_yv12_xmm for uyvy_to_yv12_xmm.<br>>>>><br>>>= ;>> But the assembly names of the assembly functions in xvidcore do n= ot<br>>>>> begin with an underscore. This means, to really link= afterwards <br>>>>> you<br>>>>> have to add that underscore to= every coded function in the file.<br>>>>><br>>>>> = Any suggestions, other than adding _ to all nasm symbols?<br>>>>&g= t; <br>>>>> On 21/02/2006, at 8:15 PM, Tate Jones wrote:<br>>&g= t;>><br>>>>>> Recently tried to build libxvidcore.a on= an IMac Intel. The<br>>>>>> 'has no<br>>>&= gt;>> symbols' message appears, which to my limited knowledge <br>>>>>> indicates I<br>>>>>> cannot import = the library elsewhere. I am trying to build a<br>>= ;>>>> xvid<br>>>>>> quicktime component which re= lies on this <a href=3D"http://n.ethz.ch/student/"> http://n.ethz.ch/student/</a><br>>>>>> naegelic/ .<br>>&g= t;>>><br>>>>>> Has anyone had any luck with this?<b= r>>>>>><br>>>>>><br>>>>>> = ; A: quant/x86_asm/quantize_mpeg_mmx.asm <br>>>>>> A: utils/x86_asm/mem_transf= er_mmx.asm<br>>>>>> A: utils/x86_asm/= mem_transfer_3dne.asm<br>>>>>> A: uti= ls/x86_asm/interlacing_mmx.asm<br>>>>>> &nb= sp;A: utils/x86_asm/cpuid.asm <br>>>>>> L: libxvidcore.a<br>>>= ;>>> ranlib: file: libxvidcore.a(timer.o) has no symbols<br>>&g= t;>>> ranlib: file: libxvidcore.a(timer.o) has no symbols<br>>&= gt;>>> L:=20 libxvidcore.so.4<br>>>>>><br>>>>>> ----------= -----------------------------------------------------<br>>>>>&g= t; XviD has been successfully built.<br>>>>>><br>>>>= ;>> * Binaries are currently located in the '=3Dbuild' directory <br>>>>>> * To install them on your system, you can run '# m= ake install'<br>>>>>> as root.<br>&g= t;>>>> --------------------------------------------------------= -------<br>>>>>> <br>>>>>><br>>>>>> __________________________= _____________________<br>>>>>> XviD-users mailing list<br>&g= t;>>>> <a href=3D"mailto:[email protected]">[email protected]= rg </a><br>>>>>> <a href=3D"http://list.xvid.org/mailman/listin= fo/xvid-users">http://list.xvid.org/mailman/listinfo/xvid-users</a><br>>= >>><br>>>>> __________________________________________= _____ <br>>>>> XviD-users mailing list<br>>>>> <a href=3D= "mailto:[email protected]">[email protected]</a><br>>>>> <a= href=3D"http://list.xvid.org/mailman/listinfo/xvid-users">http://list.xvid= .org/mailman/listinfo/xvid-users </a><br>>>>><br>>>><br>>>><br>>>><br= >>>><br>>>> _____________________________________________= __<br>>>> XviD-users mailing list<br>>>> <a href=3D"mailt= o:[email protected]"> [email protected]</a><br>>>> <a href=3D"http://list.xvid.org/mai= lman/listinfo/xvid-users">http://list.xvid.org/mailman/listinfo/xvid-users<= /a><br>>><br>>> _______________________________________________ <br>>> XviD-users mailing list<br>>> <a href=3D"mailto:XviD-use= [email protected]">[email protected]</a><br>>> <a href=3D"http://list.xvi= d.org/mailman/listinfo/xvid-users">http://list.xvid.org/mailman/listinfo/xv= id-users </a><br>>><br>><br>><br>><br>><br>> __________________= _____________________________<br>> XviD-users mailing list<br>> <a hr= ef=3D"mailto:[email protected]">[email protected]</a><br>> <a href= =3D"http://list.xvid.org/mailman/listinfo/xvid-users"> http://list.xvid.org/mailman/listinfo/xvid-users</a><br><br>_______________= ________________________________<br>XviD-users mailing list<br><a href=3D"m= ailto:[email protected]">[email protected]</a><br><a href=3D"http://lis= t.xvid.org/mailman/listinfo/xvid-users"> http://list.xvid.org/mailman/listinfo/xvid-users</a><br></blockquote></div>= <br> ------=_Part_3649_12384462.1140556456563-- --===============1894620580== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ XviD-users mailing list [email protected] http://list.xvid.org/mailman/listinfo/xvid-users --===============1894620580==--