Opened 12 years ago

Closed 10 years ago

#36538 closed defect (fixed)

libdc1394: bump to 2.2.0 + apply patch for buggy OSX firewire stack

Reported by: devernay (Frédéric Devernay) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc:
Port: libdc1394

Description (last modified by mf2k (Frank Schima))

bump to 2.2.0 is trivial.

checksums           sha1    7e831258a65e7e111a9d52d8062aec6d28a1e4c4 \
                    rmd160  41a8bc28824a58bcdfdbd3226adf4b0c88555574

adding the attached patch suppresses many error messages from using libdc1394 with a firewire camera:

# fix issue due to bug in OSX Firewire stack
# http://permalink.gmane.org/gmane.comp.multimedia.libdc1394.devel/517
patchfiles libdc1394-macosx-status.patch

Attachments (4)

libdc1394-macosx-status.patch (613 bytes) - added by devernay (Frédéric Devernay) 12 years ago.
Portfile.patch (1.1 KB) - added by devernay (Frédéric Devernay) 12 years ago.
main.log (68.4 KB) - added by mf2k (Frank Schima) 12 years ago.
SDL_version.h (2.6 KB) - added by mf2k (Frank Schima) 12 years ago.

Download all attachments as: .zip

Change History (15)

Changed 12 years ago by devernay (Frédéric Devernay)

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

Description: modified (diff)
Owner: changed from macports-tickets@… to mail@…

Please attach your portfile patch too.

In the future, don't forget to Cc the maintainer(s).

Changed 12 years ago by devernay (Frédéric Devernay)

Attachment: Portfile.patch added

comment:2 Changed 12 years ago by devernay (Frédéric Devernay)

i forgot to mention that homebrew applies a very similar patch to its libdc1394 patch

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

This ticket is old enough to invoke maintainer timeout, but I don't know enough to tell if the capture.c patch is correct. If it is, why hasn't it been accepted upstream?

comment:4 Changed 12 years ago by mail@…

