Bug#858868: firebird3.0: 3.0.1.32609.ds4-14 FTBFS on hppa

2018-09-25 Thread John David Anglin

On 2018-09-25 1:38 AM, Damyan Ivanov wrote:

The new upstream snapshot (3.0.4.33054.ds4-1) seems to have built on
the third attempt.

Oh, no. This third attempt is with an additional patch:)


Yes.  I blew the second attempt.

--
John David Anglin  dave.ang...@bell.net



Bug#858868: firebird3.0: 3.0.1.32609.ds4-14 FTBFS on hppa

2018-09-24 Thread Damyan Ivanov
Control: tag -1 patch pending

-=| Damyan Ivanov, 25.09.2018 05:06:19 + |=-
> -=| John David Anglin, 24.09.2018 20:58:01 -0400 |=-
> > On 2018-07-07 7:13 PM, John David Anglin wrote:
> > > The attached patch fixes the build on hppa-linux.
> > Ping.
> 
> The new upstream snapshot (3.0.4.33054.ds4-1) seems to have built on 
> the third attempt.

Oh, no. This third attempt is with an additional patch :)

> I'll add the patch anyway (sorry for missing it in the last upload). 
> It is targetted at hppa, and should not have effect on other 
> architectures.

Upload will happen in a couple of minutes.



Bug#858868: firebird3.0: 3.0.1.32609.ds4-14 FTBFS on hppa

2018-09-24 Thread Damyan Ivanov
-=| John David Anglin, 24.09.2018 20:58:01 -0400 |=-
> On 2018-07-07 7:13 PM, John David Anglin wrote:
> > The attached patch fixes the build on hppa-linux.
> Ping.

The new upstream snapshot (3.0.4.33054.ds4-1) seems to have built on 
the third attempt.

https://buildd.debian.org/status/fetch.php?pkg=firebird3.0=hppa=3.0.4.33054.ds4-1=1537835637=0

It is strange that some times the build fails and some times it 
succeeds. I'll add the patch anyway (sorry for missing it in the last 
upload). It is targetted at hppa, and should not have effect on other 
architectures.

-- dam



Bug#858868: firebird3.0: 3.0.1.32609.ds4-14 FTBFS on hppa

2018-09-24 Thread John David Anglin

On 2018-07-07 7:13 PM, John David Anglin wrote:

The attached patch fixes the build on hppa-linux.

Ping.

--
John David Anglin  dave.ang...@bell.net



Bug#858868: firebird3.0: 3.0.1.32609.ds4-14 FTBFS on hppa

2018-07-07 Thread John David Anglin

On 2018-06-04 8:13 AM, Damyan Ivanov wrote:

Another way would be to change src/common/os/posix/mod_loader.cpp
around line 120 to dump sought symbol names to stderr and compare that
to the actual symbol name.
I finally got time to look at this problem.  The above suggestion was an 
excellent clue.


The problem is dlsym returns a function pointer on hppa when passed the 
name of a
function symbol.  It points at a function descriptor for the function 
when the plabel bit
is set in the pointer.  The descriptor has an entry which points at the 
function after it
has been bound.  Otherwise, it points at trampoline code to fix up the 
descriptor.


In any case, dladdr doesn't do the expected thing when passed a function 
pointer.  It

needs the actual address of the function.

The attached patch fixes the build on hppa-linux.  Another option would 
be to adjust

the configure check.

Thanks,
Dave

--
John David Anglin  dave.ang...@bell.net

--- ./src/common/os/posix/mod_loader.cpp.save   2018-02-02 06:00:35.0 
-0500
+++ ./src/common/os/posix/mod_loader.cpp2018-07-07 18:13:19.976129060 
-0400
@@ -125,7 +125,7 @@
result = dlsym(module, newSym.c_str());
}
 
