From d44a2bf19a6c54c724e325ca2db295978cd37ef8 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Sat, 26 Sep 2020 09:29:38 +0200 Subject: [PATCH] - added no-common patch (fix build/usage with -fno-common, gcc 10 default); release 2 --- ooh323c-no-common.patch | 109 ++++++++++++++++++++++++++++++++++++++++ ooh323c.spec | 4 +- 2 files changed, 112 insertions(+), 1 deletion(-) create mode 100644 ooh323c-no-common.patch diff --git a/ooh323c-no-common.patch b/ooh323c-no-common.patch new file mode 100644 index 0000000..427d693 --- /dev/null +++ b/ooh323c-no-common.patch @@ -0,0 +1,109 @@ +--- ooh323c-0.9.3/media/ooCommon.h.orig 2010-07-28 18:49:36.000000000 +0200 ++++ ooh323c-0.9.3/media/ooCommon.h 2020-09-26 08:16:06.488409130 +0200 +@@ -51,7 +51,7 @@ + #define OOLOG5(a,b,c,d,e) ooLog(a,b,c,d,e) + #define OOLOG9(a,b,c,d,e,f,g,h,i) ooLog(a,b,c,d,e,f,g,h,i) + +-FILE *fpLog; ++extern FILE *fpLog; + + /** + * This function logs a trace message into a log file. +--- ooh323c-0.9.3/media/oomedialx.h.orig 2010-07-28 18:49:36.000000000 +0200 ++++ ooh323c-0.9.3/media/oomedialx.h 2020-09-26 08:16:34.709901574 +0200 +@@ -35,9 +35,9 @@ + * @{ + */ + /** Global handle to open sound device */ +-int ghSoundDevice; ++extern int ghSoundDevice; + /** Global handle to open raw audio data file */ +-int ghSndFile; ++extern int ghSndFile; + + /** Opens a RAW audio data file for read. + * @param filename Name of the file to be opened. +--- ooh323c-0.9.3/tests/player/oosndrtp.h.orig 2010-07-28 18:49:36.000000000 +0200 ++++ ooh323c-0.9.3/tests/player/oosndrtp.h 2020-09-26 08:17:05.854881955 +0200 +@@ -84,9 +84,9 @@ + + /* Media API */ + #ifdef _WIN32 +-HMODULE media; ++extern HMODULE media; + #else +-void * media; ++extern void * media; + #endif + + +--- ooh323c-0.9.3/tests/player/oosndrtp.c.orig 2010-07-28 18:49:36.000000000 +0200 ++++ ooh323c-0.9.3/tests/player/oosndrtp.c 2020-09-26 08:18:23.949011826 +0200 +@@ -17,6 +17,11 @@ + #include "oosndrtp.h" + #include "ooCommon.h" + ++#ifdef _WIN32 ++HMODULE media; ++#else ++void * media; ++#endif + + static MediaAPI_CreateTxRTPChan FuncPtr_CreateTxRTPChan = 0; + static MediaAPI_CloseTxRTPChan FuncPtr_CloseTxRTPChan = 0; +--- ooh323c-0.9.3/tests/receiver/oosndrtp.h.orig 2010-07-28 18:49:37.000000000 +0200 ++++ ooh323c-0.9.3/tests/receiver/oosndrtp.h 2020-09-26 08:22:39.419188585 +0200 +@@ -84,9 +84,9 @@ + + /* Media API */ + #ifdef _WIN32 +-HMODULE media; ++extern HMODULE media; + #else +-void * media; ++extern void * media; + #endif + + +--- ooh323c-0.9.3/tests/receiver/oosndrtp.c.orig 2010-07-28 18:49:37.000000000 +0200 ++++ ooh323c-0.9.3/tests/receiver/oosndrtp.c 2020-09-26 09:12:55.938679955 +0200 +@@ -17,6 +17,11 @@ + #include "oosndrtp.h" + #include "ooCommon.h" + ++#ifdef _WIN32 ++HMODULE media; ++#else ++void * media; ++#endif + + static MediaAPI_CreateTxRTPChan FuncPtr_CreateTxRTPChan = 0; + static MediaAPI_CloseTxRTPChan FuncPtr_CloseTxRTPChan = 0; +--- ooh323c-0.9.3/tests/simple/oosndrtp.h.orig 2010-07-28 18:49:37.000000000 +0200 ++++ ooh323c-0.9.3/tests/simple/oosndrtp.h 2020-09-26 09:14:02.622199904 +0200 +@@ -84,9 +84,9 @@ + + /* Media API */ + #ifdef _WIN32 +-HMODULE media; ++extern HMODULE media; + #else +-void * media; ++extern void * media; + #endif + + +--- ooh323c-0.9.3/tests/simple/oosndrtp.c.orig 2010-07-28 18:49:37.000000000 +0200 ++++ ooh323c-0.9.3/tests/simple/oosndrtp.c 2020-09-26 09:13:53.231704219 +0200 +@@ -17,6 +17,11 @@ + #include "oosndrtp.h" + #include "ooCommon.h" + ++#ifdef _WIN32 ++HMODULE media; ++#else ++void * media; ++#endif + + static MediaAPI_CreateTxRTPChan FuncPtr_CreateTxRTPChan = 0; + static MediaAPI_CloseTxRTPChan FuncPtr_CloseTxRTPChan = 0; diff --git a/ooh323c.spec b/ooh323c.spec index 19a8261..29d8b99 100644 --- a/ooh323c.spec +++ b/ooh323c.spec @@ -2,11 +2,12 @@ Summary: Objective Open H.323 libraries Summary(pl.UTF-8): Biblioteki Objective Open H.323 Name: ooh323c Version: 0.9.3 -Release: 1 +Release: 2 License: GPL v2 with FLOSS exception Group: Libraries Source0: http://downloads.sourceforge.net/ooh323c/%{name}-%{version}.tar.gz # Source0-md5: d557140e31bb592ec8fc9b6eb92908db +Patch0: %{name}-no-common.patch URL: https://sourceforge.net/projects/ooh323c BuildRequires: cmake >= 2.6.0 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -57,6 +58,7 @@ Dokumentacja API bibliotek ooh323c. %prep %setup -q +%patch0 -p1 %build install -d build -- 2.44.0