bugGPSD - Bugs: bug #34710, Package 'tinfo', required by...

 
 

bug #34710: Package 'tinfo', required by 'ncurses', not found

Submitter:  Garrett Brown <garbear>
Submitted:  Tue 01 Nov 2011 12:47:47 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  esr
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 17 Apr 2012 08:38:29 AM UTC, comment #5: 

Fix shipped in 3.5.

Eric S. Raymond <esr>
Group administrator
Mon 13 Feb 2012 08:32:02 PM UTC, comment #4: 

This bug has not been fixed yet!  I just tried to compile gpsd 3.4 in Ubuntu 11.10 x64.

Error:
Package tinfo was not found in the pkg-config search path.
Perhaps you should add the directory containing `tinfo.pc'
to the PKG_CONFIG_PATH environment variable
Package 'tinfo', required by 'ncurses', not found
OSError: 'pkg-config --cflags --libs ncurses' exited 1:

Helpful URL: https://bugs.launchpad.net/ubuntu/+source/ncurses/+bug/259139

./ncurses5-config --version
5.9.20110404

John Doe <johndoe32102002>
Tue 10 Jan 2012 05:06:10 PM UTC, comment #3: 

Generally speaking, when you see Python.h missing it means you need to install the Python development package.  We do have this marked as a dependency because the distribution includes Python extensiopns.

Eric S. Raymond <esr>
Group administrator
Sun 04 Dec 2011 07:31:21 AM UTC, comment #2: 

I finally noticed the bug list, have this same exact problem with Ubuntu 11.10

tried on different machines and it didnt work.  copying tinfo.pc file into the /usr/lib did help, but did not compile to the end.  Right now it stops at: (much more text but this is the last bunch of lines)

gcc -o monitor_nmea.o -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 monitor_nmea.c
gcc -o monitor_oncore.o -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 monitor_oncore.c
gcc -o monitor_sirf.o -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 monitor_sirf.c
gcc -o monitor_superstar2.o -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 monitor_superstar2.c
gcc -o monitor_tnt.o -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 monitor_tnt.c
gcc -o monitor_ubx.o -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 monitor_ubx.c
gcc -o monitor_garmin.o -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 monitor_garmin.c
gcc -o gpsmon -Wl,-rpath=/home/bydr/gpsd -Wl,-rpath=//usr/local/lib gpsmon.o monitor_italk.o monitor_nmea.o monitor_oncore.o monitor_sirf.o monitor_superstar2.o monitor_tnt.o monitor_ubx.o monitor_garmin.o -L. -L/usr/local/lib -L/usr/lib -lrt -lgpsd -lgps -lncurses -ltinfo
gcc -pthread -o gpsclient-py_2_7_2_final_0.so -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -I/usr/include/python2.7 gpsclient.c
gpsclient.c:7:20: fatal error: Python.h: No such file or directory
compilation terminated.
scons: * [gpsclient-py_2_7_2_final_0.so] Error 1
scons: building terminated because of errors.

what is needed to make this compile?

Bradley Allen <ibradleyallen>
Thu 10 Nov 2011 10:49:18 PM UTC, comment #1: 

Thanks, I've asopted your workaround into the build instructions and it will ship in the next release.

Eric S. Raymond <esr>
Group administrator
Tue 01 Nov 2011 12:47:47 AM UTC, original submission:  

I received this error while trying to build gpsd 3.3. The error turned out to be harmless. While the error is probably part of the Ubuntu packaging system, I figured to report it here in case there's a simple workaround gpsd can include. (Mostly motivated by the recent commit related to tinfo, http://git.savannah.gnu.org/cgit/gpsd.git/commit/?id=52862f3)

Trying to build gpsd on Ubuntu 11.10 x64, with all build dependencies installed, stops with the following error:

`Package tinfo was not found in the pkg-config search path.
Perhaps you should add the directory containing `tinfo.pc'
to the PKG_CONFIG_PATH environment variable
Package 'tinfo', required by 'ncurses', not found
OSError: 'pkg-config --cflags --libs ncurses' exited 1:
  File "/home/garrett/Downloads/gpsd-3.3/SConstruct", line 827:
    parse_flags=gpsdlibs + ncurseslibs)
  File "/usr/lib/scons/SCons/Environment.py", line 258:
    return MethodWrapper.__call__(self, target, source, args, *kw)
  File "/usr/lib/scons/SCons/Environment.py", line 222:
    return self.method(nargs, *kwargs)
  File "/usr/lib/scons/SCons/Builder.py", line 631:
    env = env.Override(env_kw)
  File "/usr/lib/scons/SCons/Environment.py", line 635:
    if merges: env.MergeFlags(merges)
  File "/usr/lib/scons/SCons/Environment.py", line 802:
    args = self.ParseFlags(args)
  File "/usr/lib/scons/SCons/Environment.py", line 788:
    do_parse(arg)
  File "/usr/lib/scons/SCons/Environment.py", line 669:
    for t in arg: do_parse(t)
  File "/usr/lib/scons/SCons/Environment.py", line 674:
    arg = self.backtick(arg[1:])
  File "/usr/lib/scons/SCons/Environment.py", line 593:
    raise OSError("'%s' exited %d" % (command, status))`

I have verified that libtinfo-dev is installed; however, the file tinfo.pc simply doesn't exist. When I pasted the following into /usr/lib/pkgconfig/tinfo.pc, scons was able to successfully build gpsd:

`prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
major_version=5
version=5.9.20110404

Name: tinfo
Description: ncurses 5.9 add-on library
Version: ${version}
Requires:
Libs:  -ltinfo
Cflags: `

Because the tinfo library existed, simply adding this file fixed the build and gpsd was then able to run.

Regards,
Garrett

Garrett Brown <garbear>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by johndoe32102002 (Posted a comment)
  • -email is unavailable- added by johndoe32102002
  • -email is unavailable- added by ibradleyallen (Posted a comment)
  • -email is unavailable- added by esr (Posted a comment)
  • -email is unavailable- added by garbear (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-04-17 esr Open/ClosedOpen Closed
    2012-02-13 johndoe32102002 Carbon-Copy- Added -email is unavailable-
    2011-11-10 esr Assigned toNone esr
    2011-11-10 esr StatusNone Fixed

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code