gtk2 fails to build

Thomas trg818 at gmail.com
Fri Jul 6 06:58:33 PDT 2012


On Fri, Jul 6, 2012 at 3:39 AM, Ryan Schmidt <ryandesign at macports.org>wrote:

> I Googled the error message and got this:
> http://forums.gentoo.org/viewtopic-p-6375954.html
>
> It suggests that although you have libpng 1.4.11 installed, perhaps some
> of the other ports you have installed that need libpng have not been
> rebuilt and are still linking with the old libpng 1.2.x. Does that seem
> possible? We upgraded to libpng 1.4.x a long time ago in MacPorts so you
> really shouldn't have anything left using libpng 1.2.x.
>
Some time ago, while (unsuccessfully) trying to build another program from
sources by hand, I had fiddled with libpng12 and libpng15, and it turns out
that those were still there in some form in addition to libpng14. Now I
removed them - and broke some more packages in the process.
It turns out that openjpeg, which I have installed, needs libpng15, because
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_openjpeg/openjpeg/main.log
includes the following error:
:info:build   CCLD   j2k_to_image
:info:build ld: library not found for -lpng15
:info:build collect2: ld returned 1 exit status
:info:build make[3]: *** [j2k_to_image] Error 1

However, there is no port for libpng15 (which makes me wonder how my old,
now broken openjpeg was installed).

> We have a script floating around somewhere to help you find things still
> linked with old libpng. Actually, these days rev-upgrade should find and
> rebuild them automatically. What happens if you run:
> sudo port rev-upgrade
>
The reason for rebuilding gtk2 was apparently that some files or links were
broken, I have seen that in my previous attempts when the automatic
self-check ran. However, as far as I can see, rev-upgrade does the same
stuff as my previous attempts, and fails for the same reason (I did this
before fiddling with libpng and openjpeg as described above):
--->  Updating database of binaries: 100.0%
--->  Scanning binaries for linking errors: 100.0%
--->  Found 75 broken file(s), matching files to ports
--->  Found 2 broken port(s), determining rebuild order
--->  Rebuilding in order
     gtk2 @2.24.8 +x11
     llvm-3.0 @3.0
--->  Computing dependencies for gtk2
--->  Building gtk2
Error: org.macports.build for port gtk2 returned: command execution failed
Please see the log file for port gtk2 for details:

/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gnome_gtk2/gtk2/main.log
Error: Unable to upgrade port: 1
Error rebuilding gtk2
    while executing
"error "Error rebuilding $portname""
    (procedure "revupgrade_scanandrebuild" line 370)
    invoked from within
"revupgrade_scanandrebuild broken_port_counts $opts"
    (procedure "macports::revupgrade" line 5)
    invoked from within
"macports::revupgrade $opts"
    (procedure "action_revupgrade" line 2)
    invoked from within
"$action_proc $action $portlist [array get global_options]"
    (procedure "process_cmd" line 95)
    invoked from within
"process_cmd $remaining_args"
    invoked from within
