login  home  contents  what's new  discussion  bug reports     help  links  subscribe  changes  refresh  edit

Edit detail for #124 Build failure in CVS top-of-tree sources in src/hyper revision 3 of 3

1 2 3
Editor: japp
Time: 2008/10/16 19:22:15 GMT-7
Note:

added:

From japp Thu Oct 16 19:22:15 -0700 2008
From: japp
Date: Thu, 16 Oct 2008 19:22:15 -0700
Subject: 
Message-ID: <20081016192215-0700@axiom-wiki.newsynthesis.org>

Status: open => need more info 


Submitted by : (unknown) at: 2007-11-17T21:54:58-08:00 (16 years ago)
Name :
Axiom Version :
Category : Severity : Status :
Optional subject :  
Optional comment :

src/hyper has a build failure in hthits.c[.pamphlet]?. There is a reference to "loc2", which is undeclared anywhere else in the source tree.

The compile failure is:

  1. making /home/ports/math/axiom/work/axiom-0.0/obj/freebsd/hyper/hthits.o from /home/ports/math/axiom/work/axiom-0.0/int/hyper/hthits.c /home/ports/math/axiom/work/axiom-0.0/int/hyper/hthits.c: In function `main': /home/ports/math/axiom/work/axiom-0.0/int/hyper/hthits.c:116: warning: implicit declaration of function `compile' /home/ports/math/axiom/work/axiom-0.0/int/hyper/hthits.c: In function `handleFile': /home/ports/math/axiom/work/axiom-0.0/int/hyper/hthits.c:192: warning: long int format, time_t arg (arg 4) /home/ports/math/axiom/work/axiom-0.0/int/hyper/hthits.c: In function `searchPage': /home/ports/math/axiom/work/axiom-0.0/int/hyper/hthits.c:360: warning: implicit declaration of function `step' /home/ports/math/axiom/work/axiom-0.0/int/hyper/hthits.c:363: error: `loc2' undeclared (first use in this function) /home/ports/math/axiom/work/axiom-0.0/int/hyper/hthits.c:363: error: (Each undeclared identifier is reported only once /home/ports/math/axiom/work/axiom-0.0/int/hyper/hthits.c:363: error: for each function it appears in.) gmake[3]?: *** [/home/ports/math/axiom/work/axiom-0.0/obj/freebsd/hyper/hthits.o]? Error 1 gmake[3]?: Leaving directory `/home/ports/math/axiom/work/axiom-0.0/src/hyper' gmake[2]?: *** [hyperdir]? Error 2

If I kludge this by removing the line that (seems to) erroneously refer to "loc2", then I get a link failure when step() and compile() are not found:

linking /home/ports/math/axiom/work/axiom-0.0/mnt/freebsd/lib/hthits /home/ports/math/axiom/work/axiom-0.0/obj/freebsd/hyper/hthits.o(.text+0x239): In function `searchPage': : undefined reference to `step' /home/ports/math/axiom/work/axiom-0.0/obj/freebsd/hyper/hthits.o(.text+0x832): In function `main': : undefined reference to `compile' gmake[3]?: *** [/home/ports/math/axiom/work/axiom-0.0/mnt/freebsd/lib/hthits]? Error 1 gmake[3]?: Leaving directory `/home/ports/math/axiom/work/axiom-0.0/src/hyper' gmake[2]?: *** [hyperdir]? Error 2 gmake[2]?: Leaving directory `/home/ports/math/axiom/work/axiom-0.0/src' gmake[1]?: *** [srcdir]? Error 2 gmake[1]?: Leaving directory `/home/ports/math/axiom/work/axiom-0.0' gmake: *** [all]? Error 2 *** Error code 2

Solution found --markm, Thu, 17 Mar 2005 13:29:51 -0600 reply
It turns out this is rather old Sun regexp code.

I found an old manpage that describes step(), compile, loc1 and loc2, and I'll redo the offending function to use something a bit more modern and POSIX-compliant.

New build system. --japp, Thu, 16 Oct 2008 19:22:00 -0700 reply
Is this still valid. Not information about the system that the failure occurred.

Status: open => need more info