Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the PDL CPAN distribution.

Report information
The Basics
Id: 122338
Status: rejected
Priority: 0/
Queue: PDL

People
Owner: Nobody in particular
Requestors: 'spro^^*%*^6ut# [...] &$%*c
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 2.018
Fixed in: (no value)



Subject: Installation error: can't write to symdb
Sorry for not reporting this on sourceforge. It won’t let me report a bug without creating an account. ‘sudo make install’ gives me the following output: Appending installation info to /Library/Perl/Updates/5.12.4/darwin-thread-multi-2level/perllocal.pod doc_site_install: Building PDL documentation database ... Files found in blib/arch: installing files in blib/lib into architecture dependent library tree saving... can't write to symdb /Library/Perl/5.12/darwin-thread-multi-2level/PDL/pdldoc.db at blib/lib/PDL/Doc.pm line 497. PDL::Doc::savedb(PDL::Doc=HASH(0x7fb6588070d0)) called at Doc/scantree.pl line 42 DB = /Library/Perl/5.12/darwin-thread-multi-2level/PDL/pdldoc.db Scanning /Library/Perl/5.12/darwin-thread-multi-2level/PDL ... found 0 functions make: *** [doc_site_install] Error 2 make: *** Waiting for unfinished jobs.... Installing /Library/Perl/5.12/darwin-thread-multi-2level/auto/PDL/Bad/Bad.bundle Installing /Library/Perl/5.12/darwin-thread-multi-2level/auto/PDL/CallExt/CallExt.bundle Installing /Library/Perl/5.12/darwin-thread-multi-2level/auto/PDL/Complex/Complex.bundle ... etc. And it seems to install everything else just fine. I don’t know whether that symdb thing is a problem or not (yet). $ perl -V Summary of my perl5 (revision 5 version 12 subversion 4) configuration: Platform: osname=darwin, osvers=12.0, archname=darwin-thread-multi-2level uname='darwin b1026.apple.com 12.0 darwin kernel version 12.0.0: tue may 15 23:31:29 pdt 2012; root:xnu-2050.6.70~1release_x86_64 x86_64 ' config_args='-ds -e -Dprefix=/usr -Dccflags=-g -pipe -Dldflags= -Dman3ext=3pm -Duseithreads -Duseshrplib -Dinc_version_list=none -Dcc=clang' hint=recommended, useposix=true, d_sigaction=define useithreads=define, usemultiplicity=define useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef use64bitint=define, use64bitall=define, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='clang', ccflags ='-arch i386 -arch x86_64 -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -fstack-protector -I/usr/local/include', optimize='-Os', cppflags='-g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -fstack-protector -I/usr/local/include' ccversion='', gccversion='4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)', gccosandvers='' intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='clang -mmacosx-version-min=10.8', ldflags ='-arch i386 -arch x86_64 -fstack-protector -L/usr/local/lib' libpth=/usr/local/lib /usr/lib libs=-ldbm -ldl -lm -lutil -lc perllibs=-ldl -lm -lutil -lc libc=, so=dylib, useshrplib=true, libperl=libperl.dylib gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags='-arch i386 -arch x86_64 -bundle -undefined dynamic_lookup -L/usr/local/lib -fstack-protector' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP USE_64_BIT_ALL USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_PERL_ATOF USE_REENTRANT_API Locally applied patches: /Library/Perl/Updates/<version> comes before system perl directories installprivlib and installarchlib points to the Updates directory Built under darwin Compiled at Jun 20 2012 13:55:28 @INC: /Library/Perl/5.12/darwin-thread-multi-2level /Library/Perl/5.12 /Network/Library/Perl/5.12/darwin-thread-multi-2level /Network/Library/Perl/5.12 /Library/Perl/Updates/5.12.4/darwin-thread-multi-2level /Library/Perl/Updates/5.12.4 /System/Library/Perl/5.12/darwin-thread-multi-2level /System/Library/Perl/5.12 /System/Library/Perl/Extras/5.12/darwin-thread-multi-2level /System/Library/Perl/Extras/5.12 .
Thanks for the report.  We're definitely interested in
fixing any install bugs.

