linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-developers] FW: ORTP make error on mac Os x


From: Giulio .
Subject: Re: [Linphone-developers] FW: ORTP make error on mac Os x
Date: Fri, 24 Oct 2014 10:47:43 +0200

Hi Guillaume,
I'm using MacOS 10.8.5.

Whit make V=1 it works, but now when I'm run make command on linphone lib I've the error:

f ! test -f ./gitversion.h ; then \
/bin/echo -n "#define GIT_VERSION \"unknown\" " > ./gitversion.h ;\
fi
  CC       videofilters/videoenc.lo
In file included from videofilters/videoenc.c:24:
../src/utils/ffmpeg-priv.h:91:17: error: conflicting types for
      'avcodec_alloc_context3'
AVCodecContext *avcodec_alloc_context3(AVCodec *codec);
                ^
/usr/local/include/libavcodec/avcodec.h:3255:17: note: previous declaration is
      here
AVCodecContext *avcodec_alloc_context3(const AVCodec *codec);
                ^
In file included from videofilters/videoenc.c:24:
../src/utils/ffmpeg-priv.h:95:5: error: conflicting types for 'avcodec_open2'
int avcodec_open2 (AVCodecContext *avctx, const AVCodec *codec, /*AVDict...
    ^
/usr/local/include/libavcodec/avcodec.h:3403:5: note: previous declaration is
      here
int avcodec_open2(AVCodecContext *avctx, const AVCodec *codec, AVDiction...
    ^
2 errors generated.
make[5]: *** [videofilters/videoenc.lo] Error 1
make[4]: *** [all] Error 2
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

 I'm trying to reinstall ffmpeg lib, but when I run make command I receive the error:

libavformat/cache.c:67:5: error: implicit declaration of function 'unlink' is
      invalid in C99 [-Werror,-Wimplicit-function-declaration]
    unlink(buffername);
    ^
libavformat/cache.c:79:13: error: implicit declaration of function 'read' is
      invalid in C99 [-Werror,-Wimplicit-function-declaration]
        r = read(c->fd, buf, FFMIN(size, c->end - c->pos));
            ^
libavformat/cache.c:79:13: note: did you mean 'fread'?
/usr/include/stdio.h:255:9: note: 'fread' declared here
size_t   fread(void * __restrict, size_t, size_t, FILE * __restrict);
         ^
libavformat/cache.c:86:21: error: implicit declaration of function 'write' is
      invalid in C99 [-Werror,-Wimplicit-function-declaration]
            int r2= write(c->fd, buf, r);
                    ^
libavformat/cache.c:86:21: note: did you mean 'fwrite'?
/usr/include/stdio.h:262:9: note: 'fwrite' declared here
size_t   fwrite(const void * __restrict, size_t, size_t, FILE * __restri...
         ^
libavformat/cache.c:110:10: error: implicit declaration of function 'lseek' is
      invalid in C99 [-Werror,-Wimplicit-function-declaration]
    pos= lseek(c->fd, pos, whence);
         ^
libavformat/cache.c:110:10: note: did you mean 'fseek'?
/usr/include/stdio.h:259:6: note: 'fseek' declared here
int      fseek(FILE *, long, int);
         ^
libavformat/cache.c:127:5: error: implicit declaration of function 'close' is
      invalid in C99 [-Werror,-Wimplicit-function-declaration]
    close(c->fd);
    ^
5 errors generated.
make: *** [libavformat/cache.o] Error 1

How to resolve?


From: address@hidden
Date: Fri, 24 Oct 2014 09:37:08 +0200
To: address@hidden
Subject: Re: [Linphone-developers] FW: ORTP make error on mac Os x

What is the version of Mac OS that you're using?
To me it looks like a version that is too old.

Can you make V=1 ?


On Thu, Oct 23, 2014 at 9:14 PM, Giulio . <address@hidden> wrote:
Hi,
now I've the error:

$make
make  all-recursive
Making all in src
Making all in .
  CC       str_utils.lo
cc1: error: -Werror=unknown-warning-option: No option -Wunknown-warning-option
cc1: error: unrecognized command line option "-Wno-tautological-compare"
cc1: error: unrecognized command line option "-Wno-array-bounds"
cc1: error: -Werror=unknown-warning-option: No option -Wunknown-warning-option
cc1: error: unrecognized command line option "-Wno-tautological-compare"
cc1: error: unrecognized command line option "-Wno-array-bounds"
cc1: warnings being treated as errors
cc1: warning: -Wuninitialized is not supported without -O
cc1: error: -Werror=unknown-warning-option: No option -Wunknown-warning-option
cc1: error: unrecognized command line option "-Wno-tautological-compare"
cc1: error: unrecognized command line option "-Wno-array-bounds"
cc1: error: -Werror=unknown-warning-option: No option -Wunknown-warning-option
cc1: error: unrecognized command line option "-Wno-tautological-compare"
cc1: error: unrecognized command line option "-Wno-array-bounds"
cc1: warnings being treated as errors
cc1: warning: -Wuninitialized is not supported without -O
fatal error: lipo: can't figure out the architecture type of: /var/folders/9c/c0sg_3_n1kbgf1zg64yddty80000gp/T//ccKoGcKt.out
make[3]: *** [str_utils.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

How to resolve?



Hi,
I'm tring to install oRTP from linphone-ios package.
./configure is ok without error, make command failed with error:

$ make
make  all-recursive
Making all in src
Making all in .
  CC       str_utils.lo
llvm-gcc-4.2: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags
make[3]: *** [str_utils.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


how to resolve the error?

Thanks
Regards

_______________________________________________ Linphone-developers mailing list address@hidden https://lists.nongnu.org/mailman/listinfo/linphone-developers

_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers



_______________________________________________ Linphone-developers mailing list address@hidden https://lists.nongnu.org/mailman/listinfo/linphone-developers

reply via email to

[Prev in Thread] Current Thread [Next in Thread]