[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problem building 0.6.13 with gcc 3.4
From: |
Brian Wallis |
Subject: |
Problem building 0.6.13 with gcc 3.4 |
Date: |
Thu, 10 Aug 2006 16:43:13 +1000 |
User-agent: |
KMail/1.9.3 |
I have a gentoo system with gcc:
gcc version 3.4.6 (Gentoo 3.4.6-r1, ssp-3.4.5-1.0, pie-8.7.9)
and gnokii doesn't build. the configure script correctly detects that
the -fvisibility=hidden flag works but the macros in compat.h and gnokii.h
only define the visibility macro if gcc is 4.0.0 or later. I think this
support was introduced in gcc 3.4.
Patch for the include files is below.
diff -Bbc gnokii-0.6.13/include/compat.h gnokii-0.6.13.new/include/compat.h
*** gnokii-0.6.13/include/compat.h Mon Jun 19 03:02:00 2006
--- gnokii-0.6.13.new/include/compat.h Thu Aug 10 15:52:37 2006
***************
*** 112,118 ****
# else
# define GNOKII_API
# endif
! #elif (__GNUC__ - 0 > 3)
# define GNOKII_API __attribute__ ((visibility("default")))
#else
# define GNOKII_API
--- 112,118 ----
# else
# define GNOKII_API
# endif
! #elif (__GNUC__ - 0 > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 3)
# define GNOKII_API __attribute__ ((visibility("default")))
#else
# define GNOKII_API
diff -Bbc gnokii-0.6.13/include/gnokii.h gnokii-0.6.13.new/include/gnokii.h
*** gnokii-0.6.13/include/gnokii.h Mon Jun 19 03:02:00 2006
--- gnokii-0.6.13.new/include/gnokii.h Thu Aug 10 15:40:16 2006
***************
*** 57,63 ****
#ifndef GNOKII_API
# if defined(WIN32) && defined(GNOKIIDLL_IMPORTS)
# define GNOKII_API __declspec(dllimport)
! # elif (__GNUC__ - 0 > 3)
# define GNOKII_API __attribute__ ((visibility("default")))
# else
# define GNOKII_API
--- 57,63 ----
#ifndef GNOKII_API
# if defined(WIN32) && defined(GNOKIIDLL_IMPORTS)
# define GNOKII_API __declspec(dllimport)
! # elif (__GNUC__ - 0 > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 3)
# define GNOKII_API __attribute__ ((visibility("default")))
# else
# define GNOKII_API
--
brian...
- Problem building 0.6.13 with gcc 3.4,
Brian Wallis <=