[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #54504] signal package has namespace conflict
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #54504] signal package has namespace conflict with "truncate", the libc function |
Date: |
Sun, 12 Aug 2018 13:34:13 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; NetBSD amd64; rv:61.0) Gecko/20100101 Firefox/61.0 |
URL:
<http://savannah.gnu.org/bugs/?54504>
Summary: signal package has namespace conflict with
"truncate", the libc function
Project: GNU Octave
Submitted by: None
Submitted on: Sun 12 Aug 2018 05:34:12 PM UTC
Category: Octave Forge Package
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Assigned to: None
Originator Name: Maya Rashish
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Release: 4.4.1
Operating System: BSD
_______________________________________________________
Details:
When building the signal
medfilt1.cc:40:27: error: ‘truncate’ redeclared as different kind of
symbol
enum pad_type { zero_pad, truncate };
^~~~~~~~
In file included from /usr/include/stdlib.h:41:0,
from /usr/include/g++/cstdlib:75,
from /usr/include/g++/bits/stl_algo.h:59,
from /usr/include/g++/algorithm:62,
from /usr/pkg/include/octave-4.4.1/octave/Array.h:33,
from /usr/pkg/include/octave-4.4.1/octave/Array-util.h:28,
from /usr/pkg/include/octave-4.4.1/octave/MSparse.h:29,
from /usr/pkg/include/octave-4.4.1/octave/MatrixType.h:29,
from /usr/pkg/include/octave-4.4.1/octave/mx-base.h:30,
from /usr/pkg/include/octave-4.4.1/octave/Matrix.h:31,
from /usr/pkg/include/octave-4.4.1/octave/oct.h:30,
from medfilt1.cc:34:
/usr/include/sys/types.h:247:6: note: previous declaration ‘int
truncate(const char*, __off_t)’
int truncate(const char *, off_t);
^~~~~~~~
medfilt1.cc: In function ‘octave_value_list Fmedfilt1(const
octave_value_list&, int)’:
medfilt1.cc:326:19: error: cannot convert ‘int(const char*, __off_t) {aka
int(const char*, long int)}’ to ‘pad_type’ in assignment
padding = truncate;
^~~~~~~~
gmake: *** [medfilt1.oct] Error 1
gmake: *** Waiting for unfinished jobs....
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Sun 12 Aug 2018 05:34:12 PM UTC Name: signal.diff Size: 2KiB By:
None
patch to use uppercase TRUNCATE and ZERO_PAD, resolves this problem.
<http://savannah.gnu.org/bugs/download.php?file_id=44768>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?54504>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #54504] signal package has namespace conflict with "truncate", the libc function,
anonymous <=