[Top][All Lists]

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

Re: building on Ubuntu 4

From: Jeffrey Walton
Subject: Re: building on Ubuntu 4
Date: Thu, 13 Jan 2022 06:58:52 -0500

On Thu, Jan 13, 2022 at 6:08 AM Bruno Haible <bruno@clisp.org> wrote:
> > This is encountered building Git and SSH on Ubuntu 4 in preparation
> > for regression testing.
> Do you really mean Ubuntu from 2004? 17 years old?
> You find the supported releases at
> https://en.wikipedia.org/wiki/Ubuntu#Releases .

Yes. We still support back to GCC 3 and friends. The easiest way to
test the old compilers is to stand up a VM with the old OS.

It's fairly easy to do. Download Ubuntu 4 from
https://old-releases.ubuntu.com/releases/. Install Ubuntu 4 into a VM.
Once you log in, run the following command to fix Apt:

    sed -i 's/archive.ubuntu.com/old-releases/ubuntu.com/g'

Now Apt works and you can install packages.

Git is missing, and SSH is antique. So they are the programs I install
and update through my build scripts.

> > $ cat gettext-build.txt
> > libtool: compile:  /usr/bin/cc -std=gnu99 -DHAVE_CONFIG_H
> > -DEXEEXT=\"\" -DEXEEXT=\"\" -DEXEEXT=\"\" -I. -I.. -I../intl -I../intl
> > -DLIBXML_STATIC -I/usr/local/include -DNDEBUG -g2 -O2 -fPIC -pthread
> > -c tempname.c  -fPIC -DPIC -o .libs/tempname.o
> > In file included from /usr/include/stdio.h:828,
> >                  from stdio.h:43,
> >                  from tempname.h:23,
> >                  from tempname.c:20:
> > /usr/include/bits/stdio.h:113: error: parse error before '{' token
> > /usr/include/bits/stdio.h:120: error: parse error before '{' token
> > In file included from stdlib.h:36,
> >                  from tempname.c:46:
> > /usr/include/stdlib.h:310: error: parse error before '{' token
> > /usr/include/stdlib.h:316: error: parse error before '{' token
> Can you look what's the contents of the system headers at these
> line numbers? __THROW? restrict?

Yeah, it's that __THROW thing again. I added the following to each
system header file that produced an error:

#ifndef __cplusplus
# undef __THROW
# define __THROW

I also caught an error about _IO_FILE like at
https://www.mail-archive.com/bug-gnulib@gnu.org/msg39100.html. Gettext

Maybe it's time to release a new Gettext?


reply via email to

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