A missing dependency for ports-mgmt/packagekit ?
Kevin Oberman
oberman at es.net
Mon Feb 28 17:00:10 UTC 2011
> Date: Mon, 28 Feb 2011 10:46:38 +0100
> From: Jesper Wallin <jesper at ifconfig.se>
> Sender: owner-freebsd-gnome at freebsd.org
>
> I'm not quite sure where to report this, so if this is the wrong place,
> my apologies...
>
>
> I'm trying to update PackageKit from 0.6.11 to 0.6.11_1 via ports and
> the installation fails with the following message/error:
>
> -- snip --
> CC pk_socket_example-pk-socket-example.o
> CCLD pk-socket-example
> GISCAN PackageKitGlib-1.0.gir
> /usr/include/machine/endian.h:123: syntax error, unexpected '{' in '
> return (__extension__ ({ register __uint64_t __X = (_x); __asm ("bswap
> %0" : "+r" (__X)); __X; }));' at '{'
> /usr/include/machine/endian.h:123: syntax error, unexpected ';' in '
> return (__extension__ ({ register __uint64_t __X = (_x); __asm ("bswap
> %0" : "+r" (__X)); __X; }));' at ';'
> /usr/include/machine/endian.h:130: syntax error, unexpected '{' in '
> return (__extension__ ({ register __uint32_t __X = (_x); __asm ("bswap
> %0" : "+r" (__X)); __X; }));' at '{'
> /usr/include/machine/endian.h:130: syntax error, unexpected ';' in '
> return (__extension__ ({ register __uint32_t __X = (_x); __asm ("bswap
> %0" : "+r" (__X)); __X; }));' at ';'
> /usr/lib/libarchive.so: undefined reference to `lzma_stream_encoder at XZ_5.0'
> /usr/lib/libarchive.so: undefined reference to `lzma_alone_decoder at XZ_5.0'
> /usr/lib/libarchive.so: undefined reference to `lzma_memusage at XZ_5.0'
> /usr/lib/libarchive.so: undefined reference to `lzma_stream_decoder at XZ_5.0'
> /usr/lib/libarchive.so: undefined reference to `lzma_code at XZ_5.0'
> /usr/lib/libarchive.so: undefined reference to `lzma_end at XZ_5.0'
> /usr/lib/libarchive.so: undefined reference to `lzma_lzma_preset at XZ_5.0'
> /usr/lib/libarchive.so: undefined reference to `lzma_alone_encoder at XZ_5.0'
> Traceback (most recent call last):
> File "/usr/local/bin/g-ir-scanner", line 45, in <module>
> sys.exit(scanner_main(sys.argv))
> File "/usr/local/lib/gobject-introspection/giscanner/scannermain.py",
> line 405, in scanner_main
> shlibs = create_binary(transformer, options, args)
> File "/usr/local/lib/gobject-introspection/giscanner/scannermain.py",
> line 309, in create_binary
> gdump_parser.get_get_type_functions())
> File "/usr/local/lib/gobject-introspection/giscanner/dumper.py", line
> 238, in compile_introspection_binary
> return dc.run()
> File "/usr/local/lib/gobject-introspection/giscanner/dumper.py", line
> 140, in run
> self._link(bin_path, o_path)
> File "/usr/local/lib/gobject-introspection/giscanner/dumper.py", line
> 233, in _link
> subprocess.check_call(args)
> File "/usr/local/lib/python2.6/subprocess.py", line 488, in check_call
> raise CalledProcessError(retcode, cmd)
> subprocess.CalledProcessError: Command '['/bin/sh', '../../libtool',
> '--mode=link', '--tag=CC', '--silent', 'cc', '-o',
> '/usr/ports/ports-mgmt/packagekit/work/PackageKit-0.6.11/lib/packagekit-glib2/tmp-introspectHj2jdU/PackageKitGlib-1.0',
> '-export-dynamic', '-O2', '-fno-strict-aliasing', '-pipe',
> '-march=nocona', '-L.', '-L/usr/local/lib', 'libpackagekit-glib2.la',
> '-pthread', '-L/usr/local/lib', '-lgio-2.0', '-lgobject-2.0',
> '-lgmodule-2.0', '-lgthread-2.0', '-lglib-2.0',
> '/usr/ports/ports-mgmt/packagekit/work/PackageKit-0.6.11/lib/packagekit-glib2/tmp-introspectHj2jdU/PackageKitGlib-1.0.o']'
> returned non-zero exit status 1
> gmake[4]: *** [PackageKitGlib-1.0.gir] Error 1
> gmake[4]: Leaving directory
> `/usr/ports/ports-mgmt/packagekit/work/PackageKit-0.6.11/lib/packagekit-glib2'
> gmake[3]: *** [all] Error 2
> gmake[3]: Leaving directory
> `/usr/ports/ports-mgmt/packagekit/work/PackageKit-0.6.11/lib/packagekit-glib2'
> gmake[2]: *** [all-recursive] Error 1
> gmake[2]: Leaving directory
> `/usr/ports/ports-mgmt/packagekit/work/PackageKit-0.6.11/lib'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory
> `/usr/ports/ports-mgmt/packagekit/work/PackageKit-0.6.11'
> gmake: *** [all] Error 2
> *** Error code 1
>
> Stop in /usr/ports/ports-mgmt/packagekit.
> *** Error code 1
>
> Stop in /usr/ports/ports-mgmt/packagekit.
> -- /snip --
>
>
> I'm no developer but noticed that it uses /usr/lib/libarchive.so and
> thought I'd give archivers/libarchive a try, which seems to solve this
> issue. Perhaps a dependency is missing here? Either way, I thought I'd
> report it at least. :-)
>
>
> Regards,
> Jesper Wallin
> _______________________________________________
> freebsd-gnome at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-gnome
> To unsubscribe, send any mail to "freebsd-gnome-unsubscribe at freebsd.org"
>
I have had the same error on one of my systems for for 0.6.11. Last
week I re-installed all ports (which took a while), and the problem
vanished.
I am baffled as libarchive and liblzma are in the base system, not
ports. All I know is that I was unable to build 0.6.11 on that system,
though it worked on all of my other systems. Rebuilding libarchive and
liblzma did not help. Only re-installing ports fixed it.
I just upgraded to 0.6.11_1 and it went fine.
--
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: oberman at es.net Phone: +1 510 486-8634
Key fingerprint:059B 2DDF 031C 9BA3 14A4 EADA 927D EBB3 987B 3751
More information about the freebsd-gnome
mailing list