Re: [Fink-users] mplayer compile error on Intel/10.4.11

2008-10-21 Thread Bill McGonigle
Thanks for the fast response.

On Oct 21, 2008, at 17:52, James Bunton wrote:

> Copy mplayer.info & mplayer.patch to /sw/fink/dists/local/main/ 
> finkinfo
> Edit mplayer.patch and remove the last two chunks (aclib_template.c  
> and
> osd_template.c). The file should now have an md5sum of
> ad009d39a4c5a58300060abfe0f69d8f, so update mplayer.info with that.
> Then try rebuilding it and let me know how you go.

Unfortunately that just changed the first few lines of the error:

  {standard input}:62:Junk character 47 (/).
  {standard input}:62:Rest of line ignored. 1st junk character valued  
110 (n).
  {standard input}:344:Unknown pseudo-op: .balign
  {standard input}:344:Rest of line ignored. 1st junk character  
valued 49 (1).
  {standard input}:354:Unknown pseudo-op: .balign

but your excellent instructions gave me a base to experiment from.   
Poking around various mailing list archives, I found that this  
appears to be due to the version of gas on 10.4 and also some  
core2duo instruction set changes.  Cribbing from ffmpeg, libxine, and  
allegro changes, I got a working mplayer by:

changing those two last patches to use:
   "# nop"
rather than:
   "nop"

e.g.

-#define PREFETCH "/nop"
+#define PREFETCH "# nop"

and also adding to the PatchFile section, the line:

   find . -name \*.c -o -name \*.h | xargs grep balign | cut -d: -f1  
| sort -u | xargs perl -pi -e 's,.balign 16,.align 4,g; s,.balign  
8,.align 3,g;'

At that point it compiles, and I can play back several movies with  
mplayer and stretch, pad, and rotate a movie with mencoder.  I'm not  
really sure the best way to test my changes though - all I really  
know is it compiles.

-Bill

-
Bill McGonigle, Owner   Work: 603.448.4440
BFC Computing, LLC  Home: 603.448.1668
[EMAIL PROTECTED]   Cell: 603.252.2606
http://www.bfccomputing.com/Page: 603.442.1833
Blog: http://blog.bfccomputing.com/
VCard: http://bfccomputing.com/vcard/bill.vcf


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users


[Fink-users] mplayer compile error on Intel/10.4.11

2008-10-21 Thread Bill McGonigle
Hi,

I'm getting errors compiling mplayer on 10.4.11/core2duo.  gcc  
version 4.0.1 (Apple Computer, Inc. build 5367).  I saw a bug about  
disabling automatic CPU detection  that went into version 1008  
(current) on the bugtracker, but I'd be surprised if the default  
config would fail on intel.  I installed mplayer on a G4/10.5.5  
machine the other day successfully.

Anyway, if anybody has workarounds or could use additional  
information or a test guinea pig, please let me know.

CPU spec:
   Processor Name:  Intel Core 2 Duo
   Processor Speed: 2.16 GHz
   Number Of Processors:1
   Total Number Of Cores:   2
   L2 Cache (per processor):4 MB

Thanks,
-Bill
-

cc -I../libavcodec -I../libavformat -Wdisabled-optimization -Wno- 
pointer-sign -Wdeclaration-after-statement -I. -I.. -I../libavutil - 
Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=i486 - 
mtune=generic -pipe -ffast-math -fomit-frame-pointer -mdynamic-no-pic  
-falign-loops=16 -DSYS_DARWIN -shared-libgcc -D_LARGEFILE_SOURCE - 
D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DHAVE_CONFIG_H -I/sw/ 
include -I/sw/include/lame -I/sw/lib/fontconfig2/include -I/usr/local/ 
include -mmmx -msse -msse2 -msse3 -msse3 -m3dnow -I/usr/X11R6/include  
-I/sw/lib/freetype219/include/freetype2 -I/sw/lib/freetype219/include  
-I/sw/include -I/sw/include -I/sw/include/dvdnav   -c -o aclib.o aclib.c
{standard input}:62:suffix or operands invalid for `nop'
{standard input}:344:Unknown pseudo-op: .balign
{standard input}:344:Rest of line ignored. 1st junk character valued  
49 (1).
{standard input}:354:Unknown pseudo-op: .balign
{standard input}:354:Rest of line ignored. 1st junk character valued  
49 (1).
{standard input}:476:Unknown pseudo-op: .balign
{standard input}:476:Rest of line ignored. 1st junk character valued  
49 (1).
{standard input}:486:Unknown pseudo-op: .balign
{standard input}:486:Rest of line ignored. 1st junk character valued  
49 (1).
{standard input}:716:Unknown pseudo-op: .balign
{standard input}:716:Rest of line ignored. 1st junk character valued  
49 (1).
{standard input}:726:Unknown pseudo-op: .balign
{standard input}:726:Rest of line ignored. 1st junk character valued  
49 (1).
make[1]: *** [aclib.o] Error 1
make: *** [libvo/libosd.a] Error 2
### execution of make failed, exit code 2
Removing runtime build-lock...
Removing build-lock package...
/sw/bin/dpkg-lockwait -r fink-buildlock-mplayer-1.0.0rc2-1008
(Reading database ... 141662 files and directories currently installed.)
Removing fink-buildlock-mplayer-1.0.0rc2-1008 ...
Failed: phase compiling: mplayer-1.0.0rc2-1008 failed


-
Bill McGonigle, Owner   Work: 603.448.4440
BFC Computing, LLC  Home: 603.448.1668
[EMAIL PROTECTED]   Cell: 603.252.2606
http://www.bfccomputing.com/Page: 603.442.1833
Blog: http://blog.bfccomputing.com/
VCard: http://bfccomputing.com/vcard/bill.vcf


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users