Benjamin M. | 1 May 23:24

FSVS 1.1.12 and up: --enable-debug -> VALGRIND_MAKE_MEM_DEFINED / VALGRIND_MAKE_MEM_NOACCESS

Phil,

With version 1.1.12 and up (no problem with previous
versions) I have the following error when using

./configure --enable-debug

$ make
      Link fsvs
est_ops.o(.text+0xf85): In function `ops__allocate':
/usr/src/fsvs-1.1.12/src/est_ops.c:820: undefined reference to 
`VALGRIND_MAKE_MEM_DEFINED'
est_ops.o(.text+0xfe0):/usr/src/fsvs-1.1.12/src/est_ops.c:848: undefined 
reference to `VALGRIND_MAKE_MEM_DEFINED'
est_ops.o(.text+0x10b8):/usr/src/fsvs-1.1.12/src/est_ops.c:869: 
undefined reference to `VALGRIND_MAKE_MEM_DEFINED'
est_ops.o(.text+0x11d7): In function `ops__free_entry':
/usr/src/fsvs-1.1.12/src/est_ops.c:923: undefined reference to 
`VALGRIND_MAKE_MEM_DEFINED'
est_ops.o(.text+0x1202):/usr/src/fsvs-1.1.12/src/est_ops.c:930: 
undefined reference to `VALGRIND_MAKE_MEM_DEFINED'
est_ops.o(.text+0x1216):/usr/src/fsvs-1.1.12/src/est_ops.c:933: 
undefined reference to `VALGRIND_MAKE_MEM_NOACCESS'
est_ops.o(.text+0x1239):/usr/src/fsvs-1.1.12/src/est_ops.c:948: 
undefined reference to `VALGRIND_MAKE_MEM_NOACCESS'
est_ops.o(.text+0x1265):/usr/src/fsvs-1.1.12/src/est_ops.c:955: 
undefined reference to `VALGRIND_MAKE_MEM_NOACCESS'
est_ops.o(.text+0x12ca):/usr/src/fsvs-1.1.12/src/est_ops.c:965: 
undefined reference to `VALGRIND_MAKE_MEM_NOACCESS'
collect2: ld returned 1 exit status
(Continue reading)

Philipp Marek | 2 May 20:37

Re: FSVS 1.1.12 and up: --enable-debug -> VALGRIND_MAKE_MEM_DEFINED / VALGRIND_MAKE_MEM_NOACCESS

Hello Ben,

On Thursday 01 May 2008 Benjamin M. wrote:
> With version 1.1.12 and up (no problem with previous
> versions) I have the following error when using
>
> ./configure --enable-debug
>
> $ make
>       Link fsvs
> est_ops.o(.text+0xf85): In function `ops__allocate':
> /usr/src/fsvs-1.1.12/src/est_ops.c:820: undefined reference to
> `VALGRIND_MAKE_MEM_DEFINED'
Could you please send me your config.h?
Thank you.

--

-- 
Versioning your /etc, /home or even your whole installation?
             Try fsvs (fsvs.tigris.org)!
Benjamin M. | 2 May 20:51

Re: FSVS 1.1.12 and up: --enable-debug -> VALGRIND_MAKE_MEM_DEFINED / VALGRIND_MAKE_MEM_NOACCESS

Philipp Marek wrote, On 02/05/08 14:37:
Hello Ben, On Thursday 01 May 2008 Benjamin M. wrote:
With version 1.1.12 and up (no problem with previous versions) I have the following error when using ./configure --enable-debug $ make Link fsvs est_ops.o(.text+0xf85): In function `ops__allocate': /usr/src/fsvs-1.1.12/src/est_ops.c:820: undefined reference to `VALGRIND_MAKE_MEM_DEFINED'
Could you please send me your config.h?
From 1.1.12. with

./configure --enable-debug

Ben.


/* src/config.h.  Generated from config.h.in by configure.  */
/************************************************************************
 * Copyright (C) 2006-2007 Philipp Marek.
 *
 * This program is free software;  you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 3 as
 * published by the Free Software Foundation.
 ************************************************************************/

#ifndef __CONFIG_H__
#define __CONFIG_H__

/** \file
 * \c Autoconf results storage. */

/** \defgroup compat Compatibility and interfaces
 *
 * For a reference on how to use \c fsvs on older system, please see also 
 * \ref howto_chroot.
 * */