(1) What version of PDL is this?
(2) Log from the configure, build, test, process?

Thanks,
Chris

On Mon Jul 03 09:38:18 2017, SPROUT wrote:
Show quoted text
> Sorry for not reporting this on sourceforge. It won’t let me report a
> bug without creating an account.
>
> ‘sudo make install’ gives me the following output:
>
> Appending installation info to /Library/Perl/Updates/5.12.4/darwin-
> thread-multi-2level/perllocal.pod
> doc_site_install: Building PDL documentation database ...
> Files found in blib/arch: installing files in blib/lib into
> architecture dependent library tree
> saving...
> can't write to symdb /Library/Perl/5.12/darwin-thread-multi-
> 2level/PDL/pdldoc.db at blib/lib/PDL/Doc.pm line 497.
> PDL::Doc::savedb(PDL::Doc=HASH(0x7fb6588070d0)) called at
> Doc/scantree.pl line 42
> DB = /Library/Perl/5.12/darwin-thread-multi-2level/PDL/pdldoc.db
> Scanning /Library/Perl/5.12/darwin-thread-multi-2level/PDL ...
>
>
>
> found 0 functions
> make: *** [doc_site_install] Error 2
> make: *** Waiting for unfinished jobs....
> Installing /Library/Perl/5.12/darwin-thread-multi-
> 2level/auto/PDL/Bad/Bad.bundle
> Installing /Library/Perl/5.12/darwin-thread-multi-
> 2level/auto/PDL/CallExt/CallExt.bundle
> Installing /Library/Perl/5.12/darwin-thread-multi-
> 2level/auto/PDL/Complex/Complex.bundle
> ...
> etc.
>
> And it seems to install everything else just fine. I don’t know
> whether that symdb thing is a problem or not (yet).
>
> $ perl -V
> Summary of my perl5 (revision 5 version 12 subversion 4)
> configuration:
>
> Platform:
> osname=darwin, osvers=12.0, archname=darwin-thread-multi-2level
> uname='darwin b1026.apple.com 12.0 darwin kernel version 12.0.0: tue
> may 15 23:31:29 pdt 2012; root:xnu-2050.6.70~1release_x86_64 x86_64 '
> config_args='-ds -e -Dprefix=/usr -Dccflags=-g -pipe -Dldflags=
> -Dman3ext=3pm -Duseithreads -Duseshrplib -Dinc_version_list=none
> -Dcc=clang'
> hint=recommended, useposix=true, d_sigaction=define
> useithreads=define, usemultiplicity=define
> useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
> use64bitint=define, use64bitall=define, uselongdouble=undef
> usemymalloc=n, bincompat5005=undef
> Compiler:
> cc='clang', ccflags ='-arch i386 -arch x86_64 -g -pipe -fno-common
> -DPERL_DARWIN -fno-strict-aliasing -fstack-protector
> -I/usr/local/include',
> optimize='-Os',
> cppflags='-g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing
> -fstack-protector -I/usr/local/include'
> ccversion='', gccversion='4.2.1 Compatible Apple Clang 4.0
> (tags/Apple/clang-418.0.60)', gccosandvers=''
> intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
> d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
> ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t',
> lseeksize=8
> alignbytes=8, prototype=define
> Linker and Libraries:
> ld='clang -mmacosx-version-min=10.8', ldflags ='-arch i386 -arch
> x86_64 -fstack-protector -L/usr/local/lib'
> libpth=/usr/local/lib /usr/lib
> libs=-ldbm -ldl -lm -lutil -lc
> perllibs=-ldl -lm -lutil -lc
> libc=, so=dylib, useshrplib=true, libperl=libperl.dylib
> gnulibc_version=''
> Dynamic Linking:
> dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
> cccdlflags=' ', lddlflags='-arch i386 -arch x86_64 -bundle
> -undefined dynamic_lookup -L/usr/local/lib -fstack-protector'
>
>
> Characteristics of this binary (from libperl):
> Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV
> PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP
> USE_64_BIT_ALL
> USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES
> USE_PERLIO USE_PERL_ATOF USE_REENTRANT_API
> Locally applied patches:
> /Library/Perl/Updates/<version> comes before system perl
> directories
> installprivlib and installarchlib points to the Updates
> directory
> Built under darwin
> Compiled at Jun 20 2012 13:55:28
> @INC:
> /Library/Perl/5.12/darwin-thread-multi-2level
> /Library/Perl/5.12
> /Network/Library/Perl/5.12/darwin-thread-multi-2level
> /Network/Library/Perl/5.12
> /Library/Perl/Updates/5.12.4/darwin-thread-multi-2level
> /Library/Perl/Updates/5.12.4
> /System/Library/Perl/5.12/darwin-thread-multi-2level
> /System/Library/Perl/5.12
> /System/Library/Perl/Extras/5.12/darwin-thread-multi-2level
> /System/Library/Perl/Extras/5.12
> .


