LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-18-2010, 04:16 PM   #16
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454

I've tried

Code:
./configure --prefix /home/sergei/parted-2.3 --disable-device-mapper --without-readline
and after it just 'make' worked.

M kernel is much older:

Code:
uname -a
Linux amdam2 2.6.27.45-0.1-default #1 SMP 2010-02-22 16:49:47 +0100 i686 athlon i386 GNU/Linux
and I've used --disable-device-mapper because I do not have the library installed.

I suggest to start from scratch (i.e. empty build directory) and use the above command line for configure (just another prefix).
 
Old 06-18-2010, 04:34 PM   #17
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Ubuntu 10.04 Lucid , ( kernel 2.6.32-21 )
cd parted-2.3/ && ./configure --with-readline
( The other mentioned options are included by default ).

No errors.
..
 
Old 06-18-2010, 04:36 PM   #18
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 749

Original Poster
Rep: Reputation: 73
So, again, the distro is Slackware 13.1, but it's modified with a lot of custom packages. This means also the kernel is newer, new kernel headers and so on.

I think one of the packages does this... but which one I dont know.

I've also try to just rebuild the exact packages from Slackware 13.1 repository and fails with the same error.

So I suppose some headers, some place changed and they are not fully compatible with what parted needs... this is what I think, but as Im not a programmer, I have no idea what is screwing this up.

P.S. libc, gcc, make and so on is still Slackware 13.1.
 
Old 06-18-2010, 04:40 PM   #19
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 749

Original Poster
Rep: Reputation: 73
Tried make distclean; ./configure --without-readline; make and still the same error.
 
Old 06-18-2010, 04:49 PM   #20
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by robertjinx View Post
Tried make distclean; ./configure --without-readline; make and still the same error.
This is not what I've suggested - the devil is in the details.

Last edited by Sergei Steshenko; 06-18-2010 at 05:17 PM.
 
Old 06-18-2010, 04:51 PM   #21
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 749

Original Poster
Rep: Reputation: 73
Doesnt really help...
 
Old 06-18-2010, 05:21 PM   #22
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Just tried on my Slackware64 with a 2.6.34 kernel and it compiles just fine.
I guess you've somehow mixed scsi.h provided by the kernel you're using with scsi.h provided by glibc
Quote:
/usr/include/scsi/scsi.h:152
#define TYPE_ENCLOSURE 0x0d /* Enclosure Services Device */

/usr/src/linux-2.6.34/include/scsi/scsi.h:152
u8 opcode; /* opcode always == VARIABLE_LENGTH_CMD */
 
Old 06-18-2010, 05:31 PM   #23
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 749

Original Poster
Rep: Reputation: 73
Crap! First of all... thx, but second, wtf?! Why are they so different?
 
Old 06-18-2010, 05:34 PM   #24
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 749

Original Poster
Rep: Reputation: 73
Crap it worked, I reinstalled glibc and parted 2.3 got compiled. Why ... why!? @#?$@#%@#$%
 
Old 06-18-2010, 05:38 PM   #25
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 749

Original Poster
Rep: Reputation: 73
Ok if glibc contains some scsi files and the linux kernel does also... how do you know... which is good and which is bad!?! How does the guys from Slackware do this packages?!
 
Old 06-18-2010, 05:49 PM   #26
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
I guess they are different because glibc headers are used to compile programs, while kernel headers are used when compiling device drivers
I think that it's you that have mixed them, because otherwise kernel headers are located in /usr/src/linux-<kernel-version>/include

Anyway glad to see it worked. You can mark the thread "solved" using the thread tools

Cheers
 
  


Reply



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
Can't build parted 2.3 on kernel 2.6.34 robertjinx Linux - Software 1 06-18-2010 01:46 PM
Which is the kernel build directory? I Can't find kernel build files crabsody Debian 7 01-09-2007 04:48 AM
LXer: Howto: build Linux kernel module against installed kernel w/o full kernel source tree LXer Syndicated Linux News 0 09-03-2006 08:21 PM
kernel-source-2.6.5-7.src.rpm requires kernel-dummy to build!? fizzdandantilus SUSE / openSUSE 5 12-02-2004 12:48 PM
Unable to build NVIDIA kernel module / determin kernel version Night Ink Fedora 2 05-31-2004 04:54 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:32 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration