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>&nbsp;</div>
<div>- David<br><br>&nbsp;</div>
<div><span class=3D"gmail_quote">On 2/21/06, <b class=3D"gmail_sendername">=
Tate Jones</b> &lt;<a href=3D"mailto:[email protected]">[email protected].=
au</a>&gt; 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.&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: libxvi=
dcore.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-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>&gt; Hm, it should only be '-DPREFIX'. No '=3D_' needed. The cglobl macr=
o
<br>&gt; will<br>&gt; add the underscore to every function as soon as PREFI=
X 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=3D"mailto:[email protected]">[email protected]</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; =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>&gt;&gt; =3D=3D=3D<br>&gt;&gt; =3D=3D=3D=3D<br>&gt;&gt; # Assembler<br>=
&gt;&gt; #<br>&gt;&gt; =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>&gt;&gt; =3D=3D=3D<br>&gt;&gt; =3D=3D=3D=3D<br>&gt;&gt;<br>&gt;&g=
t; AS=3Dnasm<br>
&gt;&gt; AFLAGS=3D-I$(&lt;D)/ -f macho -DPREFIX=3D_<br>&gt;&gt; ASSEMBLY_EX=
TENSION=3Dasm<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>&g=
t;&gt;&gt;
<br>&gt;&gt;&gt; there's a macro used in all nasm files to handle the under=
score<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 symb=
ols' 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;&g=
t; 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=3D"mailto:[email protected]">tate@bl=
uedog.com.au
</a>&gt;:<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; Correction.&nbsp;&nbsp;The na=
sm 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;=20
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 n=
ot<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;&g=
t;
<br>&gt;&gt;&gt;&gt; On 21/02/2006, at 8:15 PM, Tate Jones wrote:<br>&gt;&g=
t;&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 re=
lies on this <a href=3D"http://n.ethz.ch/student/">
http://n.ethz.ch/student/</a><br>&gt;&gt;&gt;&gt;&gt; naegelic/ .<br>&gt;&g=
t;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt; Has anyone had any luck with this?<b=
r>&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_transf=
er_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: uti=
ls/x86_asm/interlacing_mmx.asm<br>&gt;&gt;&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nb=
sp;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;&g=
t;&gt;&gt;&gt; ranlib: file: libxvidcore.a(timer.o) has no symbols<br>&gt;&=
gt;&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;L:=20
libxvidcore.so.4<br>&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt; ----------=
-----------------------------------------------------<br>&gt;&gt;&gt;&gt;&g=
t; XviD has been successfully built.<br>&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt=
;&gt;&gt; * Binaries are currently located in the '=3Dbuild' directory
<br>&gt;&gt;&gt;&gt;&gt; * To install them on your system, you can run '# m=
ake install'<br>&gt;&gt;&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; as root.<br>&g=
t;&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>&g=
t;&gt;&gt;&gt;&gt; <a href=3D"mailto:[email protected]">[email protected]=
rg
</a><br>&gt;&gt;&gt;&gt;&gt; <a href=3D"http://list.xvid.org/mailman/listin=
fo/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=3D=
"mailto:[email protected]">[email protected]</a><br>&gt;&gt;&gt;&gt; <a=
 href=3D"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=3D"mailt=
o:[email protected]">
[email protected]</a><br>&gt;&gt;&gt; <a href=3D"http://list.xvid.org/mai=
lman/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=3D"mailto:XviD-use=
[email protected]">[email protected]</a><br>&gt;&gt; <a href=3D"http://list.xvi=
d.org/mailman/listinfo/xvid-users">http://list.xvid.org/mailman/listinfo/xv=
id-users
</a><br>&gt;&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; __________________=
_____________________________<br>&gt; XviD-users mailing list<br>&gt; <a hr=
ef=3D"mailto:[email protected]">[email protected]</a><br>&gt; <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==--