/** \defgroup compati Compilation-only
 * \ingroup compat
 * */

/** \defgroup autoconf Autoconf results.
 * \ingroup compati
 *
 * Here are the results of \c configure stored.
 * They get defined by the system and are used to tell \c fsvs whether
 * optional parts can be activated or not. */
/** @{ */

/** Whether the valgrind headers were found.
 * Then some initializers can specifically mark areas as initialized. */
#define HAVE_VALGRIND 1

/** If this is defined, some re-arrangements in struct-layout are made,
 * and additional bug-checking code may be included. */
#define ENABLE_DEBUG 1

/** Whether gcov test-coverage is wanted. */
/* #undef ENABLE_GCOV */

/** If set to 1, disable debug messages. */
/* #undef ENABLE_RELEASE */

/** OpenBSD has no locales support. */
#define HAVE_LOCALES 1

/** Unsigned 32bit type.
 * The value of \c AC_CV_C_UINT32_T changed between autoconf 2.59e and 2.60.
 * Since 2.60 we get \c yes instead of the type.
 * And there's no \c HAVE_UINT32_T ... 
 * I don't seem to get that to work properly.
 * So I changed configure.in to substitute \c yes to \c uint32_t. */
/* #undef HAVE_UINT32_T */
/* #if HAVE_UINT32_T
  #include <stdint.h> 
  #include <inttypes.h>
#endif
*/
#define AC_CV_C_UINT32_T uint32_t

/** Whether \c linux/types.h was found. */
#define HAVE_LINUX_TYPES_H 1
/** Whether \c linux/unistd.h was found. */
#define HAVE_LINUX_UNISTD_H 1

/** Whether \c dirfd() was found (\ref dir__get_dir_size()). */
#define HAVE_DIRFD 1
/** Whether there's an additional microsecond field in struct stat. */
#define HAVE_STRUCT_STAT_ST_MTIM 1

/** The chroot jail path given at configure time. */
/* #undef CHROOTER_JAIL */

/** Comparision function definition (for \c qsort()) */
#define HAVE_COMPARISON_FN_T 1
#ifndef HAVE_COMPARISON_FN_T
typedef int (*comparison_fn_t) (__const void *, __const void *);
#endif

#define HAVE_O_DIRECTORY 1
#ifndef HAVE_O_DIRECTORY
#define O_DIRECTORY (0)
#endif

/** Does \c linux/kdev_t.h exist?
 * Needed for \a MAJOR() and \a MINOR() macros. */
#define HAVE_LINUX_KDEV_T_H 1
#ifdef HAVE_LINUX_KDEV_T_H
#include <linux/kdev_t.h>
#else
/** \name fakedev Fake definitions, as reported with configure.
 * Taken from \c linux/kdev_t.h. */
/** @{ */
#define MAJOR(dev)	((dev)>>8)
#define MINOR(dev)	((dev) & 0xff)
#define MKDEV(ma,mi)	((ma)<<8 | (mi))
/** @} */
#endif

/** @} */

/** i386 has the attribute fastcall; this is used for a few
 * small functions. */
/* #undef HAVE_FASTCALL */

#ifdef HAVE_FASTCALL
#define FASTCALL __attribute__((fastcall))
#else
#define FASTCALL
#endif

#endif

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe <at> fsvs.tigris.org
For additional commands, e-mail: dev-help <at> fsvs.tigris.org
Philipp Marek | 2 May 20:57

Re: FSVS 1.1.12 and up: --enable-debug -> VALGRIND_MAKE_MEM_DEFINED / VALGRIND_MAKE_MEM_NOACCESS

On Friday 02 May 2008 Benjamin M. wrote:
>  From 1.1.12. with
>
> ./configure --enable-debug
...
> /** Whether the valgrind headers were found.
> * Then some initializers can specifically mark areas as initialized. */
> #define HAVE_VALGRIND 1
So the valgrind header was found - only it doesn't contain what we expect.
Are you using an older version than 3.3? I know that I had to change something 
a few months ago ... don't remember whether that was for 3.0, 3.3 or 
something inbetween.

Please change this line to
	#undef HAVE_VALGRIND
and recompile.

Regards,

Phil

--

-- 
Versioning your /etc, /home or even your whole installation?
             Try fsvs (fsvs.tigris.org)!

Gmane