Subject: Re: debugging pkgsrc on Solaris
To: Raymond Meyer <raymond.meyer@rambler.ru>
From: Raymond Meyer <raymond.meyer@rambler.ru>
List: tech-pkg
Date: 07/05/2006 13:28:16
On Wed, 5 Jul 2006 11:36:55 +0100
Raymond Meyer <raymond.meyer@rambler.ru> wrote:
> I'm trying to build lang/gcc34-ada on Sparc Solaris, I posted about this
> problem some time ago, but nobody replied to me
>
> # bmake extract
> /bin/sh: syntax error at line 1: `;' unexpected
> *** Error code 2
>
> Stop.
> bmake: stopped in /opt/pkgsrc/lang/gcc34-ada
>
>
> How can I debug this and see where the error is coming from??
Below is the some of the output of 'truss bmake extract'
The last file opened is mk/subst.mk, can anyone suggest where in that file the
problem might be?
stat("../../mk/subst.mk", 0xFFBFF040) = 0
open("../../mk/subst.mk", O_RDONLY) = 5
fstat64(5, 0xFFBFF050) = 0
fstat64(5, 0xFFBFEEF8) = 0
ioctl(5, TCGETA, 0xFFBFEFDC) Err#25 ENOTTY
read(5, " # $ N e t B S D : s".., 8192) = 3245
read(5, 0x00151A2C, 8192) = 0
llseek(5, 0, SEEK_CUR) = 3245
close(5) = 0
brk(0x00159E70) = 0
brk(0x0015BE70) = 0
brk(0x0015BE70) = 0
brk(0x0015DE70) = 0
brk(0x0015DE70) = 0
brk(0x0015FE70) = 0
brk(0x0015FE70) = 0
brk(0x00161E70) = 0
brk(0x00161E70) = 0
brk(0x00163E70) = 0
brk(0x00163E70) = 0
brk(0x00165E70) = 0
brk(0x00165E70) = 0
brk(0x00167E70) = 0
brk(0x00167E70) = 0
brk(0x00169E70) = 0
brk(0x00169E70) = 0
brk(0x0016BE70) = 0
brk(0x0016BE70) = 0
brk(0x0016DE70) = 0
brk(0x0016DE70) = 0
brk(0x0016FE70) = 0
brk(0x0016FE70) = 0
brk(0x00171E70) = 0
brk(0x00171E70) = 0
brk(0x00173E70) = 0
read(4, " o o l s\n # t o t h".., 8192) = 1596
brk(0x00173E70) = 0
brk(0x00175E70) = 0
brk(0x00175E70) = 0
brk(0x00177E70) = 0
read(4, 0x00085C24, 8192) = 0
llseek(4, 0, SEEK_CUR) = 67132
close(4) = 0
read(3, 0x0004D34C, 8192) = 0
llseek(3, 0, SEEK_CUR) = 6041
close(3) = 0
open(".depend", O_RDONLY) Err#2 ENOENT
sigaction(SIGINT, 0xFFBFF190, 0xFFBFF230) = 0
sigaction(SIGINT, 0xFFBFF190, 0xFFBFF230) = 0
sigaction(SIGTERM, 0xFFBFF190, 0xFFBFF230) = 0
sigaction(SIGTERM, 0xFFBFF190, 0xFFBFF230) = 0
sigaction(SIGHUP, 0xFFBFF190, 0xFFBFF230) = 0
sigaction(SIGHUP, 0xFFBFF190, 0xFFBFF230) = 0
sigaction(SIGQUIT, 0xFFBFF190, 0xFFBFF230) = 0
sigaction(SIGQUIT, 0xFFBFF190, 0xFFBFF230) = 0
lwp_sigmask(SIG_SETMASK, 0xFFBFFEFF, 0x0000FFFF) = 0x00000000 [0x00000000]
vfork() = 21196
/bin/sh: syntax error at line 1: `;' unexpected
lwp_sigmask(SIG_SETMASK, 0x00000000, 0x00000000) = 0xFFBFFEFF [0x0000FFFF]
waitid(P_ALL, 0, 0xFFBFEFF0, WEXITED|WTRAPPED) = 0
ioctl(1, TCGETA, 0xFFBFE2D4) Err#22 EINVAL
fstat64(1, 0xFFBFE348) = 0
fstat64(1, 0xFFBFE1F0) = 0
*** Error code 2
Stop.
bmake: stopped in /opt/pkgsrc/lang/gcc34-ada
write(1, " * * * E r r o r c o".., 69) = 69
_exit(1)