pkgsrc-Users archive

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

Re: mktime() problem when building print/a2ps



On Fri, 14 Oct 2022, Martin Husemann wrote:

On Fri, Oct 14, 2022 at 08:52:49AM +0200, Thomas Klausner wrote:
On Thu, Oct 13, 2022 at 07:10:46PM -0700, Paul Goyette wrote:
Strange problem...

Host and target are both an AMD64 NetBSD 9.99.99 build from sources
dated 2022-09-09 at 01:58:58 UTC.  Thepackages are all being built
in a chroot sandbox (as created with sysutils/mksandbox).  And my
pkgsrc itself is from today 2022-10-13 at 19:29:24 UTC.

All predecessor/dependency packages have been rebuilt from today's
source and installed in the sandbox.  When I get to print/a2ps, it
starts to run, and fails in configure.  The last thing in the log
file is

	...
	checking limits.h usability... yes
	checking limits.h presence... yes
	checking for limits.h... yes
	checking for working mktime...

and it never progresses beyond this point.  It appears to be in a
processor-bound loop making this check, and xosview reports that one
cpu (6% of a total of 16threads) is completely busy.  top(1) reports
that a process called ``conftest'' is running with 98.97% of one
thread.

I don't know what conftest is, but this sure appears broken!

Any suggestions?

This takes much longer than I'd expect it to, but it finishes for me
in less than a minute.

Thomas: can you show the code?

Paul: can you modify the configure script to add -g to the command line
and then attach gdb to the long running process?

kre@ noticed some comments in the code regarding mktime().  i also
noticed that a2ps built correctly when building it as a dependency
for something else (magicfilter).

Yet when i rebuilt it again "by itself" it hung again.  interestingly,
a Ctrl-C/bg/fg seqence gave it a kick and it continued normally after
that.

Looking at the code, it seems that the alarm(60) didn't work.

gdb is possible, but will not happen soon.


+--------------------+--------------------------+----------------------+
| Paul Goyette       | PGP Key fingerprint:     | E-mail addresses:    |
| (Retired)          | FA29 0E3B 35AF E8AE 6651 | paul%whooppee.com@localhost    |
| Software Developer | 0786 F758 55DE 53BA 7731 | pgoyette%netbsd.org@localhost  |
| & Network Engineer |                          | pgoyette99%gmail.com@localhost |
+--------------------+--------------------------+----------------------+


Home | Main Index | Thread Index | Old Index