<div>This means that PIC code has not been generated. I'm not completely sure 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="gmail_quote">On 2/21/06, <b class="gmail_sendername">Tate Jones</b> <<a href="mailto:tate@bluedog.com.au">tate@bluedog.com.au</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Cheers.<br><br>I continued further 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: libxvidcore.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-writable section (__TEXT,__text)
<br>collect2: ld returned 1 exit status<br>make: *** [libxvidcore.so.4] Error 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 '=_' needed. The cglobl macro
<br>> will<br>> add the underscore to every function as soon as PREFIX 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="mailto:tate@bluedog.com.au">tate@bluedog.com.au</a>>:<br>><br>>> I have added the -DPREFIX to platform.inc. What are the required<br>>> changes for the makefile?<br>>><br>>> #<br>>> =====================================================================
<br>>> ===<br>>> ====<br>>> # Assembler<br>>> #<br>>> =====================================================================<br>>> ===<br>>> ====<br>>><br>>> AS=nasm<br>
>> AFLAGS=-I$(<D)/ -f macho -DPREFIX=_<br>>> ASSEMBLY_EXTENSION=asm<br>>><br>>><br>>><br>>> On 22/02/2006, at 6:32 AM, Michael Militzer wrote:<br>>><br>>>> Hi,<br>>>>
<br>>>> there's a macro used in all nasm files to handle the underscore<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 symbols' 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>>>> should be
<br>>>> nothing to worry about...<br>>>><br>>>> Regards,<br>>>> Michael<br>>>><br>>>><br>>>> Quoting Tate Jones <<a href="mailto:tate@bluedog.com.au">tate@bluedog.com.au
</a>>:<br>>>><br>>>>> Correction. The nasm files requires attention on OSX<br>>>>><br>>>>> On OSX, the assembly name of the function begins with an underscore<br>>>>>
e.g. _uyvy_to_yv12_xmm for uyvy_to_yv12_xmm.<br>>>>><br>>>>> But the assembly names of the assembly functions in xvidcore do not<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>>>>>
<br>>>>> On 21/02/2006, at 8:15 PM, Tate Jones wrote:<br>>>>><br>>>>>> Recently tried to build libxvidcore.a on an IMac Intel. The<br>>>>>> 'has no<br>>>>>> 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 relies on this <a href="http://n.ethz.ch/student/">
http://n.ethz.ch/student/</a><br>>>>>> naegelic/ .<br>>>>>><br>>>>>> Has anyone had any luck with this?<br>>>>>><br>>>>>><br>>>>>> A: quant/x86_asm/quantize_mpeg_mmx.asm
<br>>>>>> A: utils/x86_asm/mem_transfer_mmx.asm<br>>>>>> A: utils/x86_asm/mem_transfer_3dne.asm<br>>>>>> A: utils/x86_asm/interlacing_mmx.asm<br>>>>>> A: utils/x86_asm/cpuid.asm
<br>>>>>> L: libxvidcore.a<br>>>>>> ranlib: file: libxvidcore.a(timer.o) has no symbols<br>>>>>> ranlib: file: libxvidcore.a(timer.o) has no symbols<br>>>>>> L:
libxvidcore.so.4<br>>>>>><br>>>>>> ---------------------------------------------------------------<br>>>>>> XviD has been successfully built.<br>>>>>><br>>>>>> * Binaries are currently located in the '=build' directory
<br>>>>>> * To install them on your system, you can run '# make install'<br>>>>>> as root.<br>>>>>> ---------------------------------------------------------------<br>>>>>>
<br>>>>>><br>>>>>> _______________________________________________<br>>>>>> XviD-users mailing list<br>>>>>> <a href="mailto:XviD-users@xvid.org">XviD-users@xvid.org
</a><br>>>>>> <a href="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="mailto:XviD-users@xvid.org">XviD-users@xvid.org</a><br>>>>> <a href="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="mailto:XviD-users@xvid.org">
XviD-users@xvid.org</a><br>>>> <a href="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="mailto:XviD-users@xvid.org">XviD-users@xvid.org</a><br>>> <a href="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="mailto:XviD-users@xvid.org">XviD-users@xvid.org</a><br>> <a href="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="mailto:XviD-users@xvid.org">XviD-users@xvid.org</a><br><a href="http://list.xvid.org/mailman/listinfo/xvid-users">
http://list.xvid.org/mailman/listinfo/xvid-users</a><br></blockquote></div><br>