Bug#805731: gmt: FTBFS from source on hppa: Missing define for UC_IP

John David Anglin dave.anglin at bell.net
Sat Nov 21 18:18:43 UTC 2015


Package: src:gmt
Version: 5.2.1+dfsg-2
Severity: normal
Tags: patch

Dear Maintainer,

See build log:
https://buildd.debian.org/status/fetch.php?pkg=gmt&arch=hppa&ver=5.2.1%2Bdfsg-2&stamp=1447626260

There error is here:
cd /<<BUILDDIR>>/gmt-5.2.1+dfsg/debian/build/src && /usr/bin/cc  -DLIBRARY_EXPORTS -std=gnu99 -fstrict-aliasing -g -O2 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fopenmp -O2 -g -DNDEBUG -fPIC -I/<<BUILDDIR>>/gmt-5.2.1+dfsg/debian/build/src -I/<<BUILDDIR>>/gmt-5.2.1+dfsg/src -I/usr/include/gdal -I/<<BUILDDIR>>/gmt-5.2.1+dfsg/debian/build/src/gshhg -I/<<BUILDDIR>>/gmt-5.2.1+dfsg/debian/build/src/img -I/<<BUILDDIR>>/gmt-5.2.1+dfsg/debian/build/src/meca -I/<<BUILDDIR>>/gmt-5.2.1+dfsg/debian/build/src/mgd77 -I/<<BUILDDIR>>/gmt-5.2.1+dfsg/debian/build/src/misc -I/<<BUILDDIR>>/gmt-5.2.1+dfsg/debian/build/src/potential -I/<<BUILDDIR>>/gmt-5.2.1+dfsg/debian/build/src/segy -I/<<BUILDDIR>>/gmt-5.2.1+dfsg/debian/build/src/spotter -I/<<BUILDDIR>>/gmt-5.2.1+dfsg/debian/build/src/x2sys    -o CMakeFiles/gmtlib.dir/common_sighandler.c.o   -c /<<BUILDDIR>>/gmt-5.2.1+dfsg/src/common_sighandler.c
/<<BUILDDIR>>/gmt-5.2.1+dfsg/src/common_sighandler.c: In function 'sig_handler':
/<<BUILDDIR>>/gmt-5.2.1+dfsg/src/common_sighandler.c:85:48: error: 'mcontext_t {aka struct sigcontext}' has no member named 'gregs'
 #  define UC_IP(uc) ((void *) (uc)->uc_mcontext.gregs[REG_EIP])
                                                ^
/<<BUILDDIR>>/gmt-5.2.1+dfsg/src/common_sighandler.c:158:14: note: in expansion of macro 'UC_IP'
  array [0] = UC_IP (uc); /* caller's address */
              ^
/<<BUILDDIR>>/gmt-5.2.1+dfsg/src/common_sighandler.c:85:55: error: 'REG_EIP' undeclared (first use in this function)
 #  define UC_IP(uc) ((void *) (uc)->uc_mcontext.gregs[REG_EIP])
                                                       ^
/<<BUILDDIR>>/gmt-5.2.1+dfsg/src/common_sighandler.c:158:14: note: in expansion of macro 'UC_IP'
  array [0] = UC_IP (uc); /* caller's address */
              ^
/<<BUILDDIR>>/gmt-5.2.1+dfsg/src/common_sighandler.c:85:55: note: each undeclared identifier is reported only once for each function it appears in
 #  define UC_IP(uc) ((void *) (uc)->uc_mcontext.gregs[REG_EIP])
                                                       ^
/<<BUILDDIR>>/gmt-5.2.1+dfsg/src/common_sighandler.c:158:14: note: in expansion of macro 'UC_IP'
  array [0] = UC_IP (uc); /* caller's address */
              ^
src/CMakeFiles/gmtlib.dir/build.make:118: recipe for target 'src/CMakeFiles/gmtlib.dir/common_sighandler.c.o' failed

The attached patch fixes the bug.  Please install if okay and report upstream.

Regards,
Dave Anglin

-- System Information:
Debian Release: stretch/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: hppa (parisc64)

Kernel: Linux 3.18.24+ (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_CA.utf8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gmt-common_sighandler.c.diff
Type: text/x-diff
Size: 1502 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-grass-devel/attachments/20151121/04abfa9f/attachment.diff>


More information about the Pkg-grass-devel mailing list