On Mon Jul 03 12:30:39 2017, CHM wrote: Show quoted text
> Thanks for the report. We're definitely interested in > fixing any install bugs. > > (1) What version of PDL is this?
2.018. Sorry, I should have mentioned that. Show quoted text
> (2) Log from the configure, build, test, process?
When I tried running the install a second time on that perl installation (5.12.4) it worked, so apparently installing twice seems to solve the problem! I happen to have various versions lying around for testing my own modules, so I tried 5.14.4, and got the same failure. When I attach the build log rt.cpan.org responds with Bad Request, so I am trying without the attachment to see if that makes a difference....
On Tue Jul 04 19:42:28 2017, SPROUT wrote: Show quoted text
> On Mon Jul 03 12:30:39 2017, CHM wrote:
> > Thanks for the report. We're definitely interested in > > fixing any install bugs. > > > > (1) What version of PDL is this?
> > 2.018. Sorry, I should have mentioned that. >
> > (2) Log from the configure, build, test, process?
> > When I tried running the install a second time on that perl > installation (5.12.4) it worked, so apparently installing twice seems > to solve the problem! > > I happen to have various versions lying around for testing my own > modules, so I tried 5.14.4, and got the same failure. > > When I attach the build log rt.cpan.org responds with Bad Request, so > I am trying without the attachment to see if that makes a > difference....
I tried pasting the build log inline, but it failed. I think rt.cpan.org has a size limit. And gist.github.com seems to have the same problem. So I have uploaded the log to <http://ctosonline.org/temp/build.log>.
Glad to hear you have a work around.  Does the double install fix the 5.14 problems?

I had a look at the log and it appears that the error is in permissions or something with the PDL documentation database file.  If you remove the previous database file and then run the install, does it work?

At the moment, i am unable to reproduce the problem so pretty much at a dead end with respect to a possible general problem.  I'll keep this ticket open pending another user report/confirm this and maybe the additional data point will help.

FYI, you can also try #pdl at irc.perl.org for questions.

As far as the problem, you won't be able to use pdldoc command or the help or apropos commands in the perl shells if the database is not there.  If you can run qx(pdldoc pdl) and get matches for pdl or PDL you should be good to go.

Cheers and happy PDL-ing!

On Tue Jul 04 19:42:28 2017, SPROUT wrote:
Show quoted text
> On Mon Jul 03 12:30:39 2017, CHM wrote:
> > Thanks for the report. We're definitely interested in
> > fixing any install bugs.
> >
> > (1) What version of PDL is this?
>
> 2.018. Sorry, I should have mentioned that.
>
> > (2) Log from the configure, build, test, process?
>
> When I tried running the install a second time on that perl
> installation (5.12.4) it worked, so apparently installing twice seems
> to solve the problem!
>
> I happen to have various versions lying around for testing my own
> modules, so I tried 5.14.4, and got the same failure.
>
> When I attach the build log rt.cpan.org responds with Bad Request, so
> I am trying without the attachment to see if that makes a
> difference....


Chris, What do you think about opening a GitHub issue for this, and then closing both RT tickets in favour of relevant issues?
This is impossible to repro with the given information. Line 497 of PDL::Doc just opens the file for writing. Please reopen with more information if it recurs!
(using a GitHub issue)