Opened 8 years ago

Closed 6 years ago

#4124 closed defect (fixed)

libutvideo (and decklink) fails with clang: error: invalid argument '-std=c99' not allowed with 'C++/ObjC++'

Reported by: Carl Eugen Hoyos Owned by:
Priority: normal Component: build system
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no


$ clang -v
clang -v
clang version 3.1 (branches/release_31 157047)
Target: x86_64-unknown-linux-gnu
Thread model: posix

Also reproducible with newer versions.

$ dash configure --enable-gpl --enable-libutvideo --cc=clang --cxx=clang
ERROR: utvideo not found
check_ld cxx -lutvideo -lstdc++
BEGIN /tmp/ffconf.ez4q4dPn.cpp
    1   #include <stdint.h>
    2   #include <stdlib.h>
    3   #include <utvideo/utvideo.h>
    4   #include <utvideo/Codec.h>
    5   int main(void) {
    6   CCodec* obj1;
    7   return 0; }
END /tmp/ffconf.ez4q4dPn.cpp
clang -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -std=c99 -fomit-frame-pointer -pthread -D__STDC_CONSTANT_MACROS -c -o /tmp/ffconf.v9p62Akq.o /tmp/ffconf.ez4q4dPn.cpp
error: invalid argument '-std=c99' not allowed with 'C++/ObjC++'
ERROR: utvideo not found

This primarily affects osx users.
For decklink, the same error is shown when compiling the decklink c++ files.

Change History (3)

comment:1 by dave rice, 8 years ago

Cc: added

comment:2 by s172262, 6 years ago

libutvideo.pc may be wrong.
Shall you try my homebrew script for libutvideo?
It repairs libutvideo.pc.

For 14.2.1.

For 15.3.0

Last edited 6 years ago by s172262 (previous) (diff)

comment:3 by Carl Eugen Hoyos, 6 years ago

Resolution: fixed
Status: newclosed

Should be fixed by Rick Kern in 8db203a9dd73072da3e8e131209362317c70ade0

Note: See TracTickets for help on using tickets.