LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 08:16 AM   #1
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 747

Rep: Reputation: 73
Can't build parted 2.3 on kernel 2.6.34


Hello, Im trying to build parted 2.3, but I always end-up in the same error:


Code:
In file included from arch/linux.c:42:
/usr/include/scsi/scsi.h:152: error: expected specifier-qualifier-list before 'u8'
/usr/include/scsi/scsi.h: In function 'scsi_varlen_cdb_length':
/usr/include/scsi/scsi.h:163: error: 'struct scsi_varlen_cdb_hdr' has no member named 'additional_cdb_length'
I tried also 2.2 and its the same.

This is how I build it:

Code:
SLKCFLAGS="-march=i486 -mtune=i686 -fgnu89-inline"
ARCH=i486

CFLAGS="$SLKCFLAGS" \
./configure \
  --prefix=/usr \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --mandir=/usr/man \
  --infodir=/usr/info \
  --enable-shared=yes \
  --enable-static=no \
  --enable-device-mapper=yes \
  --with-readline \
  --build=$ARCH-slackware-linux
Does anyone have an idea whats the error?
 
Old 06-18-2010, 01:51 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.4 + 50+ other Linux OS, for test only.
Posts: 17,049

Rep: Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459
Duplicate of
http://www.linuxquestions.org/questi...6-34-a-814909/

Please do not double post, it's against the LQ Rules

..
 
Old 06-18-2010, 02:19 PM   #3
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 747

Original Poster
Rep: Reputation: 73
I know, but I didn't find a button to delete the post or move it.
 
Old 06-18-2010, 02:41 PM   #4
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by robertjinx View Post
Hello, Im trying to build parted 2.3, but I always end-up in the same error:


Code:
In file included from arch/linux.c:42:
/usr/include/scsi/scsi.h:152: error: expected specifier-qualifier-list before 'u8'
/usr/include/scsi/scsi.h: In function 'scsi_varlen_cdb_length':
/usr/include/scsi/scsi.h:163: error: 'struct scsi_varlen_cdb_hdr' has no member named 'additional_cdb_length'
I tried also 2.2 and its the same.

This is how I build it:

Code:
SLKCFLAGS="-march=i486 -mtune=i686 -fgnu89-inline"
ARCH=i486

CFLAGS="$SLKCFLAGS" \
./configure \
  --prefix=/usr \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --mandir=/usr/man \
  --infodir=/usr/info \
  --enable-shared=yes \
  --enable-static=no \
  --enable-device-mapper=yes \
  --with-readline \
  --build=$ARCH-slackware-linux
Does anyone have an idea whats the error?
I would start from

Code:
/usr/include/scsi/scsi.h:152: error: expected specifier-qualifier-list before 'u8'
- it looks like an include file is missing. Try to put

Code:
#inlcude <stdtype.h>
at the top of the file which doesn't compile.

It's a wild guess though.
 
Old 06-18-2010, 02:43 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.4 + 50+ other Linux OS, for test only.
Posts: 17,049

Rep: Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459
OK , if you want a post moved to another Forum,
a Moderator will do that, when asked.

Did you see my edits in the other thread ?
http://www.linuxquestions.org/questi...6-34-a-814909/
 
Old 06-18-2010, 02:56 PM   #6
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 747

Original Poster
Rep: Reputation: 73
@knudfl: Slack 13.1, but no matter how I build it, it does end-up in the same error...
 
Old 06-18-2010, 03:01 PM   #7
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 747

Original Poster
Rep: Reputation: 73
Well doesnt work:

arch/linux.c:37:21: error: stdtype.h: No such file or directory
In file included from arch/linux.c:43:
/usr/include/scsi/scsi.h:152: error: expected specifier-qualifier-list before 'u8'
/usr/include/scsi/scsi.h: In function 'scsi_varlen_cdb_length':
/usr/include/scsi/scsi.h:163: error: 'struct scsi_varlen_cdb_hdr' has no member named 'additional_cdb_length'
make[3]: *** [linux.lo] Error 1
make[3]: Leaving directory `/tmp/kng/parted-2.3/libparted'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/kng/parted-2.3/libparted'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/kng/parted-2.3'
make: *** [all] Error 2
 
Old 06-18-2010, 03:16 PM   #8
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by robertjinx View Post
Well doesnt work:

arch/linux.c:37:21: error: stdtype.h: No such file or directory
In file included from arch/linux.c:43:
/usr/include/scsi/scsi.h:152: error: expected specifier-qualifier-list before 'u8'
/usr/include/scsi/scsi.h: In function 'scsi_varlen_cdb_length':
/usr/include/scsi/scsi.h:163: error: 'struct scsi_varlen_cdb_hdr' has no member named 'additional_cdb_length'
make[3]: *** [linux.lo] Error 1
make[3]: Leaving directory `/tmp/kng/parted-2.3/libparted'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/kng/parted-2.3/libparted'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/kng/parted-2.3'
make: *** [all] Error 2
It should have rather been 'stdint.h; - I was writing off the top of my head.

See http://en.wikipedia.org/wiki/C_standard_library for the list standard include files.
 
Old 06-18-2010, 03:33 PM   #9
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 747

Original Poster
Rep: Reputation: 73
Well I don't know anything about programming, so whatever you tell me, most probably I'll believe it
 
Old 06-18-2010, 03:35 PM   #10
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 747

Original Poster
Rep: Reputation: 73
Anyway still doesn't work, plus I don't know what that error means.

Last edited by robertjinx; 06-18-2010 at 03:40 PM.
 
Old 06-18-2010, 03:42 PM   #11
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by robertjinx View Post
Anyway still doesn't work, plus I don't know what that error means.
It looks like 'u8' is a type (likely unsigned 8 bit type, i.e. byte, which typically in "C" is represented as 'unsigned char'), but the type definition is missing.

...

Does 'parted' have 'configure' script and if yes, did you run it ?

Last edited by Sergei Steshenko; 06-18-2010 at 03:50 PM.
 
Old 06-18-2010, 03:44 PM   #12
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 747

Original Poster
Rep: Reputation: 73
Yes, I've run the "configure" script... works without any errors and then of course "make"
 
Old 06-18-2010, 03:53 PM   #13
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by robertjinx View Post
Yes, I've run the "configure" script... works without any errors and then of course "make"
I am "fishing", but try a simpler 'configure' command line and don't set any flags, i.e. something like

Code:
./configure --prefix=/some/dir
where /some/dir is not a system directory.
 
Old 06-18-2010, 04:07 PM   #14
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 747

Original Poster
Rep: Reputation: 73
Did that already, same issue.

make distclean; ./configure; make

Same error.
 
Old 06-18-2010, 04:09 PM   #15
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.4 + 50+ other Linux OS, for test only.
Posts: 17,049

Rep: Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459
Which version of Slackware are you using ?
( Options and flags are from a Slackbuild script )
Or isn't it Slackware at all ?

Sergei, if you read the duplicate thread, you will see :
No errors with any combination of options.
The two combinations shown work OK on a non Slackware OS too.
http://www.linuxquestions.org/questi...6-34-a-814909/

But the OP seems to have found a way to make it not work.
..
 
  


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
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 10:23 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration