[PATCH (for discussion)] New hivexhextostring tool.
by Richard W.M. Jones
The idea here is that you can pipe the output of virt-win-reg or
hivexregedit --export through this program in order to display the
strings more simply.
Instead of:
$ virt-win-reg --export ...
[\ATI Technologies\Install\South Bridge\ATI_AHCI_RAID]
"DisplayName"=hex(1):41,00,4d,00,44,00,20,00,41,00,48,00,43,00,49,00,20,00,52,00,41,00,49,00,44,00,00,00
you get:
$ virt-win-reg --export ... | hivexhextostring
[\ATI Technologies\Install\South Bridge\ATI_AHCI_RAID]
"DisplayName"=str(1):"AMD AHCI RAID^@"
However there are fundamental problems that make this a best effort
process: there is no string encoding information in the registry, and
the actual strings there are in a random set of encodings, mostly
UTF-16LE, some ASCII or UTF-8, and a few in DOS codepoint encodings.
Since there's no way to tell the encoding of a string, this tool
doesn't get it right all the time.
So it's good for viewing registry keys, but it doesn't preserve the
fidelity of strings.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top
13 years, 7 months
Use of guestmount
by Richard W.M. Jones
23:43 < belegdol> I am trying to mount my windows guest using
23:43 < belegdol> guestmount -d windows -i --trace --ro /mnt/loop
23:43 < belegdol> but then I cannot access whatever is in /mnt/loop
23:43 < belegdol> I get access denied
23:43 < belegdol> or nautilus says unknown file type
23:44 < belegdol> http://fpaste.org/cIDV/
All I can tell from the paste is that guestmount appears to be working
fine. There's not enough detail to tell why things don't work after
the disks are mounted.
Try running guestmount with the --trace and --verbose options
together.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine. Supports Linux and Windows.
http://et.redhat.com/~rjones/virt-df/
13 years, 7 months
builder-debian febootstrap success 6ab9465001dfaa52edc5992ee71f2e9aecc2085d
by Richard Jones
This is an automatic message generated by the builder on
builder-debian for febootstrap. Log files from the build
follow below.
Linux builder-debian.home.annexia.org 2.6.36-trunk-amd64 #1 SMP Wed Oct 27 14:28:29 UTC 2010 x86_64 GNU/Linux
Fri May 13 20:00:01 BST 2011
-----
+ git pull --rebase git://git.annexia.org/git/febootstrap.git master
>From git://git.annexia.org/git/febootstrap
* branch master -> FETCH_HEAD
Current branch master is up to date.
+ git clean -d -f
++ awk '{print $2}'
++ head -1
++ git log
+ gitsha=6ab9465001dfaa52edc5992ee71f2e9aecc2085d
+ ./autogen.sh
Module list with included dependencies (indented):
alloca-opt
arg-nonnull
bitrotate
c++defs
c-ctype
chdir-long
chown
cloexec
close
close-hook
cycle-check
d-ino
d-type
dev-ino
dirent
dirent-safer
dirfd
dirname-lgpl
double-slash-root
dup2
errno
error
exitfail
extensions
fchdir
fclose
fcntl
fcntl-h
fcntl-safer
fdopendir
filevercmp
float
fts
full-write
getcwd
getdtablesize
getopt-gnu
getopt-posix
gettext-h
hash
hash-pjw
i-ring
include_next
inline
intprops
inttypes
lchown
lstat
malloc-posix
memchr
mempcpy
memrchr
mkdir
multiarch
open
openat
openat-die
openat-safer
realloc-posix
rmdir
safe-read
safe-write
same-inode
save-cwd
size_max
ssize_t
stat
stdarg
stdbool
stddef
stdint
stdio
stdlib
strdup-posix
strerror
string
sys_stat
sys_wait
time
unistd
unistd-safer
unlink
vasnprintf
vasprintf
verify
warn-on-use
wchar
write
xalloc
xalloc-die
xgetcwd
xsize
xstrtol
xvasprintf
Notice from module error:
If you are using GNU gettext version 0.16.1 or older, add the following options
to XGETTEXT_OPTIONS in your po/Makevars:
--flag=error:3:c-format --flag=error_at_line:5:c-format
Notice from module vasprintf:
If you are using GNU gettext version 0.16.1 or older, add the following options
to XGETTEXT_OPTIONS in your po/Makevars:
--flag=asprintf:2:c-format --flag=vasprintf:2:c-format
Notice from module xvasprintf:
If you are using GNU gettext version 0.16.1 or older, add the following options
to XGETTEXT_OPTIONS in your po/Makevars: --flag=xasprintf:1:c-format
File list:
build-aux/arg-nonnull.h
build-aux/c++defs.h
build-aux/warn-on-use.h
lib/alloca.in.h
lib/asnprintf.c
lib/asprintf.c
lib/at-func.c
lib/basename-lgpl.c
lib/bitrotate.h
lib/c-ctype.c
lib/c-ctype.h
lib/chdir-long.c
lib/chdir-long.h
lib/chown.c
lib/cloexec.c
lib/cloexec.h
lib/close-hook.c
lib/close-hook.h
lib/close.c
lib/creat-safer.c
lib/cycle-check.c
lib/cycle-check.h
lib/dev-ino.h
lib/dirent--.h
lib/dirent-safer.h
lib/dirent.in.h
lib/dirfd.c
lib/dirname-lgpl.c
lib/dirname.h
lib/dup-safer.c
lib/dup2.c
lib/errno.in.h
lib/error.c
lib/error.h
lib/exitfail.c
lib/exitfail.h
lib/fchdir.c
lib/fchmodat.c
lib/fchown-stub.c
lib/fchownat.c
lib/fclose.c
lib/fcntl--.h
lib/fcntl-safer.h
lib/fcntl.c
lib/fcntl.in.h
lib/fd-safer.c
lib/fdopendir.c
lib/filevercmp.c
lib/filevercmp.h
lib/float+.h
lib/float.in.h
lib/fstatat.c
lib/fts-cycle.c
lib/fts.c
lib/fts_.h
lib/full-write.c
lib/full-write.h
lib/getcwd.c
lib/getdtablesize.c
lib/getopt.c
lib/getopt.in.h
lib/getopt1.c
lib/getopt_int.h
lib/gettext.h
lib/hash-pjw.c
lib/hash-pjw.h
lib/hash.c
lib/hash.h
lib/i-ring.c
lib/i-ring.h
lib/intprops.h
lib/inttypes.in.h
lib/lchown.c
lib/lstat.c
lib/malloc.c
lib/memchr.c
lib/memchr.valgrind
lib/mempcpy.c
lib/memrchr.c
lib/mkdir.c
lib/mkdirat.c
lib/open-safer.c
lib/open.c
lib/openat-die.c
lib/openat-priv.h
lib/openat-proc.c
lib/openat-safer.c
lib/openat.c
lib/openat.h
lib/opendir-safer.c
lib/pipe-safer.c
lib/printf-args.c
lib/printf-args.h
lib/printf-parse.c
lib/printf-parse.h
lib/realloc.c
lib/rmdir.c
lib/safe-read.c
lib/safe-read.h
lib/safe-write.c
lib/safe-write.h
lib/same-inode.h
lib/save-cwd.c
lib/save-cwd.h
lib/size_max.h
lib/stat.c
lib/stdarg.in.h
lib/stdbool.in.h
lib/stddef.in.h
lib/stdint.in.h
lib/stdio-write.c
lib/stdio.in.h
lib/stdlib.in.h
lib/strdup.c
lib/strerror.c
lib/string.in.h
lib/stripslash.c
lib/sys_stat.in.h
lib/sys_wait.in.h
lib/time.in.h
lib/unistd--.h
lib/unistd-safer.h
lib/unistd.in.h
lib/unlink.c
lib/unlinkat.c
lib/vasnprintf.c
lib/vasnprintf.h
lib/vasprintf.c
lib/verify.h
lib/wchar.in.h
lib/write.c
lib/xalloc-die.c
lib/xalloc.h
lib/xasprintf.c
lib/xgetcwd.c
lib/xgetcwd.h
lib/xmalloc.c
lib/xsize.h
lib/xstrtol-error.c
lib/xstrtol.c
lib/xstrtol.h
lib/xstrtoul.c
lib/xvasprintf.c
lib/xvasprintf.h
m4/00gnulib.m4
m4/alloca.m4
m4/asm-underscore.m4
m4/chdir-long.m4
m4/chown.m4
m4/cloexec.m4
m4/close.m4
m4/cycle-check.m4
m4/d-ino.m4
m4/d-type.m4
m4/dirent-safer.m4
m4/dirent_h.m4
m4/dirfd.m4
m4/dirname.m4
m4/dos.m4
m4/double-slash-root.m4
m4/dup2.m4
m4/errno_h.m4
m4/error.m4
m4/extensions.m4
m4/fchdir.m4
m4/fclose.m4
m4/fcntl-o.m4
m4/fcntl-safer.m4
m4/fcntl.m4
m4/fcntl_h.m4
m4/fdopendir.m4
m4/float_h.m4
m4/fts.m4
m4/getcwd-abort-bug.m4
m4/getcwd-path-max.m4
m4/getcwd.m4
m4/getdtablesize.m4
m4/getopt.m4
m4/gnulib-common.m4
m4/hash.m4
m4/i-ring.m4
m4/include_next.m4
m4/inline.m4
m4/intmax_t.m4
m4/inttypes-pri.m4
m4/inttypes.m4
m4/inttypes_h.m4
m4/lchown.m4
m4/longlong.m4
m4/lstat.m4
m4/malloc.m4
m4/memchr.m4
m4/mempcpy.m4
m4/memrchr.m4
m4/mkdir.m4
m4/mmap-anon.m4
m4/mode_t.m4
m4/multiarch.m4
m4/onceonly.m4
m4/open.m4
m4/openat.m4
m4/printf.m4
m4/realloc.m4
m4/rmdir.m4
m4/safe-read.m4
m4/safe-write.m4
m4/save-cwd.m4
m4/size_max.m4
m4/ssize_t.m4
m4/stat.m4
m4/stdarg.m4
m4/stdbool.m4
m4/stddef_h.m4
m4/stdint.m4
m4/stdint_h.m4
m4/stdio_h.m4
m4/stdlib_h.m4
m4/strdup.m4
m4/strerror.m4
m4/string_h.m4
m4/sys_stat_h.m4
m4/sys_wait_h.m4
m4/time_h.m4
m4/unistd-safer.m4
m4/unistd_h.m4
m4/unlink.m4
m4/vasnprintf.m4
m4/vasprintf.m4
m4/warn-on-use.m4
m4/wchar_h.m4
m4/wchar_t.m4
m4/wint_t.m4
m4/write.m4
m4/xalloc.m4
m4/xgetcwd.m4
m4/xsize.m4
m4/xstrtol.m4
m4/xvasprintf.m4
Finished.
You may need to add #include directives for the following .h files.
#include "error.h"
#include "filevercmp.h"
#include "fts_.h"
#include "full-write.h"
#include "hash-pjw.h"
#include "hash.h"
#include "xalloc.h"
#include "xstrtol.h"
#include "xvasprintf.h"
You may need to use the following Makefile variables when linking.
Use them in <program>_LDADD when linking a program, or
in <library>_a_LDFLAGS or <library>_la_LDFLAGS when linking a library.
$(LTLIBINTL) when linking with libtool, $(LIBINTL) otherwise
Don't forget to
- add "lib/Makefile" to AC_CONFIG_FILES in ./configure.ac,
- mention "lib" in SUBDIRS in Makefile.am,
- mention "-I m4" in ACLOCAL_AMFLAGS in Makefile.am,
- mention "m4/gnulib-cache.m4" in EXTRA_DIST in Makefile.am,
- invoke gl_EARLY in ./configure.ac, right after AC_PROG_CC,
- invoke gl_INIT in ./configure.ac.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
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 ISO C89... none needed
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... -std=gnu99
checking for gcc -std=gnu99 option to accept ISO Standard C... (cached) -std=gnu99
checking for ranlib... ranlib
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/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 minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for function prototypes... yes
checking whether gcc -std=gnu99 and cc understand -c and -o together... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for working alloca.h... yes
checking for alloca... yes
checking for inline... inline
checking for uid_t in sys/types.h... yes
checking for unistd.h... (cached) yes
checking for working chown... yes
checking whether chown dereferences symlinks... yes
checking for chown... yes
checking for fchown... yes
checking for fdopendir... yes
checking for dup2... yes
checking for fchdir... yes
checking for fcntl... yes
checking for lchmod... no
checking for fstatfs... yes
checking for getdtablesize... yes
checking for lstat... yes
checking for mprotect... yes
checking for memchr... yes
checking for strdup... yes
checking for pipe... yes
checking for vasnprintf... no
checking whether chown honors trailing slash... yes
checking whether chown always updates ctime... yes
checking whether the preprocessor supports include_next... yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/vfs.h usability... yes
checking sys/vfs.h presence... yes
checking for sys/vfs.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking for stdint.h... (cached) yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking for inttypes.h... (cached) yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking for unistd.h... (cached) yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for stdlib.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for string.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking whether system is Windows or MSDOS... no
checking whether // is distinct from /... no
checking for complete errno.h... yes
checking whether strerror_r is declared... yes
checking for strerror_r... yes
checking whether strerror_r returns char *... yes
checking for mode_t... yes
checking for promoted mode_t type... mode_t
checking for working fcntl.h... yes
checking whether lstat correctly handles trailing slash... yes
checking whether unlink honors trailing slashes... yes
checking whether unlink of a parent directory fails is it should... guessing yes
checking whether getcwd (NULL, 0) allocates memory for result... yes
checking whether getcwd is declared... yes
checking for getopt.h... (cached) yes
checking for getopt_long_only... yes
checking whether optreset is declared... no
checking whether getopt_clip is declared... no
checking whether getopt is POSIX compatible... yes
checking for working GNU getopt function... yes
checking whether getenv is declared... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for long long int... yes
checking for unsigned long long int... yes
checking whether stdint.h conforms to C99... yes
checking for inttypes.h... (cached) yes
checking whether the inttypes.h PRIxNN macros are broken... no
checking whether imaxabs is declared... yes
checking whether imaxdiv is declared... yes
checking whether strtoimax is declared... yes
checking whether strtoumax is declared... yes
checking whether malloc, realloc, calloc are POSIX compliant... yes
checking for mmap... yes
checking for MAP_ANONYMOUS... yes
checking whether memchr works... yes
checking for C/C++ restrict keyword... __restrict
checking whether memrchr is declared... yes
checking for ssize_t... yes
checking for wchar_t... yes
checking whether C symbols are prefixed with underscore at the linker level... no
checking whether strdup is declared... yes
checking for working strerror function... yes
checking whether memmem is declared without a macro... yes
checking whether mempcpy is declared without a macro... yes
checking whether memrchr is declared without a macro... yes
checking whether rawmemchr is declared without a macro... yes
checking whether stpcpy is declared without a macro... yes
checking whether stpncpy is declared without a macro... yes
checking whether strchrnul is declared without a macro... yes
checking whether strdup is declared without a macro... yes
checking whether strncat is declared without a macro... yes
checking whether strndup is declared without a macro... yes
checking whether strnlen is declared without a macro... yes
checking whether strpbrk is declared without a macro... yes
checking whether strsep is declared without a macro... yes
checking whether strcasestr is declared without a macro... yes
checking whether strtok_r is declared without a macro... yes
checking whether strsignal is declared without a macro... yes
checking whether strverscmp is declared without a macro... yes
checking whether stat file-mode macros are broken... no
checking for struct timespec in <time.h>... yes
checking for wint_t... yes
checking for size_t... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for intmax_t... yes
checking whether snprintf returns a byte count as in C99... yes
checking for snprintf... yes
checking for strnlen... yes
checking for wcslen... yes
checking for wcsnlen... yes
checking for mbrtowc... yes
checking for wcrtomb... yes
checking whether _snprintf is declared... no
checking whether <wchar.h> uses 'inline' correctly... yes
checking for alloca as a compiler built-in... yes
checking whether this system has an arbitrary file name length limit... yes
checking for d_ino member in directory struct... yes
checking for d_type member in directory struct... yes
checking whether alphasort is declared without a macro... yes
checking whether dirfd is declared without a macro... yes
checking whether fdopendir is declared without a macro... yes
checking whether scandir is declared without a macro... yes
checking for dirfd... yes
checking whether dirfd is declared... (cached) yes
checking whether dirfd is a macro... no
checking whether // is distinct from /... (cached) no
checking whether dup2 works... yes
checking for error_at_line... yes
checking whether fcntl handles F_DUPFD correctly... yes
checking whether fcntl understands F_DUPFD_CLOEXEC... needs runtime check
checking whether fcntl is declared without a macro... yes
checking whether openat is declared without a macro... yes
checking whether fdopendir is declared... (cached) yes
checking whether fdopendir works... yes
checking for fchmodat... yes
checking for fstatat... yes
checking for mkdirat... yes
checking for openat... yes
checking for unlinkat... yes
checking for fchownat... yes
checking whether fchownat works with AT_SYMLINK_NOFOLLOW... yes
checking for struct statfs.f_type... yes
checking whether getcwd handles long file names properly... no, but it is partly working
checking for getpagesize... yes
checking whether getcwd aborts when 4k < cwd_length < 16k... no
checking whether the compiler generally respects inline... yes
checking whether inttypes.h conforms to C99... yes
checking whether INT32_MAX < INTMAX_MAX... yes
checking whether INT64_MAX == LONG_MAX... yes
checking whether UINT32_MAX < UINTMAX_MAX... yes
checking whether UINT64_MAX == ULONG_MAX... yes
checking whether imaxabs is declared without a macro... yes
checking whether imaxdiv is declared without a macro... yes
checking whether strtoimax is declared without a macro... yes
checking whether strtoumax is declared without a macro... yes
checking for lchown... yes
checking for mempcpy... yes
checking for memrchr... yes
checking whether mkdir handles trailing slash... yes
checking whether mkdir handles trailing dot... yes
checking whether open recognizes a trailing slash... yes
checking for fchmodat... (cached) yes
checking for fstatat... (cached) yes
checking for mkdirat... (cached) yes
checking for openat... (cached) yes
checking for unlinkat... (cached) yes
checking for fchownat... (cached) yes
checking whether fchownat works with AT_SYMLINK_NOFOLLOW... (cached) yes
checking whether rmdir works... yes
checking for stdint.h... (cached) yes
checking for SIZE_MAX... yes
checking for ssize_t... (cached) yes
checking whether stat handles trailing slashes on directories... yes
checking whether stat handles trailing slashes on files... yes
checking for va_copy... yes
checking whether NULL can be used in arbitrary expressions... yes
checking whether stdint.h conforms to C99... (cached) yes
checking whether dprintf is declared without a macro... yes
checking whether fpurge is declared without a macro... no
checking whether fseeko is declared without a macro... yes
checking whether ftello is declared without a macro... yes
checking whether getdelim is declared without a macro... yes
checking whether getline is declared without a macro... yes
checking whether popen is declared without a macro... yes
checking whether renameat is declared without a macro... yes
checking whether snprintf is declared without a macro... yes
checking whether tmpfile is declared without a macro... yes
checking whether vdprintf is declared without a macro... yes
checking whether vsnprintf is declared without a macro... yes
checking for random.h... no
checking for struct random_data... yes
checking whether _Exit is declared without a macro... yes
checking whether atoll is declared without a macro... yes
checking whether canonicalize_file_name is declared without a macro... yes
checking whether getloadavg is declared without a macro... yes
checking whether getsubopt is declared without a macro... yes
checking whether grantpt is declared without a macro... yes
checking whether mkdtemp is declared without a macro... yes
checking whether mkostemp is declared without a macro... yes
checking whether mkostemps is declared without a macro... yes
checking whether mkstemp is declared without a macro... yes
checking whether mkstemps is declared without a macro... yes
checking whether ptsname is declared without a macro... yes
checking whether random_r is declared without a macro... yes
checking whether initstat_r is declared without a macro... no
checking whether srandom_r is declared without a macro... yes
checking whether setstate_r is declared without a macro... yes
checking whether realpath is declared without a macro... yes
checking whether rpmatch is declared without a macro... yes
checking whether setenv is declared without a macro... yes
checking whether strtod is declared without a macro... yes
checking whether strtoll is declared without a macro... yes
checking whether strtoull is declared without a macro... yes
checking whether unlockpt is declared without a macro... yes
checking whether unsetenv is declared without a macro... yes
checking for nlink_t... yes
checking whether fchmodat is declared without a macro... yes
checking whether fstatat is declared without a macro... yes
checking whether futimens is declared without a macro... yes
checking whether lchmod is declared without a macro... yes
checking whether lstat is declared without a macro... yes
checking whether mkdirat is declared without a macro... yes
checking whether mkfifo is declared without a macro... yes
checking whether mkfifoat is declared without a macro... yes
checking whether mknod is declared without a macro... yes
checking whether mknodat is declared without a macro... yes
checking whether stat is declared without a macro... yes
checking whether utimensat is declared without a macro... yes
checking whether waitpid is declared without a macro... yes
checking whether chown is declared without a macro... yes
checking whether dup2 is declared without a macro... yes
checking whether dup3 is declared without a macro... yes
checking whether environ is declared without a macro... yes
checking whether euidaccess is declared without a macro... yes
checking whether faccessat is declared without a macro... yes
checking whether fchdir is declared without a macro... yes
checking whether fchownat is declared without a macro... yes
checking whether fsync is declared without a macro... yes
checking whether ftruncate is declared without a macro... yes
checking whether getcwd is declared without a macro... yes
checking whether getdomainname is declared without a macro... yes
checking whether getdtablesize is declared without a macro... yes
checking whether getgroups is declared without a macro... yes
checking whether gethostname is declared without a macro... yes
checking whether getlogin is declared without a macro... yes
checking whether getlogin_r is declared without a macro... yes
checking whether getpagesize is declared without a macro... yes
checking whether getusershell is declared without a macro... yes
checking whether setusershell is declared without a macro... yes
checking whether endusershell is declared without a macro... yes
checking whether lchown is declared without a macro... yes
checking whether link is declared without a macro... yes
checking whether linkat is declared without a macro... yes
checking whether lseek is declared without a macro... yes
checking whether pipe2 is declared without a macro... yes
checking whether pread is declared without a macro... yes
checking whether pwrite is declared without a macro... yes
checking whether readlink is declared without a macro... yes
checking whether readlinkat is declared without a macro... yes
checking whether rmdir is declared without a macro... yes
checking whether sleep is declared without a macro... yes
checking whether symlink is declared without a macro... yes
checking whether symlinkat is declared without a macro... yes
checking whether ttyname_r is declared without a macro... yes
checking whether unlink is declared without a macro... yes
checking whether unlinkat is declared without a macro... yes
checking whether usleep is declared without a macro... yes
checking whether unlink honors trailing slashes... (cached) yes
checking whether unlink of a parent directory fails is it should... (cached) guessing yes
checking for ptrdiff_t... yes
checking for vasprintf... yes
checking whether btowc is declared without a macro... yes
checking whether wctob is declared without a macro... yes
checking whether mbsinit is declared without a macro... yes
checking whether mbrtowc is declared without a macro... yes
checking whether mbrlen is declared without a macro... yes
checking whether mbsrtowcs is declared without a macro... yes
checking whether mbsnrtowcs is declared without a macro... yes
checking whether wcrtomb is declared without a macro... yes
checking whether wcsrtombs is declared without a macro... yes
checking whether wcsnrtombs is declared without a macro... yes
checking whether wcwidth is declared without a macro... yes
checking for stdint.h... (cached) yes
checking for ocamlc... ocamlc
OCaml version is 3.12.0
OCaml library path is /usr/lib/ocaml
checking for ocamlopt... ocamlopt
checking for ocamlc.opt... ocamlc.opt
checking for ocamlopt.opt... ocamlopt.opt
checking for ocaml... ocaml
checking for ocamldep... ocamldep
checking for ocamlmktop... ocamlmktop
checking for ocamlmklib... ocamlmklib
checking for ocamldoc... ocamldoc
checking for ocamlbuild... ocamlbuild
checking for ocamlfind... ocamlfind
checking for perldoc... perldoc
checking for yum... no
checking for rpm... no
checking for yumdownloader... no
checking for aptitude... aptitude
checking for dpkg... dpkg
checking for pacman... no
checking for insmod.static... /sbin/insmod.static
checking for mke2fs... /sbin/mke2fs
checking for error_message in -lcom_err... yes
checking for ext2fs_file_open2 in -lext2fs... yes
checking ext2fs/ext2fs.h usability... yes
checking ext2fs/ext2fs.h presence... yes
checking for ext2fs/ext2fs.h... yes
configure: creating ./config.status
config.status: creating config.ml
config.status: creating debian/changelog
config.status: creating Makefile
config.status: creating lib/Makefile
config.status: creating helper/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
+ make
rm -f .depend .depend-t
ocamlfind ocamldep config.ml febootstrap_utils.mli febootstrap_utils.ml febootstrap_cmdline.mli febootstrap_cmdline.ml febootstrap_package_handlers.mli febootstrap_package_handlers.ml febootstrap_yum_rpm.ml febootstrap_debian.ml febootstrap_pacman.ml febootstrap.ml > .depend-t
mv .depend-t .depend
cd . && automake --foreign --add-missing --foreign Makefile
cd . && /bin/sh ./config.status Makefile
config.status: creating Makefile
make all-recursive
make[1]: Entering directory `/home/rjones/d/febootstrap'
Making all in lib
make[2]: Entering directory `/home/rjones/d/febootstrap/lib'
make all-recursive
make[3]: Entering directory `/home/rjones/d/febootstrap/lib'
make[4]: Entering directory `/home/rjones/d/febootstrap/lib'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/home/rjones/d/febootstrap/lib'
make[3]: Leaving directory `/home/rjones/d/febootstrap/lib'
make[2]: Leaving directory `/home/rjones/d/febootstrap/lib'
Making all in helper
make[2]: Entering directory `/home/rjones/d/febootstrap/helper'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/rjones/d/febootstrap/helper'
make[2]: Entering directory `/home/rjones/d/febootstrap'
ocamlfind ocamlopt -warn-error CDEFLMPSUVXYZ -package unix,str -c config.ml -o config.cmx
ocamlfind ocamlopt -warn-error CDEFLMPSUVXYZ -package unix,str -c febootstrap_cmdline.ml -o febootstrap_cmdline.cmx
ocamlfind ocamlopt -warn-error CDEFLMPSUVXYZ -package unix,str -c febootstrap_package_handlers.ml -o febootstrap_package_handlers.cmx
ocamlfind ocamlopt -warn-error CDEFLMPSUVXYZ -package unix,str -c febootstrap_yum_rpm.ml -o febootstrap_yum_rpm.cmx
ocamlfind ocamlopt -warn-error CDEFLMPSUVXYZ -package unix,str -c febootstrap_debian.ml -o febootstrap_debian.cmx
ocamlfind ocamlopt -warn-error CDEFLMPSUVXYZ -package unix,str -c febootstrap_pacman.ml -o febootstrap_pacman.cmx
ocamlfind ocamlopt -warn-error CDEFLMPSUVXYZ -package unix,str -c febootstrap.ml -o febootstrap.cmx
ocamlfind opt -warn-error CDEFLMPSUVXYZ -package unix,str -linkpkg \
config.cmx febootstrap_utils.cmx febootstrap_cmdline.cmx febootstrap_package_handlers.cmx febootstrap_yum_rpm.cmx febootstrap_debian.cmx febootstrap_pacman.cmx febootstrap.cmx -o febootstrap
make[2]: Leaving directory `/home/rjones/d/febootstrap'
make[1]: Leaving directory `/home/rjones/d/febootstrap'
+ make check
Making check in lib
make[1]: Entering directory `/home/rjones/d/febootstrap/lib'
make check-recursive
make[2]: Entering directory `/home/rjones/d/febootstrap/lib'
make[3]: Entering directory `/home/rjones/d/febootstrap/lib'
make[3]: Nothing to be done for `check-am'.
make[3]: Leaving directory `/home/rjones/d/febootstrap/lib'
make[2]: Leaving directory `/home/rjones/d/febootstrap/lib'
make[1]: Leaving directory `/home/rjones/d/febootstrap/lib'
Making check in helper
make[1]: Entering directory `/home/rjones/d/febootstrap/helper'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/home/rjones/d/febootstrap/helper'
make[1]: Entering directory `/home/rjones/d/febootstrap'
make[1]: Leaving directory `/home/rjones/d/febootstrap'
+ ok
+ mail -s 'builder-debian febootstrap success 6ab9465001dfaa52edc5992ee71f2e9aecc2085d' libguestfs(a)redhat.com
13 years, 7 months
[PATCH 1/3] hivex: Remove python bytecode on "make clean"
by Hilko Bengen
---
python/Makefile.am | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/python/Makefile.am b/python/Makefile.am
index bc9ce7c..8599863 100644
--- a/python/Makefile.am
+++ b/python/Makefile.am
@@ -42,4 +42,6 @@ TESTS_ENVIRONMENT = \
TESTS = run-python-tests
+CLEANFILES = hivex.pyc
+
endif
--
1.7.5.1
13 years, 7 months
Strange libtool problem
by Richard W.M. Jones
I'm not sure if this is related to me updating to gcc 4.6.0 or not,
but in the gnulib/lib directory I get an error which comes down to the
following libtool command running:
$ ../../libtool --tag=CC --mode=compile gcc -std=gnu99 -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -g -O2 -MT c-ctype.lo -MD -MP -MF .deps/c-ctype.Tpo -c -o c-ctype.lo c-ctype.c
../../libtool: line 2075: c-ctype.c: command not found
libtool: compile: gcc -std=gnu99 -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -g -O2 -MT c-ctype.lo -MD -MP -MF .deps/c-ctype.Tpo -c "" -fPIC -DPIC -o .libs/c-ctype.o
gcc: error: : No such file or directory
gcc: fatal error: no input files
compilation terminated.
Note how the -c option is converted to -c "". Also the error
"c-ctype.c: command not found" which comes from a function very deep
in libtool which is called from all over the place.
I've tried recreating libtool, but to no effect.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines. Supports shell scripting,
bindings from many languages. http://libguestfs.org
13 years, 7 months
Re: [Libguestfs] Guestfish errors (Running in VirtualBox)
by Richard W.M. Jones
[Please keep messages on the list]
On Thu, Apr 07, 2011 at 09:28:39AM -0700, Chris Willmore wrote:
> You were correct that I used the wrong insmod.static. I downloaded the 32bit and rebuilt.
> liguestfs-test-tool is still failing, albeit for a different reason.
>
> I'm running Ubuntu 10.10, Kernel 2.6.36
>
> Following my message is the new output.
>
> Many thanks for your help.
>
> -Chris
>
> new guestfs handle 0x83f8958
> ===== Test starts here =====
> LIBGUESTFS_DEBUG=1
> library version: 1.8.4
> guestfs_get_append: (null)
> guestfs_get_autosync: 1
> guestfs_get_memsize: 500
> guestfs_get_path: /usr/local/lib/guestfs
> guestfs_get_qemu: /usr/bin/kvm
> guestfs_get_verbose: 1
> Launching appliance, timeout set to 120 seconds.
> [00000ms] febootstrap-supermin-helper --verbose -f checksum '/usr/local/lib/guestfs/supermin.d' i686
> supermin helper [00000ms] whitelist = (not specified), host_cpu = i686, kernel = (null), initrd = (null), appliance = (null)
> supermin helper [00001ms] inputs[0] = /usr/local/lib/guestfs/supermin.d
> checking modpath /lib/modules/2.6.32-24-generic is a directory
> picked vmlinuz-2.6.32-24-generic because modpath /lib/modules/2.6.32-24-generic exists
> checking modpath /lib/modules/2.6.36-020636-generic is a directory
> picked vmlinuz-2.6.36-020636-generic because modpath /lib/modules/2.6.36-020636-generic exists
> supermin helper [00002ms] finished creating kernel
> supermin helper [00004ms] visiting /usr/local/lib/guestfs/supermin.d
> supermin helper [00005ms] visiting /usr/local/lib/guestfs/supermin.d/base.img
> supermin helper [00005ms] visiting /usr/local/lib/guestfs/supermin.d/daemon.img
> supermin helper [00005ms] visiting /usr/local/lib/guestfs/supermin.d/hostfiles
> supermin helper [00093ms] visiting /usr/local/lib/guestfs/supermin.d/init.img
> supermin helper [00312ms] finished creating appliance
> [00340ms] begin testing qemu features
> [00474ms] finished testing qemu features
> /dev/kvm: No such file or directory
> accept_from_daemon: 0x83f8958 g->state = 1
> [00486ms] /usr/bin/kvm \
> -drive file=/tmp/libguestfs-test-tool-sda-jlHPvW,cache=off,format=raw,if=virtio \
> -drive file=/tmp/libguestfs-test-tool-iso-vfywgp,snapshot=on,format=raw,if=virtio \
> -nodefconfig \
> -nodefaults \
> -nographic \
> -m 500 \
> -no-reboot \
> -no-hpet \
> -device virtio-serial \
> -serial stdio \
> -chardev socket,path=/tmp/libguestfsRmtgLt/guestfsd.sock,id=channel0 \
> -device virtserialport,chardev=channel0,name=org.libguestfs.channel.0 \
> -kernel /tmp/.guestfs-1001/kernel.3907 \
> -initrd /tmp/.guestfs-1001/initrd.3907 \
> -append 'panic=1 console=ttyS0 udevtimeout=300 noapic acpi=off printk.time=1 cgroup_disable=memory selinux=0 guestfs_verbose=1 TERM=xterm ' \
> -drive file=/tmp/.guestfs-1001/root.3907,snapshot=on,if=virtio,cache=unsafe
> recv_from_daemon: 0x83f8958 g->state = 1, size_rtn = 0xbf81eabc, buf_rtn = 0xbf81eab8
> open /dev/kvm: No such file or directory
> Could not initialize KVM, will disable KVM support
> [ 0.000000] Initializing cgroup subsys cpuset
> [ 0.000000] Initializing cgroup subsys cpu
> [ 0.000000] Linux version 2.6.36-020636-generic (root@zinc) (gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7)) #201010210905 SMP Thu Oct 21 10:17:53 UTC 2010
> [ 0.000000] BIOS-provided physical RAM map:
> [ 0.000000] BIOS-e820: 0000000000000000 - 000000000009f400 (usable)
> [ 0.000000] BIOS-e820: 000000000009f400 - 00000000000a0000 (reserved)
> [ 0.000000] BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
> [ 0.000000] BIOS-e820: 0000000000100000 - 000000001f3fd000 (usable)
> [ 0.000000] BIOS-e820: 000000001f3fd000 - 000000001f400000 (reserved)
> [ 0.000000] BIOS-e820: 00000000fffc0000 - 0000000100000000 (reserved)
> [ 0.000000] Notice: NX (Execute Disable) protection cannot be enabled: non-PAE kernel!
> [ 0.000000] DMI 2.4 present.
> [ 0.000000] last_pfn = 0x1f3fd max_arch_pfn = 0x100000
> [ 0.000000] x86 PAT enabled: cpu 0, old 0x0, new 0x7010600070106
> [ 0.000000] Scanning 1 areas for low memory corruption
> [ 0.000000] modified physical RAM map:
> [ 0.000000] modified: 0000000000000000 - 0000000000001000 (reserved)
> [ 0.000000] modified: 0000000000001000 - 0000000000002000 (usable)
> [ 0.000000] modified: 0000000000002000 - 0000000000010000 (reserved)
> [ 0.000000] modified: 0000000000010000 - 000000000009f400 (usable)
> [ 0.000000] modified: 000000000009f400 - 00000000000a0000 (reserved)
> [ 0.000000] modified: 00000000000f0000 - 0000000000100000 (reserved)
> [ 0.000000] modified: 0000000000100000 - 000000001f3fd000 (usable)
> [ 0.000000] modified: 000000001f3fd000 - 000000001f400000 (reserved)
> [ 0.000000] modified: 00000000fffc0000 - 0000000100000000 (reserved)
> [ 0.000000] found SMP MP-table at [c00f8990] f8990
> [ 0.000000] init_memory_mapping: 0000000000000000-000000001f3fd000
> [ 0.000000] RAMDISK: 1f27f000 - 1f3f0000
> [ 0.000000] 0MB HIGHMEM available.
> [ 0.000000] 499MB LOWMEM available.
> [ 0.000000] mapped low ram: 0 - 1f3fd000
> [ 0.000000] low ram: 0 - 1f3fd000
> [ 0.000000] Zone PFN ranges:
> [ 0.000000] DMA 0x00000001 -> 0x00001000
> [ 0.000000] Normal 0x00001000 -> 0x0001f3fd
> [ 0.000000] HighMem empty
> [ 0.000000] Movable zone start PFN for each node
> [ 0.000000] early_node_map[3] active PFN ranges
> [ 0.000000] 0: 0x00000001 -> 0x00000002
> [ 0.000000] 0: 0x00000010 -> 0x0000009f
> [ 0.000000] 0: 0x00000100 -> 0x0001f3fd
> [ 0.000000] Using APIC driver default
> [ 0.000000] SFI: Simple Firmware Interface v0.81 http://simplefirmware.org
> [ 0.000000] Intel MultiProcessor Specification v1.4
> [ 0.000000] Virtual Wire compatibility mode.
> [ 0.000000] MPTABLE: OEM ID: BOCHSCPU
> [ 0.000000] MPTABLE: Product ID: 0.1
> [ 0.000000] MPTABLE: APIC at: 0xFEE00000
> [ 0.000000] Processor #0 (Bootup-CPU)
> [ 0.000000] I/O APIC #1 Version 17 at 0xFEC00000.
> [ 0.000000] IOAPIC[0]: apic_id 1, version 17, address 0xfec00000, GSI 0-23
> [ 0.000000] Processors: 1
> [ 0.000000] SMP: Allowing 1 CPUs, 0 hotplug CPUs
> [ 0.000000] PM: Registered nosave memory: 0000000000002000 - 0000000000010000
> [ 0.000000] PM: Registered nosave memory: 000000000009f000 - 00000000000a0000
> [ 0.000000] PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
> [ 0.000000] PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
> [ 0.000000] Allocating PCI resources starting at 1f400000 (gap: 1f400000:e0bc0000)
> [ 0.000000] Booting paravirtualized kernel on bare hardware
> [ 0.000000] setup_percpu: NR_CPUS:8 nr_cpumask_bits:8 nr_cpu_ids:1 nr_node_ids:1
> [ 0.000000] PERCPU: Embedded 14 pages/cpu @c1400000 s32896 r0 d24448 u4194304
> [ 0.000000] pcpu-alloc: s32896 r0 d24448 u4194304 alloc=1*4194304
> [ 0.000000] pcpu-alloc: [0] 0
> [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 126885
> [ 0.000000] Kernel command line: panic=1 console=ttyS0 udevtimeout=300 noapic acpi=off printk.time=1 cgroup_disable=memory selinux=0 guestfs_verbose=1 TERM=xterm
> [ 0.000000] Disabling memory control group subsystem
> [ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
> [ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
> [ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
> [ 0.000000] Enabling fast FPU save and restore... done.
> [ 0.000000] Enabling unmasked SIMD FPU exception support... done.
> [ 0.000000] Initializing CPU#0
> [ 0.000000] Subtract (40 early reservations)
> [ 0.000000] #1 [0000001000 - 0000002000] EX TRAMPOLINE
> [ 0.000000] #2 [0000100000 - 00009d5824] TEXT DATA BSS
> [ 0.000000] #3 [001f27f000 - 001f3f0000] RAMDISK
> [ 0.000000] #4 [00009d6000 - 00009d9049] BRK
> [ 0.000000] #5 [000009f400 - 00000f8990] BIOS reserved
> [ 0.000000] #6 [00000f8990 - 00000f89a0] MP-table mpf
> [ 0.000000] #7 [00000f8a90 - 0000100000] BIOS reserved
> [ 0.000000] #8 [00000f89a0 - 00000f8a90] MP-table mpc
> [ 0.000000] #9 [0000010000 - 0000011000] TRAMPOLINE
> [ 0.000000] #10 [0000011000 - 0000015000] ACPI WAKEUP
> [ 0.000000] #11 [0000015000 - 0000016000] PGTABLE
> [ 0.000000] #12 [0001000000 - 0001001000] BOOTMEM
> [ 0.000000] #13 [0001001000 - 00013e9000] BOOTMEM
> [ 0.000000] #14 [00013e9000 - 00013e9004] BOOTMEM
> [ 0.000000] #15 [00013e9040 - 00013e9100] BOOTMEM
> [ 0.000000] #16 [00013e9100 - 00013e9130] BOOTMEM
> [ 0.000000] #17 [00013e9140 - 00013ea940] BOOTMEM
> [ 0.000000] #18 [00013ea940 - 00013ea967] BOOTMEM
> [ 0.000000] #19 [00013ea980 - 00013eaa7c] BOOTMEM
> [ 0.000000] #20 [00013eaa80 - 00013eaac0] BOOTMEM
> [ 0.000000] #21 [00013eaac0 - 00013eab00] BOOTMEM
> [ 0.000000] #22 [00013eab00 - 00013eab40] BOOTMEM
> [ 0.000000] #23 [00013eab40 - 00013eab80] BOOTMEM
> [ 0.000000] #24 [00013eab80 - 00013eabc0] BOOTMEM
> [ 0.000000] #25 [00013eabc0 - 00013eac00] BOOTMEM
> [ 0.000000] #26 [00013eac00 - 00013eac10] BOOTMEM
> [ 0.000000] #27 [00013eac40 - 00013eac50] BOOTMEM
> [ 0.000000] #28 [00013eac80 - 00013ead02] BOOTMEM
> [ 0.000000] #29 [00013ead40 - 00013eadc2] BOOTMEM
> [ 0.000000] #30 [0001400000 - 000140e000] BOOTMEM
> [ 0.000000] #31 [00013ece00 - 00013ece04] BOOTMEM
> [ 0.000000] #32 [00013ece40 - 00013ece44] BOOTMEM
> [ 0.000000] #33 [00013ece80 - 00013ece84] BOOTMEM
> [ 0.000000] #34 [00013ecec0 - 00013ecec4] BOOTMEM
> [ 0.000000] #35 [00013ecf00 - 00013ecfb0] BOOTMEM
> [ 0.000000] #36 [00013ecfc0 - 00013ed068] BOOTMEM
> [ 0.000000] #37 [00013eae00 - 00013ece00] BOOTMEM
> [ 0.000000] #38 [000140e000 - 000144e000] BOOTMEM
> [ 0.000000] #39 [000144e000 - 000146e000] BOOTMEM
> [ 0.000000] Initializing HighMem for node 0 (00000000:00000000)
> [ 0.000000] Memory: 496508k/511988k available (5000k kernel code, 15032k reserved, 2406k data, 740k init, 0k highmem)
> [ 0.000000] virtual kernel memory layout:
> [ 0.000000] fixmap : 0xfff16000 - 0xfffff000 ( 932 kB)
> [ 0.000000] pkmap : 0xff800000 - 0xffc00000 (4096 kB)
> [ 0.000000] vmalloc : 0xdfbfd000 - 0xff7fe000 ( 508 MB)
> [ 0.000000] lowmem : 0xc0000000 - 0xdf3fd000 ( 499 MB)
> [ 0.000000] .init : 0xc083c000 - 0xc08f5000 ( 740 kB)
> [ 0.000000] .data : 0xc05e2039 - 0xc083bb28 (2406 kB)
> [ 0.000000] .text : 0xc0100000 - 0xc05e2039 (5000 kB)
> [ 0.000000] Checking if this processor honours the WP bit even in supervisor mode...Ok.
> [ 0.000000] SLUB: Genslabs=13, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
> [ 0.000000] Hierarchical RCU implementation.
> [ 0.000000] RCU dyntick-idle grace-period acceleration is enabled.
> [ 0.000000] RCU-based detection of stalled CPUs is disabled.
> [ 0.000000] Verbose stalled-CPUs detection is disabled.
> [ 0.000000] NR_IRQS:2304 nr_irqs:256
> [ 0.000000] Console: colour dummy device 80x25
> [ 0.000000] console [ttyS0] enabled
> [ 0.000000] Fast TSC calibration failed
> [ 0.000000] TSC: Unable to calibrate against PIT
> [ 0.000000] TSC: No reference (HPET/PMTIMER) available
> [ 0.000000] Marking TSC unstable due to could not calculate TSC khz
> [ 0.036000] Calibrating delay loop... 189.44 BogoMIPS (lpj=378880)
> [ 0.116000] pid_max: default: 32768 minimum: 301
> [ 0.120000] Security Framework initialized
> [ 0.128000] AppArmor: AppArmor initialized
> [ 0.136000] Mount-cache hash table entries: 512
> [ 0.152000] Initializing cgroup subsys ns
> [ 0.156000] Initializing cgroup subsys cpuacct
> [ 0.160000] Initializing cgroup subsys memory
> [ 0.164000] Initializing cgroup subsys devices
> [ 0.168000] Initializing cgroup subsys freezer
> [ 0.168000] Initializing cgroup subsys net_cls
> [ 0.172000] mce: CPU supports 10 MCE banks
> [ 0.180000] Performance Events: AMD PMU driver.
> [ 0.184000] ... version: 0
> [ 0.188000] ... bit width: 48
> [ 0.192000] ... generic registers: 4
> [ 0.192000] ... value mask: 0000ffffffffffff
> [ 0.196000] ... max period: 00007fffffffffff
> [ 0.200000] ... fixed-purpose events: 0
> [ 0.200000] ... event mask: 000000000000000f
> [ 0.220000] SMP alternatives: switching to UP code
> [ 0.376000] Freeing SMP alternatives: 20k freed
> [ 0.380000] ftrace: converting mcount calls to 0f 1f 44 00 00
> [ 0.384000] ftrace: allocating 26011 entries in 51 pages
> [ 0.420000] Enabling APIC mode: Flat. Using 1 I/O APICs
> [ 0.428000] ------------[ cut here ]------------
> [ 0.428000] WARNING: at /home/kernel-ppa/COD/linux/arch/x86/kernel/apic/apic.c:1238 setup_local_APIC+0x3a5/0x3e0()
> [ 0.432000] Hardware name: Bochs
> [ 0.432000] Modules linked in:
> [ 0.432000] Pid: 1, comm: swapper Not tainted 2.6.36-020636-generic #201010210905
> [ 0.436000] Call Trace:
> [ 0.436000] [<c05d5ab5>] ? setup_local_APIC+0x3a5/0x3e0
> [ 0.440000] [<c014e4e1>] warn_slowpath_common+0x81/0xa0
> [ 0.440000] [<c05d5ab5>] ? setup_local_APIC+0x3a5/0x3e0
> [ 0.444000] [<c014e522>] warn_slowpath_null+0x22/0x30
> [ 0.444000] [<c05d5ab5>] setup_local_APIC+0x3a5/0x3e0
> [ 0.448000] [<c084abb3>] native_smp_prepare_cpus+0x123/0x210
> [ 0.448000] [<c0141f9e>] ? set_cpus_allowed_ptr+0x8e/0x120
> [ 0.452000] [<c0102c46>] ? ret_from_fork+0x6/0x1c
> [ 0.452000] [<c083cbb3>] kernel_init+0x63/0x110
> [ 0.456000] [<c083cb50>] ? kernel_init+0x0/0x110
> [ 0.456000] [<c010327e>] kernel_thread_helper+0x6/0x10
> [ 0.460000] ---[ end trace a7919e7f17c0a725 ]---
> [ 0.464000] CPU0: AMD QEMU Virtual CPU version 0.14.0 stepping 03
> [ 0.604000] APIC timer disabled due to verification failure
> [ 0.628000] Brought up 1 CPUs
> [ 0.632000] Total of 1 processors activated (189.44 BogoMIPS).
> [ 0.648000] devtmpfs: initialized
> [ 0.676000] regulator: core version 0.5
> [ 0.676000] Time: 16:16:07 Date: 04/07/11
> [ 0.680000] NET: Registered protocol family 16
> [ 0.692000] EISA bus registered
> [ 0.708000] PCI: PCI BIOS revision 2.10 entry at 0xffe77, last bus=0
> [ 0.712000] PCI: Using configuration type 1 for base access
> [ 0.744000] bio: create slab <bio-0> at 0
> [ 0.752000] ACPI: Interpreter disabled.
> [ 0.764000] vgaarb: loaded
> [ 0.768000] SCSI subsystem initialized
> [ 0.776000] usbcore: registered new interface driver usbfs
> [ 0.780000] usbcore: registered new interface driver hub
> [ 0.784000] usbcore: registered new device driver usb
> [ 0.792000] PCI: Probing PCI hardware
> [ 0.800000] pci 0000:00:01.3: quirk: [io 0xb000-0xb03f] claimed by PIIX4 ACPI
> [ 0.804000] pci 0000:00:01.3: quirk: [io 0xb100-0xb10f] claimed by PIIX4 SMB
> [ 0.820000] pci 0000:00:01.0: PIIX/ICH IRQ router [8086:7000]
> [ 0.836000] NetLabel: Initializing
> [ 0.840000] NetLabel: domain hash size = 128
> [ 0.840000] NetLabel: protocols = UNLABELED CIPSOv4
> [ 0.844000] NetLabel: unlabeled traffic allowed by default
> [ 0.848000] Switching to clocksource pit
> [ 0.990649] AppArmor: AppArmor Filesystem Enabled
> [ 0.993292] pnp: PnP ACPI: disabled
> [ 0.993292] PnPBIOS: Scanning system for PnP BIOS support...
> [ 0.998110] PnPBIOS: Found PnP BIOS installation structure at 0xc00f7e40
> [ 1.002220] PnPBIOS: PnP BIOS version 1.0, entry 0xf0000:0xdf15, dseg 0xf0000
> [ 1.005063] PnPBIOS: dev_node_info: function not supported on this system
> [ 1.009470] PnPBIOS: Unable to get node info. Aborting.
> [ 1.036554] NET: Registered protocol family 2
> [ 1.042298] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
> [ 1.044495] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
> [ 1.049938] TCP bind hash table entries: 16384 (order: 5, 131072 bytes)
> [ 1.054419] TCP: Hash tables configured (established 16384 bind 16384)
> [ 1.058710] TCP reno registered
> [ 1.060223] UDP hash table entries: 256 (order: 1, 8192 bytes)
> [ 1.060223] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
> [ 1.065855] NET: Registered protocol family 1
> [ 1.069301] pci 0000:00:00.0: Limiting direct PCI/PCI transfers
> [ 1.072630] pci 0000:00:01.0: PIIX3: Enabling Passive Release
> [ 1.072630] pci 0000:00:01.0: Activating ISA DMA hang workarounds
> [ 1.079986] Trying to unpack rootfs image as initramfs...
> [ 1.116031] Freeing initrd memory: 1476k freed
> [ 1.133397] platform rtc_cmos: registered platform RTC device (no PNP device found)
> [ 1.142109] cpufreq-nforce2: No nForce2 chipset.
> [ 1.146561] Scanning for low memory corruption every 60 seconds
> [ 1.156734] audit: initializing netlink socket (disabled)
> [ 1.162547] type=2000 audit(1302192966.160:1): initialized
> [ 1.252406] HugeTLB registered 4 MB page size, pre-allocated 0 pages
> [ 1.293490] VFS: Disk quotas dquot_6.5.2
> [ 1.296587] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
> [ 1.317600] fuse init (API version 7.15)
> [ 1.321113] msgmni has been set to 972
> [ 1.336571] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
> [ 1.336571] io scheduler noop registered
> [ 1.342506] io scheduler deadline registered
> [ 1.344975] io scheduler cfq registered (default)
> [ 1.350014] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
> [ 1.353752] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
> [ 1.362976] isapnp: Scanning for PnP cards...
> [ 1.667788] isapnp: No Plug & Play device found
> [ 1.681862] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
> [ 1.691968] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
> [ 1.724339] brd: module loaded
> [ 1.743754] loop: module loaded
> [ 1.761855] scsi0 : ata_piix
> [ 1.764239] scsi1 : ata_piix
> [ 1.768823] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
> [ 1.772970] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
> [ 1.792319] Fixed MDIO Bus: probed
> [ 1.797813] PPP generic driver version 2.4.2
> [ 1.800967] tun: Universal TUN/TAP device driver, 1.6
> [ 1.803961] tun: (C) 1999-2004 Max Krasnyansky <maxk(a)qualcomm.com>
> [ 1.808018] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
> [ 1.812043] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
> [ 1.812043] uhci_hcd: USB Universal Host Controller Interface driver
> [ 1.817674] PNP: No PS/2 controller found. Probing ports directly.
> [ 1.824656] serio: i8042 KBD port at 0x60,0x64 irq 1
> [ 1.831568] serio: i8042 AUX port at 0x60,0x64 irq 12
> [ 1.844840] mice: PS/2 mouse device common for all mice
> [ 1.855215] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0
> [ 1.856031] rtc0: alarms up to one day, 114 bytes nvram
> [ 1.860054] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input0
> [ 1.865561] device-mapper: uevent: version 1.0.3
> [ 1.875099] device-mapper: ioctl: 4.18.0-ioctl (2010-06-29) initialised: dm-devel(a)redhat.com
> [ 1.879989] device-mapper: multipath: version 1.1.1 loaded
> [ 1.879989] device-mapper: multipath round-robin: version 1.0.0 loaded
> [ 1.886656] EISA: Probing bus 0 at eisa.0
> [ 1.888147] EISA: Detected 0 cards.
> [ 1.894867] cpuidle: using governor ladder
> [ 1.899180] cpuidle: using governor menu
> [ 1.901110] TCP cubic registered
> [ 1.904569] NET: Registered protocol family 10
> [ 1.912671] lo: Disabled Privacy Extensions
> [ 1.921463] NET: Registered protocol family 17
> [ 1.921463] Registering the dns_resolver key type
> [ 1.926794] powernow-k8: Processor cpuid 623 not supported
> [ 1.931206] Using IPI No-Shortcut mode
> [ 1.933182] registered taskstats version 1
> [ 1.937290] Magic number: 7:927:286
> [ 1.941274] ppp ppp: hash matches
> [ 1.941274] rtc_cmos rtc_cmos: setting system clock to 2011-04-07 16:16:08 UTC (1302192968)
> [ 1.945936] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found
> [ 1.948365] EDD information not available.
> [ 1.955560] Freeing unused kernel memory: 740k freed
> [ 1.988242] Write protecting the kernel text: 5004k
> [ 1.993050] Write protecting the kernel read-only data: 2048k
> /proc/uptime: No such file or directory
> febootstrap: ext2 mini initrd starting up
> febootstrap: mounting /sys
> febootstrap: insmod crc-ccitt.ko
> febootstrap: insmod crc-itu-t.ko
> febootstrap: insmod crc32c-intel.ko
> insmod: error inserting 'crc32c-intel.ko': -1 No such device
> insmod: wait: File exists
> febootstrap: insmod crc32c.ko
> febootstrap: insmod crc7.ko
> febootstrap: insmod libcrc32c.ko
> febootstrap: insmod scsi_transport_spi.ko
> febootstrap: insmod virtio.ko
> febootstrap: insmod virtio_ring.ko
> febootstrap: insmod sym53c8xx.ko
> febootstrap: insmod virtio_pci.ko
> [ 2.467270] virtio-pci 0000:00:02.0: found PCI INT A -> IRQ 10
> [ 2.474949] virtio-pci 0000:00:03.0: found PCI INT A -> IRQ 11
> [ 2.477428] virtio-pci 0000:00:04.0: found PCI INT A -> IRQ 11
> [ 2.480629] virtio-pci 0000:00:05.0: found PCI INT A -> IRQ 10
> febootstrap: insmod virtio-rng.ko
> febootstrap: insmod virtio_net.ko
> febootstrap: insmod virtio_blk.ko
> [ 2.766849] vda: unknown partition table
> [ 2.792232] vdb: unknown partition table
> [ 2.803233] vdc: unknown partition table
> febootstrap: insmod virtio_console.ko
> febootstrap: insmod virtio_balloon.ko
> febootstrap: picked /sys/block/vdc/dev as root device
> febootstrap: creating /dev/root as block special 251:32
> febootstrap: mounting new root on /root
> febootstrap: chroot
> /proc/uptime: No such file or directory
> execl: /init: No such file or directory
It all looks perfect up to this last line.
I've seen this error before somewhere, but for the life of me I can't
exactly remember what caused it.
Is this a standard Ubuntu kernel? Does this kernel have ext2 compiled
in directly or as a module?
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine. Supports Linux and Windows.
http://et.redhat.com/~rjones/virt-df/
13 years, 7 months
[PATCH] Don't rely on OCaml native compiler for tests
by Hilko Bengen
This should make it possible to build useful OCaml bindings on
architectures other than i386 and amd64 (Debian bug #589809).
---
ocaml/Makefile.am | 30 +++++++++++++++---------------
1 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/ocaml/Makefile.am b/ocaml/Makefile.am
index b3f5e14..b9451e3 100644
--- a/ocaml/Makefile.am
+++ b/ocaml/Makefile.am
@@ -46,7 +46,7 @@ hivex_c.o: hivex_c.c
$(CC) $(AM_CPPFLAGS) $(CFLAGS) -fPIC -Wall -c $<
TESTS_ENVIRONMENT = \
- LD_LIBRARY_PATH=$(top_builddir)/lib/.libs \
+ LD_LIBRARY_PATH=$(top_builddir)/lib/.libs:$(top_builddir)/ocaml \
$(VG)
TESTS = \
@@ -59,33 +59,33 @@ TESTS = \
t/hivex_300_fold
noinst_DATA += $(TESTS)
-t/hivex_005_load: t/hivex_005_load.cmx mlhivex.cmxa
+t/hivex_005_load: t/hivex_005_load.cmo mlhivex.cma
mkdir -p t
- $(OCAMLFIND) ocamlopt -cclib -L$(top_builddir)/lib/.libs -I . -package unix -linkpkg mlhivex.cmxa $< -o $@
+ $(OCAMLFIND) ocamlc -cclib -L$(top_builddir)/lib/.libs -I . -package unix -linkpkg mlhivex.cma $< -o $@
-t/hivex_010_open: t/hivex_010_open.cmx mlhivex.cmxa
+t/hivex_010_open: t/hivex_010_open.cmo mlhivex.cma
mkdir -p t
- $(OCAMLFIND) ocamlopt -cclib -L$(top_builddir)/lib/.libs -I . -package unix -linkpkg mlhivex.cmxa $< -o $@
+ $(OCAMLFIND) ocamlc -cclib -L$(top_builddir)/lib/.libs -I . -package unix -linkpkg mlhivex.cma $< -o $@
-t/hivex_020_root: t/hivex_020_root.cmx mlhivex.cmxa
+t/hivex_020_root: t/hivex_020_root.cmo mlhivex.cma
mkdir -p t
- $(OCAMLFIND) ocamlopt -cclib -L$(top_builddir)/lib/.libs -I . -package unix -linkpkg mlhivex.cmxa $< -o $@
+ $(OCAMLFIND) ocamlc -cclib -L$(top_builddir)/lib/.libs -I . -package unix -linkpkg mlhivex.cma $< -o $@
-t/hivex_100_errors: t/hivex_100_errors.cmx mlhivex.cmxa
+t/hivex_100_errors: t/hivex_100_errors.cmo mlhivex.cma
mkdir -p t
- $(OCAMLFIND) ocamlopt -cclib -L$(top_builddir)/lib/.libs -I . -package unix -linkpkg mlhivex.cmxa $< -o $@
+ $(OCAMLFIND) ocamlc -cclib -L$(top_builddir)/lib/.libs -I . -package unix -linkpkg mlhivex.cma $< -o $@
-t/hivex_110_gc_handle: t/hivex_110_gc_handle.cmx mlhivex.cmxa
+t/hivex_110_gc_handle: t/hivex_110_gc_handle.cmo mlhivex.cma
mkdir -p t
- $(OCAMLFIND) ocamlopt -cclib -L$(top_builddir)/lib/.libs -I . -package unix -linkpkg mlhivex.cmxa $< -o $@
+ $(OCAMLFIND) ocamlc -cclib -L$(top_builddir)/lib/.libs -I . -package unix -linkpkg mlhivex.cma $< -o $@
-t/hivex_200_write: t/hivex_200_write.cmx mlhivex.cmxa
+t/hivex_200_write: t/hivex_200_write.cmo mlhivex.cma
mkdir -p t
- $(OCAMLFIND) ocamlopt -cclib -L$(top_builddir)/lib/.libs -I . -package unix -linkpkg mlhivex.cmxa $< -o $@
+ $(OCAMLFIND) ocamlc -cclib -L$(top_builddir)/lib/.libs -I . -package unix -linkpkg mlhivex.cma $< -o $@
-t/hivex_300_fold: t/hivex_300_fold.cmx mlhivex.cmxa
+t/hivex_300_fold: t/hivex_300_fold.cmo mlhivex.cma
mkdir -p t
- $(OCAMLFIND) ocamlopt -cclib -L$(top_builddir)/lib/.libs -I . -package unix -linkpkg mlhivex.cmxa $< -o $@
+ $(OCAMLFIND) ocamlc -cclib -L$(top_builddir)/lib/.libs -I . -package unix -linkpkg mlhivex.cma $< -o $@
# Need to rebuild the tests from source if the main library has
# changed at all, otherwise we get inconsistent assumptions.
--
1.7.4.4
13 years, 7 months
[PATCH 1/3] hivex: Use OCaml bytecode compiler for caml_raise_with_args check
by bengen@hilluzination.de
From: Hilko Bengen <bengen(a)hilluzination.de>
On installations where no native OCaml compiler is available, the
test program can't be compiled and so we get this message:
,----
| checking for function caml_raise_with_args... not found
`----
This breaks building of the OCaml bindings.
,----
| gcc -std=gnu99 -I.. -I/usr/lib/ocaml -I../ocaml -I../lib -g -O2 -fPIC -Wall -c hivex_c.c
| hivex_c.c:52: error: static declaration of 'caml_raise_with_args' follows non-static declaration
| /usr/lib/ocaml/caml/fail.h:30: note: previous declaration of 'caml_raise_with_args' was here
| make[2]: *** [hivex_c.o] Error 1
`----
(Successfully tested on Debian/unstable on alpha)
---
configure.ac | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/configure.ac b/configure.ac
index 5805ddd..ef19543 100644
--- a/configure.ac
+++ b/configure.ac
@@ -192,9 +192,9 @@ if test "x$OCAMLC" != "xno"; then
echo "char $f (); char foo() { return $f (); }" > conftest.c
rm -f conftest_ml.ml
touch conftest_ml.ml
- if $OCAMLOPT -c conftest.c 2>/dev/null && \
- $OCAMLOPT -c conftest_ml.ml 2>/dev/null && \
- $OCAMLOPT conftest.o conftest_ml.cmx -o conftest 2>/dev/null ; then
+ if $OCAMLC -c conftest.c 2>/dev/null && \
+ $OCAMLC -c conftest_ml.ml 2>/dev/null && \
+ $OCAMLC conftest.o conftest_ml.cmo -o conftest 2>/dev/null ; then
AC_DEFINE([HAVE_CAML_RAISE_WITH_ARGS],[1],
[Defined if function caml_raise_with_args exists.])
AC_MSG_RESULT([found])
--
1.7.5.1
13 years, 7 months
[PATCH 1/2] hivex: Use OCaml bytecode compiler for caml_raise_with_args check
by Hilko Bengen
From: Hilko Bengen <bengen(a)debian.org>
On installations where no native OCaml compiler is available, the
test program can't be compiled and so we get this message:
,----
| checking for function caml_raise_with_args... not found
`----
This breaks building of the OCaml bindings.
,----
| gcc -std=gnu99 -I.. -I/usr/lib/ocaml -I../ocaml -I../lib -g -O2 -fPIC -Wall -c hivex_c.c
| hivex_c.c:52: error: static declaration of 'caml_raise_with_args' follows non-static declaration
| /usr/lib/ocaml/caml/fail.h:30: note: previous declaration of 'caml_raise_with_args' was here
| make[2]: *** [hivex_c.o] Error 1
`----
(Successfully tested on Debian/unstable on alpha)
---
configure.ac | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/configure.ac b/configure.ac
index 5805ddd..ef19543 100644
--- a/configure.ac
+++ b/configure.ac
@@ -192,9 +192,9 @@ if test "x$OCAMLC" != "xno"; then
echo "char $f (); char foo() { return $f (); }" > conftest.c
rm -f conftest_ml.ml
touch conftest_ml.ml
- if $OCAMLOPT -c conftest.c 2>/dev/null && \
- $OCAMLOPT -c conftest_ml.ml 2>/dev/null && \
- $OCAMLOPT conftest.o conftest_ml.cmx -o conftest 2>/dev/null ; then
+ if $OCAMLC -c conftest.c 2>/dev/null && \
+ $OCAMLC -c conftest_ml.ml 2>/dev/null && \
+ $OCAMLC conftest.o conftest_ml.cmo -o conftest 2>/dev/null ; then
AC_DEFINE([HAVE_CAML_RAISE_WITH_ARGS],[1],
[Defined if function caml_raise_with_args exists.])
AC_MSG_RESULT([found])
--
1.7.5.1
13 years, 7 months