File qucs_powerpc_gcc_undef_vector.patch of Package qucs
From: Michel Normand <normand@linux.vnet.ibm.com>
Subject: qucs powerpc gcc undef vector
Date: Tue, 11 Aug 2015 14:24:52 +0200
qucs powerpc gcc undef vector
Required to avoid build error like:
===
[ 475s] evaluate.cpp: In static member function 'static qucs::eqn::constant* qucs::eqn::evaluate::noise_circle_d_v(qucs::eqn::constant*)':
[ 475s] evaluate.cpp:2826:18: error: expected unqualified-id before '=' token
[ 475s] qucs::vector R = sqrt (N * N + N * (1 - norm (*Sopt))) / (1 + N);
[ 475s] ^
===
Signed-off-by: Michel Normand <normand@linux.vnet.ibm.com>
---
qucs-core/src/Makefile.am | 2 +-
qucs-core/src/Makefile.in | 2 +-
Index: qucs-0.0.18/qucs-core/src/Makefile.am
===================================================================
--- qucs-0.0.18.orig/qucs-core/src/Makefile.am
+++ qucs-0.0.18/qucs-core/src/Makefile.am
@@ -30,7 +30,7 @@ EXTRA_DIST = parse_netlist.y scan_netlis
SUBDIRS = math components interface . converter
AM_CPPFLAGS = -I$(top_srcdir)/src/math -I$(top_srcdir)/src/components \
- -I$(top_srcdir)/src/interface -I$(builddir)
+ -I$(top_srcdir)/src/interface -I$(builddir) -Uvector
lib_LTLIBRARIES = libqucs.la
Index: qucs-0.0.18/qucs-core/src/Makefile.in
===================================================================
--- qucs-0.0.18.orig/qucs-core/src/Makefile.in
+++ qucs-0.0.18/qucs-core/src/Makefile.in
@@ -456,7 +456,7 @@ EXTRA_DIST = parse_netlist.y scan_netlis
SUBDIRS = math components interface . converter
AM_CPPFLAGS = -I$(top_srcdir)/src/math -I$(top_srcdir)/src/components \
- -I$(top_srcdir)/src/interface -I$(builddir)
+ -I$(top_srcdir)/src/interface -I$(builddir) -Uvector
lib_LTLIBRARIES = libqucs.la
libqucs_la_LIBADD = math/libqucsmath.la \