Opened 13 years ago

Closed 12 years ago

#30995 closed defect (fixed)

xine-lib build fails on Lion (10.7.1)

Reported by: AP1010 Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.1
Keywords: Cc: alphafighter1@…, crashed@…
Port: xine-lib

Description (last modified by mf2k (Frank Schima))

memcpy.c fails to compile. The error message:

:info:build memcpy.c: In function ‘xine_probe_fast_memcpy’:
:info:build memcpy.c:484: warning: passing argument 4 of ‘xine->config->register_enum’ from incompatible pointer type
:info:build memcpy.c: In function ‘linux_kernel_memcpy_impl’:
:info:build memcpy.c:147: error: unsupported inline asm: input constraint with a matching output constraint of incompatible type!

Attachments (3)

main.log (198.2 KB) - added by AP1010 13 years ago.
main.log
main.2.log (213.1 KB) - added by jeremyagost@… 13 years ago.
Build log with memcpy error
memcpy.patch (407 bytes) - added by jeremyagost@… 13 years ago.
Inline assembly fix for 64 bit

Download all attachments as: .zip

Change History (10)

Changed 13 years ago by AP1010

Attachment: main.log added

main.log

comment:1 Changed 13 years ago by mf2k (Frank Schima)

Description: modified (diff)
Keywords: memcpy removed

comment:2 Changed 13 years ago by alphafighter1@…

Cc: alphafighter1@… added

Cc Me!

comment:3 Changed 13 years ago by crashed@…

Cc: crashed@… added

Cc Me!

Changed 13 years ago by jeremyagost@…

Attachment: main.2.log added

Build log with memcpy error

comment:4 Changed 13 years ago by jeremyagost@…

I've noticed the same error in my build log, though earlier in the build there's a problem with libtool linking libxineposix.la.

comment:5 Changed 13 years ago by jeremyagost@…

Alright the "inline assembly" problem should only be present on a 64-bit system. Changing the "int" declaration to a "long long" on line 141 in src/xine-utils/memcpy.c will fix the problem on 64-bit though I still have make errors that look like they're coming from the linking.

Changed 13 years ago by jeremyagost@…

Attachment: memcpy.patch added

Inline assembly fix for 64 bit

comment:6 Changed 13 years ago by jeremyagost@…

Uploaded a simple patch, put it in the downloaded source folder (something like "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_xine-lib/xine-lib/work/xine-lib-1.1.19") and run

patch -p1 -i memcpy.patch

You'll probably have to use sudo to place the file and run the command. It could probably be added to the master port entry but I don't really know how to set up a local port mirror so I can't test it.

comment:7 Changed 12 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

Version 1.2.1 seems to be building OK on 10.7 now.

Note: See TracTickets for help on using tickets.