"if { [llength $remaining_args] > 0 } {

    # If there are remaining arguments, process those as a command
    set exit_status [process_cmd $remaining..."
    (file "/opt/local/bin/port" line 4784)

After fiddling with the png and jpeg libs there were more checks:
--->  Found 121 broken file(s), matching files to ports
--->  Found 5 broken port(s), determining rebuild order
--->  Rebuilding in order
     llvm-3.0 @3.0
     ffmpeg @0.7.11
     poppler @0.18.4 +qt4+quartz
     gdk-pixbuf2 @2.26.1
     gtk2 @2.24.8 +x11
so the order of llvm and gtk2 in this list was reversed. llvm was compiled
and installed correctly, it seems, but then the compilation of ffmpeg
failed because of the problems with openjpeg described at the beginning.
The more I struggle, the deeper I seem to think into the quagmire.

Here's a list of all the ports I currently have on my system:
  apr @1.4.6_1 (active)
  apr-util @1.4.1_0 (active)
  aquaterm @1.0.1_5 (active)
  atk @2.2.0_1 (active)
  autoconf @2.69_0 (active)
  automake @1.12.1_0 (active)
  bzip2 @1.0.6_0 (active)
  cairo @1.12.2_0+x11 (active)
  cctools-headers @822_2 (active)
  cmake @2.8.7_0 (active)
  coreutils @8.15_0 (active)
  cppunit @1.12.1_0 (active)
  curl @7.26.0_0+ssl (active)
  curl-ca-bundle @7.26.0_1 (active)
  cyrus-sasl2 @2.1.25_1+kerberos (active)
  db46 @4.6.21_6+java (active)
  dblatex @0.3.2_0+python27 (active)
  dbus @1.4.20_1+startupitem (active)
  dejavu-fonts @2.33_0 (active)
  detex @2.8_1 (active)
  dirac @1.0.2_1 (active)
  docbook-xml @5.0_0 (active)
  docbook-xml-4.1.2 @4.1.2_1 (active)
  docbook-xml-4.2 @4.2_0 (active)
  docbook-xml-4.3 @4.3_0 (active)
  docbook-xml-4.4 @4.4_0 (active)
  docbook-xml-4.5 @4.5_0 (active)
  docbook-xml-5.0 @5.0_0 (active)
  docbook-xsl @1.76.1_0 (active)
  dvipng @1.14_2 (active)
  dyld-headers @195.6_1 (active)
  expat @2.1.0_0 (active)
  faac @1.28_2 (active)
  faad2 @2.7_0 (active)
  ffmpeg @0.7.11_1 (active)
  fftw-3 @3.3.1_0 (active)
  file @5.09_0 (active)
  findutils @4.4.2_1 (active)
  flac @1.2.1_1 (active)
  flex @2.5.35_1 (active)
  fontconfig @2.9.0_1 (active)
  fontforge @20110222_1 (active)
  fop @1.0_1 (active)
  freetype @2.4.10_0 (active)
  gd2 @2.0.35_12 (active)
  gdbm @1.10_1 (active)
  gdk-pixbuf2 @2.26.1_1 (active)
  getopt @1.1.4_1 (active)
  gettext @0.18.1.1_2 (active)
  ghostscript @9.05_2 (active)
  giflib @4.1.6_1 (active)
  glib2 @2.32.3_1 (active)
  gmake @3.82_0 (active)
  gmp @5.0.4_0 (active)
  gnome-common @2.28.0_0 (active)
  gnome-doc-utils @0.20.6_0+python27 (active)
  gnuplot @4.6.0_0+luaterm+pangocairo (active)
  gperf @3.0.4_2 (active)
  groff @1.21_2 (active)
  gtk-doc @1.18_0+python27 (active)
  gtk2 @2.24.8_1+x11 (active)
  guile @1.8.7_3 (active)
  help2man @1.40.10_0 (active)
  hicolor-icon-theme @0.12_0 (active)
  ImageMagick @6.7.8-0_0+perl+q16 (active)
  intltool @0.50.2_0 (active)
  iso-codes @3.29_0 (active)
  jasper @1.900.1_9 (active)
  jbig2dec @0.11_1 (active)
  jbigkit @2.0_2 (active)
  jpeg @8d_0 (active)
  kerberos5 @1.7.2_0 (active)
  lame @3.99_1 (active)
  latexdiff @0.5_1 (active)
  latexmk @4.31_0 (active)
  lcms @1.19_2 (active)
  lcms2 @2.3_0 (active)
  libao @1.1.0_0 (active)
  libedit @20120601-3.0_0 (active)
  libffi @3.0.11_0 (active)
  libiconv @1.14_0 (active)
  libid3tag @0.15.1b_2 (active)
  libidn @1.25_0 (active)
  liblzma @5.0.3_0
  libmad @0.15.1b_2 (active)
  libmng @1.0.10_2 (active)
  libmp4v2 @1.5.0.1_0 (active)
  libogg @1.3.0_1 (active)
  liboil @0.3.15_0 (active)
  libpaper @1.1.24_0 (active)
  libpixman @0.26.2_0 (active)
  libpng @1.4.11_0 (active)
  libsamplerate @0.1.7_2 (active)
  libsdl @1.2.15_0+x11 (active)
  libsdl_mixer @1.2.8_1 (active)
  libsndfile @1.0.25_0 (active)
  libtheora @1.1.1_1 (active)
  libtool @2.4.2_2 (active)
  libuninameslist @20091231_0 (active)
  libunwind-headers @30_2 (active)
  libvorbis @1.3.2_1 (active)
  libvpx @1.0.0_0 (active)
  libxml2 @2.7.8_0 (active)
  libxslt @1.1.26_0 (active)
  libzzip @0.13.62_0 (active)
  lilypond @2.14.2_1+python27 (active)
  llvm-3.0 @3.0_4
  llvm-3.0 @3.0_5 (active)
  llvm_select @0.2_0 (active)
  lua @5.1.4_4 (active)
  m4 @1.4.16_0 (active)
  mftrace @1.2.16_1 (active)
  ncurses @5.9_1 (active)
  ncursesw @5.8_0 (active)
  neon @0.29.6_1 (active)
  netpbm @10.47.37_0 (active)
  nosetests_select @0.1_0 (active)
  openssl @1.0.1c_0 (active)
  orc @0.4.16_0 (active)
  p5-term-readkey @2.30_0 (active)
  p5-tk @804.028_0 (active)
  p5.12-getopt-long @2.380.0_2 (active)
  p5.12-locale-gettext @1.50.0_7 (active)
  p5.12-pathtools @3.330.0_2 (active)
  p5.12-scalar-list-utils @1.230.0_2 (active)
  p5.12-xml-parser @2.400.0_3 (active)
  pango @1.30.1_0+x11 (active)
  pdfjam @2.08_0 (active)
  pdflib @7.0.5_1 (active)
  perl5 @5.12.4_0+perl5_12 (active)
  perl5.12 @5.12.4_1 (active)
  pgf @2.10_0 (active)
  pkgconfig @0.26_1 (active)
  poppler @0.18.4_5+qt4+quartz (active)
  poppler-data @0.4.5_0 (active)
  portaudio @19.20111121_2 (active)
  portmidi @217_1 (active)
  potrace @1.9_1 (active)
  psutils @p17_1 (active)
  py26-distribute @0.6.26_0 (active)
  py26-nose @1.1.2_2 (active)
  py26-numpy @1.6.1_1 (active)
  py26-pil @1.1.7_4 (active)
  py26-pyqt4 @4.9.1_0 (active)
  py26-pyqwt @5.2.0_2+qwt52 (active)
  py26-sip @4.13.2_0 (active)
  py26-tkinter @2.6.8_0 (active)
  py27-libxml2 @2.7.8_0 (active)
  python26 @2.6.8_0 (active)
  python27 @2.7.3_0 (active)
  python_select @0.3_1 (active)
  qt4-mac @4.8.2_0+quartz (active)
  qwt52 @5.2.1_2+qt4 (active)
  rarian @0.8.1_0 (active)
  readline @6.2.000_0 (active)
  recode @3.6_3 (active)
  sbcl @1.0.29_1+darwin_9_i386+html (active)
  schroedinger @1.0.11_0 (active)
  serf1 @1.1.0_0 (active)
  shared-mime-info @1.0_0 (active)
  smpeg @0.4.4_8 (active)
  sox @14.3.2_0 (active)
  speex @1.2rc1_0 (active)
  sqlite3 @3.7.13_0 (active)
  subversion @1.7.5_0 (active)
  SuiteSparse @3.4.0_3 (active)
  t1lib @5.1.2_2 (active)
  t1utils @1.37_0 (active)
  tcl @8.5.6_0 (active)
  texi2html @5.0_0 (active)
  texinfo @4.13_2 (active)
  texlive @2011_0+doc+medium (active)
  texlive-basic @23152_1+doc (active)
  texlive-bin @2011_5+x11 (active)
  texlive-bin-extra @23089_1+doc (active)
  texlive-common @2011_0 (active)
  texlive-context @23171_0+doc (active)
  texlive-documentation-base @23160_0+doc (active)
  texlive-documentation-english @22612_0+doc (active)
  texlive-fonts-recommended @23165_0+doc (active)
  texlive-fontutils @23142_0+doc (active)
  texlive-generic-recommended @23088_0+doc (active)
  texlive-lang-czechslovak @23092_0+doc (active)
  texlive-lang-dutch @23092_0+doc (active)
  texlive-lang-english @23092_0+doc (active)
  texlive-lang-french @23092_0+doc (active)
  texlive-lang-german @23085_0+doc (active)
  texlive-lang-italian @23092_0+doc (active)
  texlive-lang-polish @23092_0+doc (active)
  texlive-lang-portuguese @23092_0+doc (active)
  texlive-lang-spanish @23092_0+doc (active)
  texlive-latex @23089_0+doc (active)
  texlive-latex-extra @22931_0+doc (active)
  texlive-latex-recommended @23089_0+doc (active)
  texlive-luatex @23137_0+doc (active)
  texlive-math-extra @23089_0+doc (active)
  texlive-metapost @23089_0+doc (active)
  texlive-pictures @22961_1+doc (active)
  texlive-xetex @23080_0+doc (active)
  tiff @3.9.5_0 (active)
  tk @8.5.6_1 (active)
  urw-fonts @1.0.7pre44_0 (active)
  wavpack @4.60.1_0 (active)
  webp @0.1.3_0 (active)
  wxWidgets @2.8.12_0 (active)
  x264 @20111210_0 (active)
  Xft2 @2.3.0_0 (active)
  xmlcatmgr @2.2_1 (active)
  xmlto @0.0.25_0 (active)
  xorg-bigreqsproto @1.1.2_0 (active)
  xorg-compositeproto @0.4.2_0 (active)
  xorg-damageproto @1.2.1_0 (active)
  xorg-fixesproto @5.0_0 (active)
  xorg-inputproto @2.2_0 (active)
  xorg-kbproto @1.0.6_0 (active)
  xorg-libice @1.0.8_0 (active)
  xorg-libpthread-stubs @0.3_0 (active)
  xorg-libsm @1.2.1_0 (active)
  xorg-libX11 @1.5.0_0 (active)
  xorg-libXau @1.0.7_0 (active)
  xorg-libXaw @1.0.11_0 (active)
  xorg-libxcb @1.8.1_2+python27 (active)
  xorg-libXcomposite @0.4.3_0 (active)
  xorg-libXcursor @1.1.13_0 (active)
  xorg-libXdamage @1.1.3_0 (active)
  xorg-libXdmcp @1.1.1_0 (active)
  xorg-libXext @1.3.1_0 (active)
  xorg-libXfixes @5.0_0 (active)
  xorg-libXi @1.6.0_1 (active)
  xorg-libXinerama @1.1.2_0 (active)
  xorg-libxkbfile @1.0.8_0 (active)
  xorg-libxkbui @1.0.2_0 (active)
  xorg-libXmu @1.1.1_0 (active)
  xorg-libXp @1.0.1_0 (active)
  xorg-libXrandr @1.3.2_0 (active)
  xorg-libXScrnSaver @1.1.3_0 (active)
  xorg-libXt @1.1.3_0 (active)
  xorg-printproto @1.0.5_0 (active)
  xorg-randrproto @1.3.2_0 (active)
  xorg-renderproto @0.11.1_0 (active)
  xorg-scrnsaverproto @1.1.0_0 (active)
  xorg-util-macros @1.17_0 (active)
  xorg-xcb-proto @1.7.1_0+python27 (active)
  xorg-xcb-util @0.3.9_0 (active)
  xorg-xcmiscproto @1.2.2_0 (active)
  xorg-xextproto @7.2.1_0 (active)
  xorg-xf86bigfontproto @1.2.0_0 (active)
  xorg-xineramaproto @1.2.1_0 (active)
  xorg-xproto @7.0.23_0 (active)
  xorg-xtrans @1.2.7_0 (active)
  xpm @3.5.10_0 (active)
  xrender @0.9.7_0 (active)
  XviD @1.3.2_2 (active)
  xz @5.0.4_0 (active)
  yasm @1.1.0_0 (active)
  zlib @1.2.7_0 (active)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20120706/ec406169/attachment.html>


More information about the macports-users mailing list