Works fine (i don't have a firewire cam myself anymore, so i had to get one for testing... Sorry for the delay).

comment:5 Changed 12 years ago by mf2k (Frank Schima)

This does not compile for me on Mac OS X 10.8.2 and Xcode 4.5.2.

:info:build libtool: link: /usr/bin/clang -I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -Wall -Wunused -std=gnu99 -pipe -O2 -arch x86_64 -arch x86_64 -o .libs/dc1394_iso dc1394_iso-dc1394_iso.o -Wl,-framework -Wl,Cocoa  -L/opt/local/lib ../dc1394/.libs/libdc1394.dylib -lIOKit /opt/local/lib/libusb-1.0.dylib -lobjc /opt/local/lib/libSDLmain.a /opt/local/lib/libSDL.dylib /opt/local/lib/libXrandr.dylib /opt/local/lib/libXext.dylib /opt/local/lib/libXrender.dylib /opt/local/lib/libX11.dylib /opt/local/lib/libxcb.dylib /opt/local/lib/libXau.dylib /opt/local/lib/libXdmcp.dylib -lm -framework Carbon -framework CoreFoundation -framework CoreServices
:info:build Undefined symbols for architecture x86_64:
:info:build   "_glBegin", referenced from:
:info:build       _SDL_main in dc1394_iso-dc1394_iso.o
:info:build   "_glBindTexture", referenced from:
:info:build       _SDL_main in dc1394_iso-dc1394_iso.o
:info:build   "_glClearColor", referenced from:
:info:build       _SDL_Start_GL in dc1394_iso-dc1394_iso.o
:info:build   "_glDeleteTextures", referenced from:
:info:build       _SDL_main in dc1394_iso-dc1394_iso.o
:info:build   "_glEnable", referenced from:
:info:build       _SDL_Start_GL in dc1394_iso-dc1394_iso.o
:info:build   "_glEnd", referenced from:
:info:build       _SDL_main in dc1394_iso-dc1394_iso.o
:info:build   "_glGenTextures", referenced from:
:info:build       _SDL_main in dc1394_iso-dc1394_iso.o
:info:build   "_glLoadIdentity", referenced from:
:info:build       _SDL_Start_GL in dc1394_iso-dc1394_iso.o
:info:build   "_glMatrixMode", referenced from:
:info:build       _SDL_Start_GL in dc1394_iso-dc1394_iso.o
:info:build   "_glOrtho", referenced from:
:info:build       _SDL_Start_GL in dc1394_iso-dc1394_iso.o
:info:build   "_glTexCoord2f", referenced from:
:info:build       _SDL_main in dc1394_iso-dc1394_iso.o
:info:build   "_glTexImage2D", referenced from:
:info:build       _SDL_main in dc1394_iso-dc1394_iso.o
:info:build   "_glTexParameteri", referenced from:
:info:build       _SDL_main in dc1394_iso-dc1394_iso.o
:info:build   "_glVertex3f", referenced from:
:info:build       _SDL_main in dc1394_iso-dc1394_iso.o
:info:build   "_glViewport", referenced from:
:info:build       _SDL_Start_GL in dc1394_iso-dc1394_iso.o
:info:build ld: symbol(s) not found for architecture x86_64

Changed 12 years ago by mf2k (Frank Schima)

Attachment: main.log added

comment:6 Changed 12 years ago by mail@…

Works for me with Xcode 4.5 and 4.5.2. Which version of libsdl do you use?

Note: there are two ports in the repo: libsdl and libsdl-devel. I can not test it with the -devel version, because this one does not compile at the moment. Maybe you have an outdated or -devel Version?

Can you do a

/opt/local/include/SDL/SDL_version.h

comment:7 Changed 12 years ago by mf2k (Frank Schima)

libsdl @1.2.15_0+x11 (active)

I'm attaching the file SDL_version.h

Last edited 12 years ago by mf2k (Frank Schima) (previous) (diff)

Changed 12 years ago by mf2k (Frank Schima)

Attachment: SDL_version.h added

comment:8 Changed 10 years ago by mf2k (Frank Schima)

Owner: changed from mail@… to macports-tickets@…

Port abandoned. See #43811.

comment:9 Changed 10 years ago by mf2k (Frank Schima)

FYI, the patch stills fails for me with the same error on 10.9.4 and Xcode 5.1.1.

comment:10 in reply to:  5 Changed 10 years ago by ctreleaven (Craig Treleaven)

Replying to macsforever2000@…:

This does not compile for me on Mac OS X 10.8.2 and Xcode 4.5.2.

:info:build libtool: link: /usr/bin/clang -I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -Wall -Wunused -std=gnu99 -pipe -O2 -arch x86_64 -arch x86_64 -o .libs/dc1394_iso dc1394_iso-dc1394_iso.o -Wl,-framework -Wl,Cocoa  -L/opt/local/lib ../dc1394/.libs/libdc1394.dylib -lIOKit /opt/local/lib/libusb-1.0.dylib -lobjc /opt/local/lib/libSDLmain.a /opt/local/lib/libSDL.dylib /opt/local/lib/libXrandr.dylib /opt/local/lib/libXext.dylib /opt/local/lib/libXrender.dylib /opt/local/lib/libX11.dylib /opt/local/lib/libxcb.dylib /opt/local/lib/libXau.dylib /opt/local/lib/libXdmcp.dylib -lm -framework Carbon -framework CoreFoundation -framework CoreServices
:info:build Undefined symbols for architecture x86_64:
:info:build   "_glBegin", referenced from:
:info:build       _SDL_main in dc1394_iso-dc1394_iso.o

[...]

}}}

Adding --disable-examples to configure args gets me past this error.

comment:11 Changed 10 years ago by ctreleaven (Craig Treleaven)

Resolution: fixed
Status: newclosed

I don't understand why this port has not had a dependency on libsdl in the past ?!? Added.

I applied the patch; added a note that the libdc1394 developer believes there is a bug in Apples firewire stack. However, he doesn't have a Mac and there is no maintainer for the Mac port.

r126686

Note: See TracTickets for help on using tickets.