-#ifdef HAVE_DLADDR
+#if defined(HAVE_DLADDR) && !defined(__hppa__)
if (!PathUtils::isRelative(fileName))
{
Dl_info info;


Bug#858868: firebird3.0: 3.0.1.32609.ds4-14 FTBFS on hppa

2018-06-04 Thread Damyan Ivanov
-=| John David Anglin, 03.06.2018 15:53:49 -0400 |=-
> We still have the same failure with 3.0.3.32900.ds4-3:
> 
> make[4]: Leaving directory '/<>/gen'
> /usr/bin/make gpre
> make[4]: Entering directory '/<>/gen'
> rm -f metadata.fdb
> /<>/gen/Release/firebird/bin/isql -q -i 
> /<>/src/dbs/metadata.sql
> can't format message 17:0 -- message file 
> /usr/lib/hppa-linux-gnu/firebird/3.0/firebird.msg not found
> Error loading plugin Engine12
> -Standard plugin entrypoint does not exist in module 
> /<>/gen/Release/firebird/plugins/libEngine12.so
> can't format message 17:120 -- message file 
> /usr/lib/hppa-linux-gnu/firebird/3.0/firebird.msg not found
> make[4]: *** [Makefile:324: metadata.fdb] Error 1
> 
> This failure has become a major blocker (e.g., cmake and qt).
> 
> The message doesn't seem to make much sense as the entry point seems 
> present in libEngine12.so.
> 
> So far, I haven't figured out how to debug this problem as the 
> behavior changes when I run isql outside the build.  Clues on how to 
> debug would be appreciated.

There are some special environment variables set during the build. If 
you want to simulate them outside of the build, you may add an "env" 
invocation before that isql call to see them (around like 333 of 
builds/posix/Makefile.in)

Another way would be to change src/common/os/posix/mod_loader.cpp 
around line 120 to dump sought symbol names to stderr and compare that 
to the actual symbol name.


HTH,
dam



Bug#858868: firebird3.0: 3.0.1.32609.ds4-14 FTBFS on hppa

2018-06-03 Thread John David Anglin

We still have the same failure with 3.0.3.32900.ds4-3:

make[4]: Leaving directory '/<>/gen'
/usr/bin/make gpre
make[4]: Entering directory '/<>/gen'
rm -f metadata.fdb
/<>/gen/Release/firebird/bin/isql -q -i 
/<>/src/dbs/metadata.sql
can't format message 17:0 -- message file 
/usr/lib/hppa-linux-gnu/firebird/3.0/firebird.msg not found
Error loading plugin Engine12
-Standard plugin entrypoint does not exist in module 
/<>/gen/Release/firebird/plugins/libEngine12.so
can't format message 17:120 -- message file 
/usr/lib/hppa-linux-gnu/firebird/3.0/firebird.msg not found
make[4]: *** [Makefile:324: metadata.fdb] Error 1

This failure has become a major blocker (e.g., cmake and qt).

The message doesn't seem to make much sense as the entry point seems present in 
libEngine12.so.

So far, I haven't figured out how to debug this problem as the behavior changes 
when I run isql
outside the build.  Clues on how to debug would be appreciated.

--
John David Anglin  dave.ang...@bell.net



Bug#858868: firebird3.0: 3.0.1.32609.ds4-14 FTBFS on hppa

2017-03-27 Thread John David Anglin
Source: firebird3.0
Version: 3.0.1.32609.ds4-14
Severity: normal

Dear Maintainer,

The build fails here:

sh -x -c "lockfile -1 /<>/gen/Release/firebird/bin/build-db.lock 
&& /<>/gen/Release/firebird/bin/isql -q -i 
/<>/src/dbs/metadata.sql; res=\$?; rm -f 
/<>/gen/Release/firebird/bin/build-db.lock; exit \$res"
+ lockfile -1 /<>/gen/Release/firebird/bin/build-db.lock
+ /<>/gen/Release/firebird/bin/isql -q -i 
/<>/src/dbs/metadata.sql
can't format message 17:0 -- message file 
/usr/lib/hppa-linux-gnu/firebird/3.0/firebird.msg not found
Error loading plugin Engine12
-Standard plugin entrypoint does not exist in module 
/<>/gen/Release/firebird/plugins/libEngine12.so
can't format message 17:120 -- message file 
/usr/lib/hppa-linux-gnu/firebird/3.0/firebird.msg not found
+ res=1
+ rm -f /<>/gen/Release/firebird/bin/build-db.lock
+ exit 1

Full log is here:
https://buildd.debian.org/status/fetch.php?pkg=firebird3.0=hppa=3.0.1.32609.ds4-14=1490657805=0

Previous 3.0.1.32609.ds4 builds were mostly successful.

Regards,
Dave Anglin

-- System Information:
Debian Release: 9.0
  APT prefers buildd-unstable
  APT policy: (500, 'buildd-unstable'), (500, 'unstable')
Architecture: hppa (parisc64)

Kernel: Linux 4.10.5+ (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=UTF-8) (ignored: LC_ALL set to en_US.utf8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)