LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices

Reply
 
Search this Thread
Old 02-06-2004, 10:04 AM   #1
bhaskie
Member
 
Registered: Jan 2004
Location: New Delhi, India
Distribution: L.F.S 5.0 | FreeBSD 5.2 | Debian sid | Gentoo 2004.0 | Slackware 9.1
Posts: 78

Rep: Reputation: 15
BLFS 5.0 dpkg build fails (ncurses-related error)


Hi,
I tried building dpkg and apt on BLFS 5.0 without success. I followed the tips from "BLFS TIPS". Till now not a single package has failed during make and this is the first one. I am running KDE 3.1.4. As mentioned in the TIP, I used dpkg 1.9.21 and apt 0.5.4. (dpkg_1.9.21.tar.gz & apt_0.5.4.tar.gz).

make fails and from the error it seems that ncurses is involved. On googling, I found a similar problem but there was no solution.
Commands I executed and the error I get are as follows:

$ tar xzvf dpkg_1.9.21.tar.gz
$ cd dpkg-1.9.21
$ ./configure --prefix=/usr --admindir=/var/lib/dpkg
$ mv doc/Makefile doc/Makefile.bak
$ sed 's/^all: /&# /g; s/^install: /&# /g' doc/Makefile.bak > doc/Makefile
$ make

[snip]

In file included from curkeys.cc:31:
curkeys.h:168: error: `KEY_EVENT' was not declared in this scope
make[1]: *** [curkeys.o] Error 1
make[1]: Leaving directory `/root/downloads/dpkg-1.9.21/dselect'
make: *** [all-recursive] Error 2

Am I missing something here? I reinstalled ncurses to see if anything happens but the error doesnt go. Is it possible to edit some source file to get rid of this error? Any help would be appreciated.

Regards,
Bhaskar.
 
Old 02-06-2004, 10:25 PM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 47
Quote:
curkeys.h:168: error: `KEY_EVENT' was not declared in this scope
it appears the curkeys.h header file has some sort of syntax error.
goto the directory it is in and see if you can de-bug it...........
Quote:
/root/downloads/dpkg-1.9.21/dselect
 
Old 02-07-2004, 04:59 AM   #3
bhaskie
Member
 
Registered: Jan 2004
Location: New Delhi, India
Distribution: L.F.S 5.0 | FreeBSD 5.2 | Debian sid | Gentoo 2004.0 | Slackware 9.1
Posts: 78

Original Poster
Rep: Reputation: 15
THe file curkeys.h is generated during the build. Written on top of the file dselect/curkeys.h :

/*
* WARNING - THIS FILE IS GENERATED AUTOMATICALLY - DO NOT EDIT
* It is generated by mkcurkeys.pl from <curses.h>
* and keyoverride. If you want to override things try adding
* them to keyoverride.
*/

Well, I tried to edit the file "keyoverride" but still the same error. Then I deleted the rogue line in the file curkeys.h and ran make again. This time it built without errors.

I proceeded to build apt. This time i got the fllowing errors:

<code>

Compiling policy.cc to /root/downloads/apt-0.5.4/obj/apt-pkg/policy.opic
policy.cc: In member function `void
pkgPolicy::CreatePin(pkgVersionMatch::MatchType, std::basic_string<char,
std::char_traits<char>, std::allocator<char> >, std::basic_string<char,
std::char_traits<char>, std::allocator<char> >, short int)':
policy.cc:186: error: no matching function for call to `
std::vector<pkgPolicy::Pin, std::allocator<pkgPolicy::Pin> >::insert(
__gnu_cxx::__normal_iterator<pkgPolicy::Pin*, std::vector<pkgPolicy::Pin,
std::allocator<pkgPolicy::Pin> > >)'
/usr/include/c++/3.3.1/bits/vector.tcc:89: error: candidates are:
__gnu_cxx::__normal_iterator<_Tp*, std::vector<_Tp, _Alloc> >
std::vector<_Tp, _Alloc>::insert(__gnu_cxx::__normal_iterator<_Tp*,
std::vector<_Tp, _Alloc> >, const _Tp&) [with _Tp = pkgPolicy::Pin, _Alloc =
std::allocator<pkgPolicy::Pin>]
/usr/include/c++/3.3.1/bits/stl_vector.h:671: error: void
std::vector<_Tp, _Alloc>::insert(__gnu_cxx::__normal_iterator<_Tp*,
std::vector<_Tp, _Alloc> >, unsigned int, const _Tp&) [with _Tp =
pkgPolicy::Pin, _Alloc = std::allocator<pkgPolicy::Pin>]
policy.cc:200: error: no matching function for call to `
std::vector<pkgPolicy::PkgPin, std::allocator<pkgPolicy::PkgPin> >::insert(
__gnu_cxx::__normal_iterator<pkgPolicy::PkgPin*,
std::vector<pkgPolicy::PkgPin, std::allocator<pkgPolicy::PkgPin> > >)'
/usr/include/c++/3.3.1/bits/vector.tcc:89: error: candidates are:
__gnu_cxx::__normal_iterator<_Tp*, std::vector<_Tp, _Alloc> >
std::vector<_Tp, _Alloc>::insert(__gnu_cxx::__normal_iterator<_Tp*,
std::vector<_Tp, _Alloc> >, const _Tp&) [with _Tp = pkgPolicy::PkgPin,
_Alloc = std::allocator<pkgPolicy::PkgPin>]
/usr/include/c++/3.3.1/bits/stl_vector.h:671: error: void
std::vector<_Tp, _Alloc>::insert(__gnu_cxx::__normal_iterator<_Tp*,
std::vector<_Tp, _Alloc> >, unsigned int, const _Tp&) [with _Tp =
pkgPolicy::PkgPin, _Alloc = std::allocator<pkgPolicy::PkgPin>]
make[2]: *** [/root/downloads/apt-0.5.4/obj/apt-pkg/policy.opic] Error 1
make[1]: *** [all] Error 2
make: *** [all] Error 2

</code>

Well, what's goin on?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
dpkg is dead! error in /var/lib/dpkg/available dezert_fox Debian 4 11-22-2011 10:28 AM
Where can I find instruction to build BLFS LiveCD satimis Linux From Scratch 12 10-22-2005 07:31 PM
basic ncurses doubt .. related to raw() and cbreak() ... tuxfood Programming 2 08-28-2004 11:15 AM
ncurses-5.3 configure error - fails sanity check itsjustme Linux From Scratch 3 10-04-2003 05:34 PM
BLFS: XFree86; TDFX(0) Cannot open /dev/mem. And some other related questions SparceMatrix Linux From Scratch 1 06-14-2003 02:38 PM


All times are GMT -5. The time now is 07:02 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration