Opened 14 years ago

Closed 14 years ago

#25368 closed defect (invalid)

policykit install fails

Reported by: jpbn@… Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: Cc: swebster@…, 73w3sz@…
Port: policykit

Description (last modified by jmroot (Joshua Root))

Building policykit

Error: Target org.macports.build returned: shell command failed
Log for policykit is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_security_policykit/main.log
Error: The following dependencies failed to build: gimp-app gimp2 gegl babl librsvg libgsf gconf policykit gnome-vfs gnome-mime-data libbonobo w3m boehmgc ffmpeg XviD dirac cppunit faac faad2 gmake lame libogg libsdl libtheora libvorbis schroedinger orc x264 yasm graphviz gd2 xpm xorg-libXt xorg-libsm xorg-libice ghostscript libpaper urw-fonts xorg-libXaw xorg-libXmu libopenraw boost boost-jam libspiro lua openexr ilmbase gsed lcms libexif libgnomeui gnome-icon-theme hicolor-icon-theme icon-naming-utils p5-xml-simple p5-xml-namespacesupport p5-xml-sax p5-xml-sax-expat gnome-keyring libgcrypt libgpg-error libtasn1 libbonoboui libglade2 libgnome esound audiofile libgnomecanvas libmng libwmf poppler openjpeg poppler-data py25-gtk py25-cairo py25-numpy atlas gcc44 gmp mpfr gzip texinfo lzmautils fftw-3 py25-nose py25-distribute python25 py25-gobject gimp-jp2 gimp-lqr-plugin liblqr gtk-nodoka-engine coreutils gutenprint icns-gimp ufraw cfitsio dcraw gtkimageview xsane sane-backends libusb-compat libusb
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>
macbook-van-jaap-bosman:~ jjb$ 

Attachments (1)

main.log (86.4 KB) - added by 73w3sz@… 14 years ago.
log of failed MacPorts build of policykit 8-3-2010

Download all attachments as: .zip

Change History (18)

comment:1 Changed 14 years ago by jmroot (Joshua Root)

Description: modified (diff)
Owner: changed from macports-tickets@… to devans@…
Port: policykit added
Summary: gimp install failspolicykit install fails

Please remember to preview and use WikiFormatting, fill in the Port field, and cc the maintainer.

The output you have provided is not very useful since all it tells us is "building policykit failed". Please attach the log.

comment:2 Changed 14 years ago by swebster@…

I just rebuilt policykit without any problems. jpbn, we need you to submit your log (/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_security_policykit/main.log) in order to provide any more help.

comment:3 Changed 14 years ago by swebster@…

Cc: swebster@… added

Cc Me!

comment:4 Changed 14 years ago by jpbn@…

the log is lost, I am sorry,

comment:5 Changed 14 years ago by sewebster@…

Is the problem fixed and you can now build policykit? If so, then we can close this ticket (please let us know). If not, then you could just try again and it will make another log...

comment:6 in reply to:  description Changed 14 years ago by 73w3sz@…

Policykit fails to build here in both default and universal variants.

Acting on the basis of an old ticket, I deactivated coreutils and policykit still fails to build.

I am using OS X 10.6.4 and port version 1.9.1

I am attaching my log

Changed 14 years ago by 73w3sz@…

Attachment: main.log added

log of failed MacPorts build of policykit 8-3-2010

comment:7 Changed 14 years ago by sewebster@…

This is a bit of a guess, but maybe you could post the output of the command:

perl -e "require XML::Parser"

comment:8 Changed 14 years ago by 73w3sz@…

Thanks, Scott!

I get:

$ perl -e "require XML::Parser"

Can't locate XML/Parser.pm in @INC (@INC contains: /sw/lib/perl5 /sw/lib/perl5/darwin /opt/local/lib/perl5/site_perl/5.8.9/darwin-2level /opt/local/lib/perl5/site_perl/5.8.9 /opt/local/lib/perl5/site_perl /opt/local/lib/perl5/vendor_perl/5.8.9/darwin-2level /opt/local/lib/perl5/vendor_perl/5.8.9 /opt/local/lib/perl5/vendor_perl /opt/local/lib/perl5/5.8.9/darwin-2level /opt/local/lib/perl5/5.8.9 .) at -e line 1.

MacPort says that I have installed and active:

p5-xml-parser @2.36_0+universal (active) p5-xml-dom @1.44_0 (active) p5-libxml-perl @0.08_0 (active) p5-xml-libxml @1.69_0 (active) perl5.8 @5.8.9_3+universal (active)

I get:

$ locate XML/Parser.pm /System/Library/Perl/Extras/5.10.0/darwin-thread-multi-2level/XML/Parser.pm /System/Library/Perl/Extras/5.8.9/darwin-thread-multi-2level/XML/Parser.pm /opt/local/lib/perl5/vendor_perl/5.10.1/darwin-multi-2level/XML/Parser.pm /opt/local/var/macports/software/p5-xml-parser/2.36_0/opt/local/lib/perl5/vendor_perl/5.8.9/darwin-2level/XML/Parser.pm /opt/local/var/macports/software/p5-xml-parser/2.36_0+universal/opt/local/lib/perl5/vendor_perl/5.10.1/darwin-multi-2level/XML/Parser.pm

When I: sudo ln -s /System/Library/Perl/Extras/5.8.9/darwin-thread-multi-2level/XML/Parser.pm /sw/lib/perl5/XML/Parser.pm sudo ln -s /System/Library/Perl/Extras/5.8.9/darwin-thread-multi-2level/XML/Parser/Expat.pm /sw/lib/perl5/XML/Parser/Expat.pm

I am greeted with: perl -e "require XML::Parser" Can't find 'boot_XMLParserExpat' symbol in /usr/local/lib/libExpat.dylib

at /sw/lib/perl5/XML/Parser.pm line 14

Compilation failed in require at /sw/lib/perl5/XML/Parser.pm line 14. BEGIN failed--compilation aborted at /sw/lib/perl5/XML/Parser.pm line 18. Compilation failed in require at -e line 1.

and when I try to install policykit I still get the same log, ending in:

:info:configure checking for XML::Parser... configure: error: XML::Parser perl module is required for intltool :info:configure shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_security_policykit/work/PolicyKit-0.9" && ./configure --prefix=/opt/local --with-authfw=pam --with-pam-prefix=/etc/pam.d --with-pam-module-dir=/usr/lib/pam --disable-selinux --enable-man-pages --disable-gtk-doc " returned error 1 :error:configure Target org.macports.configure returned: configure failure: shell command failed :debug:configure Backtrace: configure failure: shell command failed

while executing

"$procedure $targetname" :info:configure Warning: the following items did not execute (for policykit): org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install :notice:configure Log for policykit is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_security_policykit/main.log

comment:9 Changed 14 years ago by 73w3sz@…

Cc: 73w3sz@… added

Cc Me!

comment:10 in reply to:  8 Changed 14 years ago by sewebster@…

Replying to 73w3sz@…:

> Can't locate XML/Parser.pm in @INC (@INC contains: 
> /sw/lib/perl5 /sw/lib/perl5/darwin /opt/local/lib/perl5/site_perl/5.8.9/darwin-2level 
> /opt/local/lib/perl5/site_perl/5.8.9 /opt/local/lib/perl5/site_perl 
> /opt/local/lib/perl5/vendor_perl/5.8.9/darwin-2level 
> /opt/local/lib/perl5/vendor_perl/5.8.9 /opt/local/lib/perl5/vendor_perl 
> /opt/local/lib/perl5/5.8.9/darwin-2level /opt/local/lib/perl5/5.8.9 .) at -e line 1.
> 
> MacPort says that I have installed and active:
>   p5-xml-parser @2.36_0+universal (active)
>   p5-xml-dom @1.44_0 (active)
>   p5-libxml-perl @0.08_0 (active)
>   p5-xml-libxml @1.69_0 (active)
>   perl5.8 @5.8.9_3+universal (active)
> 
> I get:
> 
> $ locate XML/Parser.pm
> /System/Library/Perl/Extras/5.10.0/darwin-thread-multi-2level/XML/Parser.pm
> /System/Library/Perl/Extras/5.8.9/darwin-thread-multi-2level/XML/Parser.pm
> /opt/local/lib/perl5/vendor_perl/5.10.1/darwin-multi-2level/XML/Parser.pm
> /opt/local/var/macports/software/p5-xml-parser/2.36_0/opt/local/lib/perl5/vendor_perl/5.8.9/darwin-2level/XML/Parser.pm
> /opt/local/var/macports/software/p5-xml-parser/2.36_0+universal/opt/local/lib/perl5/vendor_perl/5.10.1/darwin-multi-2level/XML/Parser.pm
> 

The version of Parser.pm that we are interested in is the one in /opt/local/lib. You can see from the @INC path that it is searching in /opt/local/lib/perl5/vendor_perl/5.8.9/darwin-2level. That is where my XML/Parser.pm resides. But yours (the version in /opt/local/lib) is in a Perl 5.10.1 directory?? Weird. Have you done any non-standard installations of perl or any of the rest of this stuff?

> 
> When I:
> sudo ln -s /System/Library/Perl/Extras/5.8.9/darwin-thread-multi-2level/XML/Parser.pm /sw/lib/perl5/XML/Parser.pm
> sudo ln -s /System/Library/Perl/Extras/5.8.9/darwin-thread-multi-2level/XML/Parser/Expat.pm /sw/lib/perl5/XML/Parser/Expat.pm
> 

Hmm, I don't see why you would do this really. Anyway, I think you really want to stick with the macports installed version in /opt/local/lib

comment:11 Changed 14 years ago by 73w3sz@…

Hi Scott,

I haven't done any installs of perl except with MacPort. I have done no non-standard installs of perl or any of this stuff, although I also have Fink installed as there are a few packages [not perl-related] that were available in Fink but not in MacPort. I didn't explicitly install perl with fink but Fink did automatically install some of perl 5.8.9 in its own directories [sw].

I didn't mean to put the newly-linked files in /sw, but it was 2 a.m. and I made a mistake. I corrected the mistake and I have now put the files where they belong with the rest of the MacPorts perl and XML files in /opt/local/lib/perl5/vendor_perl/5.8.9/XML.

Now when I run perl -e "require XML::Parser" I get:

Can't find 'boot_XMLParserExpat' symbol in /usr/local/lib/libExpat.dylib

at /opt/local/lib/perl5/vendor_perl/5.8.9/XML/Parser.pm line 14

Compilation failed in require at /opt/local/lib/perl5/vendor_perl/5.8.9/XML/Parser.pm line 14. BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.8.9/XML/Parser.pm line 18. Compilation failed in require at -e line 1.

I think part of the problem may be that the following file [actually a link to libexpat.1.5.2.dylib] was present: libexpat.dylib, rather than libExpat.dylib. I know that the terminal application in OS X is case insensitive, but I don't know if that could have caused a problem. I suspect not, as I removed the link for libexpat.dylib and created the link for libExpat.dylib and I still have the same problem.

comment:12 Changed 14 years ago by sewebster@…

I can see why you would want to "hack things together" with the links to make it work, but I'm not sure it is going to lead to the easiest resolution and might cause problems down the road. In this case, I wouldn't be too surprised if the reason it is looking in /usr/local/lib is because it has the "wrong" version of Parser.pm... you've linked in the OSX system one from /System/Library, instead of using the one from macports? Macports stays away from using system libraries for a variety of reasons (http://trac.macports.org/wiki/FAQ#ownlibs).

So, in this case, if you were going to try to solve the problem with links, I would be linking to /opt/local/lib/perl5/vendor_perl/5.10.1/darwin-multi-2level/XML/Parser.pm but again, making links willy-nilly isn't really best.

Is expat installed correctly?

