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

 
 

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

Submitted by:  Garrett Brown <garbear>
Submitted on:  Tue 01 Nov 2011 12:47:47 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Eric S. Raymond <esr>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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

Fix shipped in 3.5.

Eric S. Raymond <esr>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 17 Apr 2012 08:38:29 AM UTCesrOpen/ClosedOpen=>Closed
    Mon 13 Feb 2012 08:32:02 PM UTCjohndoe32102002Carbon-Copy-=>Added -unavailable-
    Thu 10 Nov 2011 11:40:31 PM UTCesrAssigned toNone=>esr
    Thu 10 Nov 2011 10:49:18 PM UTCesrStatusNone=>Fixed

    Back to the top


    Powered by Savane 3.1-cleanup1