RE: building dmraid rc14 from source on FC7

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am using the dmraid source rpm for FC7 from mirrors.kernel.org.  I first extract it by running [rpm -i dmraid*.rpm], then I go to the /usr/src/redhat/SOURCES dir and extract the dmraid*.tar.bz file.

>From the dmraid/1.0.0.rc14 dir I run [./configure] and [make].

Here is the outlook, hopefully outlook does not make thinks to unreadable.

--------------------------------------------------------------------------

[root@localhost ~]# cd /usr/src/redhat/SOURCES/dmraid
[root@localhost dmraid]# cd 1.0.0.rc14/
[root@localhost 1.0.0.rc14]# ls
aclocal.m4  CHANGELOG   config.status  configure.in  dmraid.spec  include     lib      LICENSE_GPL   Makefile     make.tmpl     man     TODO
autoconf    config.log  configure      CREDITS       doc          KNOWN_BUGS  LICENSE  LICENSE_LGPL  Makefile.in  make.tmpl.in  README  tools
[root@localhost 1.0.0.rc14]# ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for gawk... gawk
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... yes
checking for ranlib... ranlib
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking for unistd.h... (cached) yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for struct stat.st_rdev... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether to enable debugging... 
no
checking whether to enable malloc debugging... 
no
checking whether to disable native metadata logging... 
yes
checking whether to disable testing with mapped devices... 
no
checking whether gcc needs -traditional... no
checking return type of signal handlers... void
checking for vprintf... yes
checking for _doprnt... no
checking for mkdir... yes
checking for rmdir... yes
checking for uname... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
configure: creating ./config.status
config.status: creating include/Makefile
config.status: creating lib/Makefile
config.status: creating man/Makefile
config.status: creating tools/Makefile
config.status: creating tools/version.h
config.status: creating Makefile
config.status: creating make.tmpl
[root@localhost 1.0.0.rc14]# make
make -C include
make[1]: Entering directory `/usr/src/redhat/SOURCES/dmraid/1.0.0.rc14/include'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/src/redhat/SOURCES/dmraid/1.0.0.rc14/include'
make -C lib
make[1]: Entering directory `/usr/src/redhat/SOURCES/dmraid/1.0.0.rc14/lib'
gcc -MM -MF activate/devmapper.d -I. -I../include -I../lib -O2 -DDMRAID_NATIVE_LOG -DHAVE_GETOPTLONG -fPIC -Wall -Wundef -Wcast-align -Wwrite-strings -Winline -DDMRAID_TEST -O2 -D_LARGEFILE64_SOURCE activate/devmapper.c; \
        gcc -c -I. -I../include -I../lib -O2 -DDMRAID_NATIVE_LOG -DHAVE_GETOPTLONG -fPIC -Wall -Wundef -Wcast-align -Wwrite-strings -Winline -DDMRAID_TEST -O2 -D_LARGEFILE64_SOURCE activate/devmapper.c -o activate/devmapper.o