comment:13 Changed 14 years ago by sewebster@…

Actually, I think my asking about expat is likely premature, since the only reason expat even seems to come up is through your links outside the macports tree. What is the output of

port installed | grep perl

It seems to me that your "problem" is that you've somehow got files in a perl5.10 directory when they should be in a perl5.8 directory, which is where the system expects to find them.

comment:14 Changed 14 years ago by 73w3sz@…

Thanks for your help, Scott!

As to how this all came about, I had been previously running perl 5.10 but then a piece of software's instructions indicated that it needed 5.8.9, not 5.10 so I deactivated 5.10 and reactivated 5.8.9 using MacPorts to do so. That is why there are both perl 5.8.9 and perl 10.1 directories and why I am using 5.8.9 and not 5.10. I did NOT touch these directories.

More info below:

All the files in the 5.10 directories are also in the 5.8.9 directories.

5.8.9 dir /opt/local/var/macports/software/p5-xml-parser/2.36_0/opt/local/lib/perl5/vendor_perl/5.8.9/darwin-2level/XMLParser Parser.pm dir /opt/local/var/macports/software/p5-xml-parser/2.36_0/opt/local/lib/perl5/vendor_perl/5.8.9/darwin-2level/XML/ParserEncodings Expat.pm LWPExternEnt.pl Style

5.10.1 dir /opt/local/var/macports/software/p5-xml-parser/2.36_0+universal/opt/local/lib/perl5/vendor_perl/5.10.1/darwin-multi-2level/XML Parser Parser.pm

dir /opt/local/var/macports/software/p5-xml-parser/2.36_0+universal/opt/local/lib/perl5/vendor_perl/5.10.1/darwin-multi-2level/XML/Parser Encodings Expat.pm LWPExternEnt.pl Style

I get:

$ port installed | grep perl

p5-libintl-perl @1.16_0+universal (active) p5-libwww-perl @5.836_0 (active) p5-libxml-perl @0.08_0 (active) perl5 @5.8.9_0 (active) perl5.10 @5.10.1_1 perl5.8 @5.8.9_3 perl5.8 @5.8.9_3+universal (active) swig-perl @2.0.0_0 (active)

I linked the missing Parser.pm and Expat.pm files to the proper ones in the /opt/local/var/macports/software/p5-xml-parser/2.36_0/opt/local/lib/perl5/vendor_perl/5.8.9/darwin-2level/XML directory and I still get the same error: Can't find 'boot_XMLParserExpat' symbol in /usr/local/lib/libExpat.dylib at /opt/local/lib/perl5/vendor_perl/5.8.9/XML/Parser.pm line 14

I agree absolutely that the 'hacking' I am doing to try to fix the problem is not ideal. Sometimes doing so helps me to understand what is going on. But it is NOT a long term fix, and in this case it didn't help me.

comment:15 Changed 14 years ago by sewebster@…

Ok. Well, I would try uninstalling some stuff. For instance, maybe get rid of perl5.10 if you don't need it. Then I would probably uninstall p5-xml-parser and reinstall it. Hopefully this will put it into the right place and all will be well.

I would probably remove whatever links you've made first so that macports will be sure to install the new versions (though probably it would anyway). Also, you may have to use the -f switch to force macports to uninstall active ports when they have dependents. This should be ok if you reinstall it right after.

Note that everything in /opt/local/var/macports/software is not really "installed," or perhaps more accurately, "activated." So it is not being used. Macports "destroots" things into that directory and then only links the files into the main /opt/local tree when they are activated. So despite you having the file in a 5.8.9 directory on your system, it is not being used from there.

comment:16 Changed 14 years ago by 73w3sz@…

Thanks, Scott!

Your suggestion fixed it...I removed new symbolic links, then removed perl 5.10.1, forced uninstall of p5-xml-parser, reinstalled p5-xml-parser...then was able to reinstall policykit and upgrade all files without error.

Everything is back to normal!

Thanks again!

comment:17 Changed 14 years ago by mf2k (Frank Schima)

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.