FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

src/mplutils.cpp:17: error: ‘vsprintf’ was not declared ... · Issue #183 · matplotlib/matplotlib · GitHub

Repository navigation

src/mplutils.cpp:17: error: ‘vsprintf’ was not declared ... #183

Closed

Description

Original report at SourceForge, opened Sun Dec 19 08:36:15 2010

Running
$pip install matplotlib
end with a compilation error (see below).

This is with Python 2.6.5 and pip 0.7.2.

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. -I/usr/include/python2.6 -c src/mplutils.cpp -o build/temp.linux-i686-2.6/src/mplutils.o

cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++

src/mplutils.cpp: In constructor ‘Printf::Printf(const char*, ...)’:

src/mplutils.cpp:17: error: ‘vsprintf’ was not declared in this scope

error: command 'gcc' failed with exit status 1

SourceForge Comments

On Thu Feb 3 18:29:46 2011, xguse wrote:

For others that run into this bug:
One work-around is to use subversion to do your install vs pip (http://matplotlib.sourceforge.net/faq/installing_faq.html#cleanly-rebuild-and-reinstall-everything)

To checkout the repo after making sure you have svn installed:
svn co https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/matplotlib matplotlib

Install is your standard:
cd matplotlib
(sudo | su) python setup.py install

HOWEVER, you can also set it up to rebuild your install semi-automatically by using this install command instead:
cd matplotlib
(sudo | su) python setupegg.py develop

Then you only have to do the following (most of the time) to automatically update your mpl install from the svn repo dir (matplotlib):
svn update

For more specifics see the link at the top. I actually think that this is MORE favorable than pip.

On Thu Feb 3 18:08:05 2011, xguse wrote:

I also have this problem. I would LOVE to use pip to keep matplotlib up-to-date as ubuntu's repos are generally a release or so behind!

I am running Ubuntu 10.10 64bit and here are some more sys info:

gus@vlad 15:03:20 ~/src/pipInstalls:
gcc --version
gcc (Ubuntu/Linaro 4.4.4-14ubuntu5) 4.4.5
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

gus@vlad 15:03:31 ~/src/pipInstalls:
uname -a
Linux vlad 2.6.35-25-generic #44-Ubuntu SMP Fri Jan 21 17:40:44 UTC 2011 x86_64 GNU/Linux

On Mon Dec 20 09:31:03 2010, mdboom wrote:

What platform are you on? What version of gcc?

Activity

  1. efiring commented on Jun 21, 2011

    Member

    Given the lack of activity, and the existence of a changeset near the end
    of 2008 that should take care of the vsprintf declaration, I am going to
    assume that the problem was that pip was grabbing an out-of-date version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL