LINUX.ORG.RU

sg3_utils не собирается


0

0
gcc -DHAVE_CONFIG_H -I. -I.. -I ../include -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -W -O2 -fPIC -MT sg_io_linux.lo -MD -MP -MF .deps/sg_io_linux.Tpo -c sg_io_linux.c  -fPIC -DPIC -o .libs/sg_io_linux.o
In file included from ../include/sg_linux_inc.h:15,
                 from ../include/sg_io_linux.h:22,
                 from sg_io_linux.c:21:
/usr/include/scsi/scsi.h:148: ошибка: expected specifier-qualifier-list before ‘u8’
/usr/include/scsi/scsi.h: В функции ‘scsi_varlen_cdb_length’:
/usr/include/scsi/scsi.h:159: ошибка: ‘struct scsi_varlen_cdb_hdr’ не содержит элемента с именем ‘additional_cdb_length’
make[2]: *** [sg_io_linux.lo] Ошибка 1
make[2]: Leaving directory `/home/fat0troll/Tech/agilia/gnome2/sg3_utils/src/sg3_utils-1.29/lib'
make[1]: *** [all-recursive] Ошибка 1
make[1]: Leaving directory `/home/fat0troll/Tech/agilia/gnome2/sg3_utils/src/sg3_utils-1.29'
make: *** [all] Ошибка 2

AgiliaLinux 10.4, gcc 4.4.3

/usr/include/scsi

попробуйте взять
1) от ядра
2) из glibc

с каким-то вариантом должно собраться

Sylvia ★★★★★ ()

Gentoo, eglibc 2.11.1 , GCC 4.5.1pre, sg3_utils 1.29
прекрасно собрались с /usr/include/scsi от glibc

возможен такой вариант что ставили kernel headers и они переписали содержимое /usr/include/scsi , нужно восстановить заголовки от glibc
проверьте -

$head -n 5 /usr/include/scsi/scsi.h
/* Copyright (C) 1998, 1999 Free Software Foundation, Inc.
This file is part of the GNU C Library.

The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public

Sylvia ★★★★★ ()
Ответ на: комментарий от Sylvia
In file included from ../include/sg_linux_inc.h:15,
                 from sg_pt_linux.c:28:
/usr/src/linux/include/scsi/scsi.h:148: ошибка: expected specifier-qualifier-list before ‘u8’
/usr/src/linux/include/scsi/scsi.h: В функции ‘scsi_varlen_cdb_length’:
/usr/src/linux/include/scsi/scsi.h:159: ошибка: ‘struct scsi_varlen_cdb_hdr’ не содержит элемента с именем ‘additional_cdb_length’
In file included from ../include/sg_linux_inc.h:15,
                 from sg_pt_linux.c:28:
/usr/src/linux/include/scsi/scsi.h:176:1: warning: "SAM_STAT_GOOD" redefined
In file included from sg_pt_linux.c:27:
../include/sg_lib.h:64:1: warning: this is the location of the previous definition
In file included from ../include/sg_linux_inc.h:15,
                 from sg_pt_linux.c:28:
/usr/src/linux/include/scsi/scsi.h:177:1: warning: "SAM_STAT_CHECK_CONDITION" redefined
In file included from sg_pt_linux.c:27:
../include/sg_lib.h:65:1: warning: this is the location of the previous definition
In file included from ../include/sg_linux_inc.h:15,
                 from sg_pt_linux.c:28:
/usr/src/linux/include/scsi/scsi.h:178:1: warning: "SAM_STAT_CONDITION_MET" redefined
In file included from sg_pt_linux.c:27:
../include/sg_lib.h:66:1: warning: this is the location of the previous definition
In file included from ../include/sg_linux_inc.h:15,
                 from sg_pt_linux.c:28:
/usr/src/linux/include/scsi/scsi.h:179:1: warning: "SAM_STAT_BUSY" redefined
In file included from sg_pt_linux.c:27:
../include/sg_lib.h:67:1: warning: this is the location of the previous definition
make[2]: *** [sg_pt_linux.lo] Ошибка 1
make[2]: *** Ожидание завершения заданий...
...
LDFLAGS="$SLKLDFLAGS" \
CFLAGS="$SLKCFLAGS -I/usr/src/linux/include" \
CXXFLAGS="$SLKCFLAGS" \
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--disable-static \
--mandir=/usr/man \
--program-prefix= \
--program-suffix=

sg3_utils 1.29

DoctorSinus ★★★★★ ()
Ответ на: комментарий от Sylvia

пока я переписывал с корректным форматированием, вы распарсили ту кашу :))

DoctorSinus ★★★★★ ()
Ответ на: комментарий от Sylvia
 head -n5 /usr/include/scsi/scsi.h 
/*
 * This header file contains public constants and structures used by
 * the scsi code for linux.
 *
 * For documentation on the OPCODES, MESSAGES, and SENSE values,
root@valdos-desk:/home/fat0troll/Tech/agilia/gnome2/sg3_utils# 

надо восстанавливать, спасибо

DoctorSinus ★★★★★ ()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.