activate/devmapper.c:12:26: error: libdevmapper.h: No such file or directory
activate/devmapper.c: In function ‘mkdm_path’:
activate/devmapper.c:28: warning: implicit declaration of function ‘dm_dir’
activate/devmapper.c:28: warning: initialization makes pointer from integer without a cast
activate/devmapper.c: In function ‘_init_dm’:
activate/devmapper.c:48: warning: implicit declaration of function ‘dm_log_init’
activate/devmapper.c: At top level:
activate/devmapper.c:52: warning: ‘struct dm_task’ declared inside parameter list
activate/devmapper.c:52: warning: its scope is only this definition or declaration, which is probably not what you want
activate/devmapper.c: In function ‘_exit_dm’:
activate/devmapper.c:55: warning: implicit declaration of function ‘dm_task_destroy’
activate/devmapper.c:57: warning: implicit declaration of function ‘dm_lib_release’
activate/devmapper.c:58: warning: implicit declaration of function ‘dm_lib_exit’
activate/devmapper.c: In function ‘get_target_list’:
activate/devmapper.c:70: warning: implicit declaration of function ‘dm_task_create’
activate/devmapper.c:70: error: ‘DM_DEVICE_LIST_VERSIONS’ undeclared (first use in this function)
activate/devmapper.c:70: error: (Each undeclared identifier is reported only once
activate/devmapper.c:70: error: for each function it appears in.)
activate/devmapper.c:70: warning: assignment makes pointer from integer without a cast
activate/devmapper.c:71: warning: implicit declaration of function ‘dm_task_run’
activate/devmapper.c:71: warning: implicit declaration of function ‘dm_task_get_versions’
activate/devmapper.c:71: warning: pointer/integer type mismatch in conditional expression
activate/devmapper.c: In function ‘valid_ttype’:
activate/devmapper.c:91: error: dereferencing pointer to incomplete type
activate/devmapper.c:91: error: dereferencing pointer to incomplete type
activate/devmapper.c:91: error: dereferencing pointer to incomplete type
activate/devmapper.c:91: error: dereferencing pointer to incomplete type
activate/devmapper.c:91: error: dereferencing pointer to incomplete type
activate/devmapper.c:91: error: dereferencing pointer to incomplete type
activate/devmapper.c:91: error: dereferencing pointer to incomplete type
activate/devmapper.c:91: error: dereferencing pointer to incomplete type
activate/devmapper.c:91: error: dereferencing pointer to incomplete type
activate/devmapper.c:91: error: dereferencing pointer to incomplete type
activate/devmapper.c:91: error: dereferencing pointer to incomplete type
activate/devmapper.c:91: error: dereferencing pointer to incomplete type
activate/devmapper.c:91: error: dereferencing pointer to incomplete type
activate/devmapper.c:91: error: dereferencing pointer to incomplete type
activate/devmapper.c:91: error: dereferencing pointer to incomplete type
activate/devmapper.c:91: error: dereferencing pointer to incomplete type
activate/devmapper.c:91: error: dereferencing pointer to incomplete type
activate/devmapper.c:91: error: dereferencing pointer to incomplete type
activate/devmapper.c:91: error: dereferencing pointer to incomplete type
activate/devmapper.c:91: error: dereferencing pointer to incomplete type
activate/devmapper.c:95: error: dereferencing pointer to incomplete type
activate/devmapper.c: At top level:
activate/devmapper.c:106: warning: ‘struct dm_task’ declared inside parameter list
activate/devmapper.c: In function ‘handle_table’:
activate/devmapper.c:130: warning: implicit declaration of function ‘dm_task_add_target’
activate/devmapper.c: At top level:
activate/devmapper.c:139: warning: ‘struct dm_task’ declared inside parameter list
activate/devmapper.c: In function ‘parse_table’:
activate/devmapper.c:141: warning: passing argument 2 of ‘handle_table’ from incompatible pointer type
activate/devmapper.c: In function ‘run_task’:
activate/devmapper.c:158: warning: assignment makes pointer from integer without a cast
activate/devmapper.c:158: warning: implicit declaration of function ‘dm_task_set_name’
activate/devmapper.c:160: warning: passing argument 2 of ‘parse_table’ from incompatible pointer type
activate/devmapper.c:165: warning: passing argument 1 of ‘_exit_dm’ from incompatible pointer type
activate/devmapper.c: In function ‘dm_create’:
activate/devmapper.c:174: error: ‘DM_DEVICE_CREATE’ undeclared (first use in this function)
activate/devmapper.c: In function ‘dm_suspend’:
activate/devmapper.c:190: error: ‘DM_DEVICE_SUSPEND’ undeclared (first use in this function)
activate/devmapper.c: In function ‘dm_resume’:
activate/devmapper.c:197: error: ‘DM_DEVICE_RESUME’ undeclared (first use in this function)
activate/devmapper.c: In function ‘dm_reload’:
activate/devmapper.c:206: error: ‘DM_DEVICE_RELOAD’ undeclared (first use in this function)
activate/devmapper.c: In function ‘dm_remove’:
activate/devmapper.c:222: error: ‘DM_DEVICE_REMOVE’ undeclared (first use in this function)
activate/devmapper.c: In function ‘dm_status’:
activate/devmapper.c:231: error: storage size of ‘info’ isn’t known
activate/devmapper.c:236: error: ‘DM_DEVICE_STATUS’ undeclared (first use in this function)
activate/devmapper.c:236: warning: assignment makes pointer from integer without a cast
activate/devmapper.c:239: warning: implicit declaration of function ‘dm_task_get_info’
activate/devmapper.c:242: warning: passing argument 1 of ‘_exit_dm’ from incompatible pointer type
activate/devmapper.c:231: warning: unused variable ‘info’
activate/devmapper.c: In function ‘dm_version’:
activate/devmapper.c:258: error: ‘DM_DEVICE_VERSION’ undeclared (first use in this function)
activate/devmapper.c:258: warning: assignment makes pointer from integer without a cast
activate/devmapper.c:260: warning: implicit declaration of function ‘dm_task_get_driver_version’
activate/devmapper.c:262: warning: passing argument 1 of ‘_exit_dm’ from incompatible pointer type
make[1]: *** [activate/devmapper.o] Error 1
make[1]: Leaving directory `/usr/src/redhat/SOURCES/dmraid/1.0.0.rc14/lib'
make: *** [lib] Error 2
[root@localhost 1.0.0.rc14]#

----------------------------------------------------------------------------
 
Thanks,

Jason





>-----Original Message-----
>From: ataraid-list-bounces@xxxxxxxxxx [mailto:ataraid-list-
>bounces@xxxxxxxxxx] On Behalf Of Heinz Mauelshagen
>Sent: Wednesday, June 13, 2007 3:04 AM
>To: ATARAID (eg, Promise Fasttrak, Highpoint 370) related discussions
>Subject: Re: building dmraid rc14 from source on FC7
>
>On Tue, Jun 12, 2007 at 02:16:30PM -0700, Gaston, Jason D wrote:
>> I have been unable to build dmraid 1.0.0.rc14 from source on Fedora Core
>> 7.  I even tried using the FC7 dmraid source rpm.  I get lots of errors
>> when running make.  Like "DM_DEVICE_LIST_VERSIONS undeclared (first use
>> in function)" and "dereferencing pointer to incomplete type".
>>
>> Am I doing something wrong?
>
>Can you send me the output of what you're doing ?
>
>Heinz
>
>>
>> Thanks,
>>
>> Jason
>>
>>
>> _______________________________________________
>> Ataraid-list mailing list
>> Ataraid-list@xxxxxxxxxx
>> https://www.redhat.com/mailman/listinfo/ataraid-list
>
>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>=-=-
>
>Heinz Mauelshagen                                 Red Hat GmbH
>Consulting Development Engineer                   Am Sonnenhang 11
>Storage Development                               56242 Marienrachdorf
>                                                  Germany
>Mauelshagen@xxxxxxxxxx                            PHONE +49  171 7803392
>                                                  FAX   +49 2626 924446
>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>=-=-
>
>_______________________________________________
>Ataraid-list mailing list
>Ataraid-list@xxxxxxxxxx
>https://www.redhat.com/mailman/listinfo/ataraid-list

_______________________________________________
Ataraid-list mailing list
Ataraid-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/ataraid-list

[Index of Archives]     [Linux RAID]     [Linux Device Mapper]     [Linux IDE]     [Linux SCSI]     [Kernel]     [Linux Books]     [Linux Admin]     [GFS]     [RPM]     [Yosemite Campgrounds]     [AMD 64]

  Powered by Linux