All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] [Xenosim-2.4.7] libelf configure problem
@ 2009-03-11 22:47 Bruno Rouchouse
  2009-03-12  9:59 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 3+ messages in thread
From: Bruno Rouchouse @ 2009-03-11 22:47 UTC (permalink / raw)
  To: Xenomai-help@domain.hid

[-- Attachment #1: Type: text/plain, Size: 2854 bytes --]

Hi list,

I'm trying to compile xenosim-2.4.7 on my Ubuntu-8.10 with the following
host configuration:
- autoconf 2.61
- automake 1.10.1
- gcc-4.3.2

My configure line is shown below:
../xenomai-2.4.7/xenosim-2.4.7/configure
--prefix=/home/bruno/xenosim_install/
--with-gcc-tarball=/tmp/gcc-2.95.3.tar.gz --x-includes=/usr/include/X11
--x-libraries=/usr/lib32/ CFLAGS=-m32

Please find below the config.log excerpt:
[...]
checking for sys/time.h... yes
checking elf.h usability... yes
checking elf.h presence... yes
checking for elf.h... yes
checking libelf.h usability... no
checking libelf.h presence... yes
configure: WARNING: libelf.h: present but cannot be compiled
configure: WARNING: libelf.h:     check for missing prerequisite headers?
configure: WARNING: libelf.h: see the Autoconf documentation
configure: WARNING: libelf.h:     section "Present But Cannot Be Compiled"
configure: WARNING: libelf.h: proceeding with the preprocessor's result
configure: WARNING: libelf.h: in the future, the compiler will take
precedence
configure: WARNING:     ## ----------------------------------- ##
configure: WARNING:     ## Report this to xenomai@xenomai.org ##
configure: WARNING:     ## ----------------------------------- ##
checking for libelf.h... yes
checking libelf/libelf.h usability... no
checking libelf/libelf.h presence... no
checking for libelf/libelf.h... no
checking for uid_t in sys/types.h... yes
[...]

Ignoring the WARNING of course won't work at compile time ;)
gcc -DHAVE_CONFIG_H -I. -I../../xenomai-2.4.7/xenosim-2.4.7/vmutils
-I../include -D__XENO_SIM__ -I../../xenomai-2.4.7/xenosim-2.4.7/vmutils/..
-O2 -MT libmvmutils_la-elf.lo -MD -MP -MF .deps/libmvmutils_la-elf.Tpo -c
../../xenomai-2.4.7/xenosim-2.4.7/vmutils/elf.c  -fPIC -DPIC -o
.libs/libmvmutils_la-elf.o
In file included from ../../xenomai-2.4.7/xenosim-2.4.7/vmutils/elf.c:42:
/usr/include/libelf.h:98: error: expected specifier-qualifier-list before
'off64_t'
/usr/include/libelf.h:160: error: expected specifier-qualifier-list before
'off64_t'
/usr/include/libelf.h:201: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'elf_update'
/usr/include/libelf.h:207: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'elf_getbase'
/usr/include/libelf.h:305: error: expected declaration specifiers or '...'
before 'off64_t'
/usr/include/libelf.h:317: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'elf_getaroff'
make[1]: *** [libmvmutils_la-elf.lo] Error 1
make[1]: Leaving directory `/home/bruno/xenosim_build/vmutils'
make: *** [all-recursive] Error 1

Autoconf documentation gives some explanation of that but I haven't been
able to fix it so far.
http://www.gnu.org/software/hello/manual/autoconf/Present-But-Cannot-Be-Compiled.html

If you went through that already and have a workaround, I'm interested.

Thanks.

--Bruno

[-- Attachment #2: Type: text/html, Size: 3400 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Xenomai-help] [Xenosim-2.4.7] libelf configure problem
  2009-03-11 22:47 [Xenomai-help] [Xenosim-2.4.7] libelf configure problem Bruno Rouchouse
@ 2009-03-12  9:59 ` Gilles Chanteperdrix
  2009-03-12 10:03   ` Gilles Chanteperdrix
  0 siblings, 1 reply; 3+ messages in thread
From: Gilles Chanteperdrix @ 2009-03-12  9:59 UTC (permalink / raw)
  To: Bruno Rouchouse; +Cc: Xenomai-help@domain.hid

Bruno Rouchouse wrote:
> Hi list,
> 
> I'm trying to compile xenosim-2.4.7 on my Ubuntu-8.10 with the following
> host configuration:
> - autoconf 2.61
> - automake 1.10.1
> - gcc-4.3.2
> 
> My configure line is shown below:
> ../xenomai-2.4.7/xenosim-2.4.7/configure
> --prefix=/home/bruno/xenosim_install/
> --with-gcc-tarball=/tmp/gcc-2.95.3.tar.gz --x-includes=/usr/include/X11
> --x-libraries=/usr/lib32/ CFLAGS=-m32

I think the problem is that you need all the libraries in their 32 bits
version. To do this with a Debian, you need to setup a 32 bits chroot,
http://www.debian-administration.org/articles/356

Fedora Core allows to install 32 bits versions of the packages (you only
need to add an "i386" in the package name).

I do not know about Ubuntu, I know xenosim can be run in a 32bits QEMU
image too.

-- 
                                                 Gilles.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Xenomai-help] [Xenosim-2.4.7] libelf configure problem
  2009-03-12  9:59 ` Gilles Chanteperdrix
@ 2009-03-12 10:03   ` Gilles Chanteperdrix
  0 siblings, 0 replies; 3+ messages in thread
From: Gilles Chanteperdrix @ 2009-03-12 10:03 UTC (permalink / raw)
  To: Bruno Rouchouse; +Cc: Xenomai-help@domain.hid

Gilles Chanteperdrix wrote:
> Bruno Rouchouse wrote:
>> Hi list,
>>
>> I'm trying to compile xenosim-2.4.7 on my Ubuntu-8.10 with the following
>> host configuration:
>> - autoconf 2.61
>> - automake 1.10.1
>> - gcc-4.3.2
>>
>> My configure line is shown below:
>> ../xenomai-2.4.7/xenosim-2.4.7/configure
>> --prefix=/home/bruno/xenosim_install/
>> --with-gcc-tarball=/tmp/gcc-2.95.3.tar.gz --x-includes=/usr/include/X11
>> --x-libraries=/usr/lib32/ CFLAGS=-m32
> 
> I think the problem is that you need all the libraries in their 32 bits
> version. To do this with a Debian, you need to setup a 32 bits chroot,
> http://www.debian-administration.org/articles/356

Here is the Ubuntu version:
https://wiki.ubuntu.com/DebootstrapChroot

-- 
                                                 Gilles.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-03-12 10:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-11 22:47 [Xenomai-help] [Xenosim-2.4.7] libelf configure problem Bruno Rouchouse
2009-03-12  9:59 ` Gilles Chanteperdrix
2009-03-12 10:03   ` Gilles Chanteperdrix

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.