<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>&nbsp;</div>
<div>- David<br><br>&nbsp;</div>
<div><span class="gmail_quote">On 2/21/06, <b class="gmail_sendername">Tate Jones</b> &lt;<a href="mailto:tate@bluedog.com.au">tate@bluedog.com.au</a>&gt; 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.&nbsp;&nbsp;Any ideas?<br><br><br>&nbsp;&nbsp;L: libxvidcore.a<br>
ranlib: file: libxvidcore.a(timer.o) has no symbols<br>ranlib: file: libxvidcore.a(timer.o) has no symbols<br>&nbsp;&nbsp;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>&gt; Hm, it should only be '-DPREFIX'. No '=_' needed. The cglobl macro
<br>&gt; will<br>&gt; add the underscore to every function as soon as PREFIX is defined. See<br>&gt; the beginning of one of the asm files...<br>&gt;<br>&gt; Bye,<br>&gt; Michael<br>&gt;<br>&gt;<br>&gt; Quoting Tate Jones &lt;
<a href="mailto:tate@bluedog.com.au">tate@bluedog.com.au</a>&gt;:<br>&gt;<br>&gt;&gt; I have added the -DPREFIX to platform.inc.&nbsp;&nbsp;What are the required<br>&gt;&gt; changes for the makefile?<br>&gt;&gt;<br>&gt;&gt; #<br>&gt;&gt; =====================================================================
<br>&gt;&gt; ===<br>&gt;&gt; ====<br>&gt;&gt; # Assembler<br>&gt;&gt; #<br>&gt;&gt; =====================================================================<br>&gt;&gt; ===<br>&gt;&gt; ====<br>&gt;&gt;<br>&gt;&gt; AS=nasm<br>
&gt;&gt; AFLAGS=-I$(&lt;D)/ -f macho -DPREFIX=_<br>&gt;&gt; ASSEMBLY_EXTENSION=asm<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; On 22/02/2006, at 6:32 AM, Michael Militzer wrote:<br>&gt;&gt;<br>&gt;&gt;&gt; Hi,<br>&gt;&gt;&gt;
<br>&gt;&gt;&gt; there's a macro used in all nasm files to handle the underscore<br>&gt;&gt;&gt; problem.<br>&gt;&gt;&gt; If you need all functions to be prefixed by underscores you should<br>&gt;&gt;&gt; call<br>&gt;&gt;&gt; nasm with -DPREFIX as additional parameter (and change your makefile
<br>&gt;&gt;&gt; accordingly).<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; The 'no symbols' warning seems to be no issue. The timer.c file will<br>&gt;&gt;&gt; be empty if you compile in non-profiling mode (which is ok). So<br>&gt;&gt;&gt; should be
<br>&gt;&gt;&gt; nothing to worry about...<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Regards,<br>&gt;&gt;&gt; Michael<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Quoting Tate Jones &lt;<a href="mailto:tate@bluedog.com.au">tate@bluedog.com.au
</a>&gt;:<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; Correction.&nbsp;&nbsp;The nasm files requires attention on OSX<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; On OSX, the assembly name of the function begins with an underscore<br>&gt;&gt;&gt;&gt; 
e.g. _uyvy_to_yv12_xmm for uyvy_to_yv12_xmm.<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; But the assembly names of the assembly functions in xvidcore do not<br>&gt;&gt;&gt;&gt; begin with an underscore. This means, to really link afterwards
<br>&gt;&gt;&gt;&gt; you<br>&gt;&gt;&gt;&gt; have to add that underscore to every coded function in the file.<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; Any suggestions, other than adding _ to all nasm symbols?<br>&gt;&gt;&gt;&gt;
<br>&gt;&gt;&gt;&gt; On 21/02/2006, at 8:15 PM, Tate Jones wrote:<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt; Recently tried to build libxvidcore.a on an IMac Intel.&nbsp;&nbsp;The<br>&gt;&gt;&gt;&gt;&gt; 'has no<br>&gt;&gt;&gt;&gt;&gt; symbols' message appears, which to my limited knowledge
<br>&gt;&gt;&gt;&gt;&gt; indicates I<br>&gt;&gt;&gt;&gt;&gt; cannot import the library elsewhere.&nbsp;&nbsp;&nbsp;&nbsp;I am trying to build a<br>&gt;&gt;&gt;&gt;&gt; xvid<br>&gt;&gt;&gt;&gt;&gt; quicktime component which relies on this <a href="http://n.ethz.ch/student/">
http://n.ethz.ch/student/</a><br>&gt;&gt;&gt;&gt;&gt; naegelic/ .<br>&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt; Has anyone had any luck with this?<br>&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;A: quant/x86_asm/quantize_mpeg_mmx.asm
<br>&gt;&gt;&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;A: utils/x86_asm/mem_transfer_mmx.asm<br>&gt;&gt;&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;A: utils/x86_asm/mem_transfer_3dne.asm<br>&gt;&gt;&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;A: utils/x86_asm/interlacing_mmx.asm<br>&gt;&gt;&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;A: utils/x86_asm/cpuid.asm
<br>&gt;&gt;&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;L: libxvidcore.a<br>&gt;&gt;&gt;&gt;&gt; ranlib: file: libxvidcore.a(timer.o) has no symbols<br>&gt;&gt;&gt;&gt;&gt; ranlib: file: libxvidcore.a(timer.o) has no symbols<br>&gt;&gt;&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;L: 
libxvidcore.so.4<br>&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------<br>&gt;&gt;&gt;&gt;&gt; XviD has been successfully built.<br>&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt; * Binaries are currently located in the '=build' directory
<br>&gt;&gt;&gt;&gt;&gt; * To install them on your system, you can run '# make install'<br>&gt;&gt;&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; as root.<br>&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------<br>&gt;&gt;&gt;&gt;&gt;
<br>&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt; _______________________________________________<br>&gt;&gt;&gt;&gt;&gt; XviD-users mailing list<br>&gt;&gt;&gt;&gt;&gt; <a href="mailto:XviD-users@xvid.org">XviD-users@xvid.org
</a><br>&gt;&gt;&gt;&gt;&gt; <a href="http://list.xvid.org/mailman/listinfo/xvid-users">http://list.xvid.org/mailman/listinfo/xvid-users</a><br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; _______________________________________________
<br>&gt;&gt;&gt;&gt; XviD-users mailing list<br>&gt;&gt;&gt;&gt; <a href="mailto:XviD-users@xvid.org">XviD-users@xvid.org</a><br>&gt;&gt;&gt;&gt; <a href="http://list.xvid.org/mailman/listinfo/xvid-users">http://list.xvid.org/mailman/listinfo/xvid-users
</a><br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; _______________________________________________<br>&gt;&gt;&gt; XviD-users mailing list<br>&gt;&gt;&gt; <a href="mailto:XviD-users@xvid.org">
XviD-users@xvid.org</a><br>&gt;&gt;&gt; <a href="http://list.xvid.org/mailman/listinfo/xvid-users">http://list.xvid.org/mailman/listinfo/xvid-users</a><br>&gt;&gt;<br>&gt;&gt; _______________________________________________
<br>&gt;&gt; XviD-users mailing list<br>&gt;&gt; <a href="mailto:XviD-users@xvid.org">XviD-users@xvid.org</a><br>&gt;&gt; <a href="http://list.xvid.org/mailman/listinfo/xvid-users">http://list.xvid.org/mailman/listinfo/xvid-users
</a><br>&gt;&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; XviD-users mailing list<br>&gt; <a href="mailto:XviD-users@xvid.org">XviD-users@xvid.org</a><br>&gt; <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>