bug-ddd
[Top][All Lists]
Advanced

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

libiberty problem in ddd


From: Martin Opel
Subject: libiberty problem in ddd
Date: Mon, 24 Nov 2003 14:01:12 +0100 (CET)

Hi,

I'm trying to compile ddd 3.3.8 on a system without installed libiberty.a.
It is a GNU/Linux system (Crux Linux) with a 2.4.21 vanilla kernel, a
glibc-2.3.2 and gcc-3.2.3.

There are two bugs:

1. CFLAGS Bug
=============
If the CFLAGS or CXXFLAGS contains spaces like CFLAGS="-O2
-march=i686", then the configure of the libiberty subdirectory fails,
because the configure arguments are wrong:

>configure: configuring in libiberty
>configure: running /bin/sh './configure' --prefix=/usr  '--prefix=/usr'
>'CFLAGS=-O2 -march=i586 -pipe' 'CXXFLAGS=-O2 -march=i586 -pipe'
>--cache-file=/dev/null --srcdir=.
>configure: warning: CFLAGS=-O2 -march=i586 -pipe: invalid host type
>configure: warning: CXXFLAGS=-O2 -march=i586 -pipe: invalid host type
>configure: error: can only configure for one host and one target at a time
>configure: error: /bin/sh './configure' failed for libiberty
>=======> ERROR: Building '/usr/ports/contrib/ddd/ddd#3.3.8-1.pkg.tar.gz'

I inserted a sed call into the configure script to solve this problem:
ac_sub_configure_args=
  `echo $ac_sub_configure_args | sed -e "s,'[^']*',,g"`


2. missing libiberty header files
=================================
there are some missing header files in the include subdirectory, which are
required by the included libiberty: xregex.h, xregex2.h, safe-ctype.h,...
I solved this only by taking the libiberty/include dirs of a current
gcc-3.2.2 archive.


Bye
Martin

--
martin opel / fachbereich informatik - fachhochschule regensburg
           / email: address@hidden
          / web: http://rfhs8012.fh-regensburg.de/~opel/
         / phone: +49 941 943-1336, fax: +49 941 943-1426




reply via email to

[Prev in Thread] Current Thread [Next in Thread]