DDD 3.3.8 recipe - was - RE: libtool created import libs brok en? was RE: DDD 3.3.8 (i686-pc-cygwin) gets `Segmentation fault

Harold L Hunt II huntharo@msu.edu
Fri Dec 5 22:01:00 GMT 2003


Subbu,

S Iyer wrote:

> Step no 2 (copying the gcc include files) is no longer necessary
> as it is subsumed by the diff. So all that needs done to get a
> working ddd is:
> 
> 1. cp -r ddd-3.3.8 ddd-3.3.8-orig
> 2. wget http://bellsouthpwp.net/u/l/ulvester/ddddiffs.gz
>    gunzip -c ddddiffs.gz | patch -p0
> 3. cd ddd-3.3.8 && bash ./configure && make && make install
> 
> Thanks to all who got this fixed so quickly, esp to Richard.

Thanks for the recipe.

> Will it be possible to get this into cygwin's setup.exe?

Well, I am working on building the package, but I get a silly error:

configure: configuring in libiberty
configure: running /bin/bash 
'/home/harold/x-devel/4.3/ports/ddd/ddd-3.3.8/libiberty/configure' 
--prefix=/usr  '--srcdir=/home/harold/x-devel/4.3/ports/ddd/ddd-3.3.8' 
'--prefix=/usr' '--exec-prefix=/usr' '--sysconfdir=/etc' 
'--libdir=/usr/lib' '--includedir=/usr/include' 
'--mandir=/usr/share/man' '--infodir=/usr/share/info' 
'--libexecdir=${sbindir}' '--localstatedir=/var' 
'--datadir=${prefix}/share' 'CFLAGS=-O2' 'LDFLAGS=' 
--cache-file=/dev/null 
--srcdir=/home/harold/x-devel/4.3/ports/ddd/ddd-3.3.8/libiberty
configure: warning: CFLAGS=-O2: invalid host type
configure: warning: LDFLAGS=: invalid host type
configure: error: can only configure for one host and one target at a time
configure: error: /bin/bash 
'/home/harold/x-devel/4.3/ports/ddd/ddd-3.3.8/libiberty/configure' 
failed for libiberty


This is due to the way that the configure script for libiberty is called 
in configure.ac:

if test "$ddd_have_libiberty" != true; then
     # Avoid calling config.guess again.  In libiberty, this destroys 
dummy.c.
     old_ac_configure_args="$ac_configure_args"
     case "$ac_configure_args" in
     *--host*) ;;
     *) ac_configure_args="$ac_configure_args --build=$build 
--target=$target";;
     esac
     AC_CONFIG_SUBDIRS([libiberty])
     ac_configure_args="$old_ac_configure_args"
fi


I haven't looked into it enough to fix it at the moment (gotta drive 
somewhere in a few minutes).  I would appreciate it if someone had a fix 
or suggested fix waiting for me when I plugged into the net again.  :)

By the way, the packaging script calls configure like so:

conf() {
   (cd ${objdir} && \
   CFLAGS="${MY_CFLAGS}" LDFLAGS="${MY_LDFLAGS}" \
   ${srcdir}/configure \
   --srcdir=${srcdir} --prefix=${prefix} \
   --exec-prefix=${prefix} --sysconfdir=${sysconfdir} \
   --libdir=${prefix}/lib --includedir=${prefix}/include \
   --mandir=${prefix}/share/man --infodir=${prefix}/share/info \
   --libexecdir='${sbindir}' --localstatedir=/var \
   --datadir='${prefix}/share'
)
}


Harold



More information about the Cygwin-xfree mailing list