linphone-developers
[Top][All Lists]
Advanced

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

Re: [Linphone-developers] trying to compile a static version of linphone


From: Olivier Kaloudoff
Subject: Re: [Linphone-developers] trying to compile a static version of linphone on Debian
Date: Sun, 5 Dec 2004 20:20:15 +0100 (CET)

Hi Charles,

        just tested your trick, it fixed the following Warning,
that does not appear anymore:

/usr/src/linphone/linphone-0.12.2/coreapi/arts.c:44: warning: Using 'dlopen' in statically linked applications
requires at runtime the shared librarie
s from the glibc version used for linking


but did not remove the fatal one :-( :

/usr/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status
make[2]: *** [linphone] Erreur 1
make[2]: Leaving directory `/usr/src/linphone/linphone-0.12.2/gnome'
make[1]: *** [all-recursive] Erreur 1
make[1]: Leaving directory `/usr/src/linphone/linphone-0.12.2'
make: *** [all] Erreur 2


Olivier


On Sun, 5 Dec 2004, Charles Eidsness wrote:

Hi Oliver,

I think the problem is that the autoconfig finds the dl library and thinks you want to use it, even though you're using static libraries across the board. Try doing something like this after you run configure and before you run make. (this patch might not work but it should give you the general idea :) )

Hope that helps,
Charles

--- linphone-0.12.2/config.h.orig       2004-04-18 11:44:14.000000000 -0600
+++ linphone-0.12.2/config.h    2004-04-18 11:44:50.000000000 -0600
@@ -27,7 +27,7 @@
/* #undef HAVE_DCGETTEXT */

/* Define to 1 if you have the <dlfcn.h> header file. */
-#define HAVE_DLFCN_H 1
+/* #define HAVE_DLFCN_H 1 */

/* Define to 1 if you have the `getifaddrs' function. */
/* #undef HAVE_GETIFADDRS */
--- linphone-0.12.2/osipua/osipua-config.h.orig 2004-04-18 11:46:15.000000000 -0600 +++ linphone-0.12.2/osipua/osipua-config.h 2004-04-18 11:46:30.000000000 -0600
@@ -8,7 +8,7 @@
#define HAVE_ASSERT_H 1

/* Define to 1 if you have the <dlfcn.h> header file. */
-#define HAVE_DLFCN_H 1
+/* #define HAVE_DLFCN_H 1 */

/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
/* #undef HAVE_DOPRNT */

Olivier Kaloudoff wrote:
Hi,


    I need to build a "portable binary", ie, one which would execute
on any x86 based linux without any library dependencies problems;

...






reply via email to

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