Opened 13 years ago

Closed 13 years ago

#28008 closed defect (worksforme)

gnuplot: library not found for -lpng12

Reported by: macubergeek@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: png Cc:
Port: gnuplot

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Scapy won't install

see below errors and log file

Errors:

Script started on Mon Jan 17 12:02:52 2011
jamesk@HOME~/Desktop-> sudo prot [K[K[K[Kort install scapy
--->  Computing dependencies for scapy

--->  Dependencies to be installed: py25-gnuplot gnuplot py25-numpy atlas gcc44 gmp mpfr gzip texinfo xz fftw-3 py25-nose py25-distribute py25-libdnet libdnet py25-pylibpcap libpcap swig-python bison gsed python_select swig pcre py25-pyx texlive texlive-basic texlive-bin libzzip xmlto coreutils docbook-xml docbook-xml-4.1.2 xmlcatmgr docbook-xml-4.2 docbook-xml-4.3 docbook-xml-4.4 docbook-xml-4.5 docbook-xml-5.0 docbook-xsl findutils fop getopt openmotif xbitmaps xorg-libXp xorg-printproto poppler curl curl-ca-bundle gtk2 atk gtk-doc gnome-doc-utils intltool gnome-common p5-getopt-long p5-pathtools p5-scalar-list-utils p5-xml-parser iso-codes py27-libxml2 python27 rarian gdk-pixbuf2 jasper shared-mime-info xorg-libXdamage xorg-damageproto openjpeg poppler-data t1lib texlive-common texlive-documentation-base texlive-bin-extra detex latexdiff latexmk texlive-latex pdfjam texlive-latex-recommended pgf texlive-context texlive-metapost texlive-xetex texlive-generic-recommended texlive-latex3 texlive-documentation-english texlive-fonts-recommended texlive-fontutils texlive-lang-czechslovak texlive-lang-dutch texlive-lang-english texlive-lang-french texlive-lang-german texlive-lang-italian texlive-lang-polish texlive-lang-portuguese texlive-lang-spanish texlive-luatex texlive-math-extra py25-readline

--->  Building gnuplot

Error: Target org.macports.build returned: shell command failed (see log for details)

Error: Failed to install gnuplot

Log for gnuplot is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_math_gnuplot/main.log

Error: The following dependencies were not installed: py25-gnuplot gnuplot py25-numpy atlas gcc44 gmp mpfr gzip texinfo xz fftw-3 py25-nose py25-distribute py25-libdnet libdnet py25-pylibpcap libpcap swig-python bison gsed python_select swig pcre py25-pyx texlive texlive-basic texlive-bin libzzip xmlto coreutils docbook-xml docbook-xml-4.1.2 xmlcatmgr docbook-xml-4.2 docbook-xml-4.3 docbook-xml-4.4 docbook-xml-4.5 docbook-xml-5.0 docbook-xsl findutils fop getopt openmotif xbitmaps xorg-libXp xorg-printproto poppler curl curl-ca-bundle gtk2 atk gtk-doc gnome-doc-utils intltool gnome-common p5-getopt-long p5-pathtools p5-scalar-list-utils p5-xml-parser iso-codes py27-libxml2 python27 rarian gdk-pixbuf2 jasper shared-mime-info xorg-libXdamage xorg-damageproto openjpeg poppler-data t1lib texlive-common texlive-documentation-base texlive-bin-extra detex latexdiff latexmk texlive-latex pdfjam texlive-latex-recommended pgf texlive-context texlive-metapost texlive-xetex texlive-generic-recommended texlive-latex3 texlive-documentation-english texlive-fonts-recommended texlive-fontutils texlive-lang-czechslovak texlive-lang-dutch texlive-lang-english texlive-lang-french texlive-lang-german texlive-lang-italian texlive-lang-polish texlive-lang-portuguese texlive-lang-spanish texlive-luatex texlive-math-extra py25-readline

Error: Status 1 encountered during processing.

To report a bug, see <http://guide.macports.org/#project.tickets>

jamesk@HOME~/Desktop-> d
jamesk@HOME~/Desktop-> cp /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_math_gnuplot/main.log .
jamesk@HOME~/Desktop-> 

————————————log file————————————

version:1
:debug:main Executing org.macports.main (gnuplot)
:debug:main Skipping completed org.macports.fetch (gnuplot)
:debug:main Skipping completed org.macports.checksum (gnuplot)
:debug:main Skipping completed org.macports.extract (gnuplot)
:debug:main Skipping completed org.macports.patch (gnuplot)
:debug:main Skipping completed org.macports.configure (gnuplot)
:msg:main --->  Building gnuplot
:debug:build build phase started at Mon Jan 17 12:03:57 EST 2011
:debug:build Executing org.macports.build (gnuplot)
:debug:build Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_math_gnuplot/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.6'
:debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_math_gnuplot/work/gnuplot-4.4.2" && /usr/bin/make -j4 all'
:info:build /usr/bin/make  all-recursive
:info:build Making all in config
:info:build make[2]: Nothing to be done for `all'.
:info:build Making all in m4
:info:build make[2]: Nothing to be done for `all'.
:info:build Making all in term
:info:build make[2]: Nothing to be done for `all'.
:info:build Making all in src
:info:build Making all in wxterminal
:info:build make[3]: Nothing to be done for `all'.
:info:build /usr/bin/g++-4.2  -pipe -O2 -arch x86_64  -L/opt/local/lib -arch x86_64 -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -o gnuplot alloc.o axis.o binary.o breaders.o bitmap.o color.o command.o contour.o datafile.o dynarray.o eval.o fit.o gadgets.o getcolor.o graph3d.o graphics.o help.o hidden3d.o history.o internal.o interpol.o matrix.o misc.o mouse.o parse.o plot.o plot2d.o plot3d.o pm3d.o readline.o save.o scanner.o set.o show.o specfun.o standard.o stdfn.o tables.o tabulate.o term.o time.o unset.o util.o util3d.o variable.o version.o   -lreadline  -lncurses  -lz -lgd -lXpm -lX11 -ljpeg -lfontconfig -lfreetype -lpng12 -lz -liconv -ljpeg -lpdf   -lreadline -lreadline -lreadline -lreadline -laquaterm  -framework Foundation
:info:build ld: library not found for -lpng12
:info:build collect2: ld returned 1 exit status
:info:build make[3]: *** [gnuplot] Error 1
:info:build make[2]: *** [all-recursive] Error 1
:info:build make[1]: *** [all-recursive] Error 1
:info:build make: *** [all] Error 2
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_math_gnuplot/work/gnuplot-4.4.2" && /usr/bin/make -j4 all " returned error 2
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for gnuplot): org.macports.activate org.macports.build org.macports.destroot org.macports.install
:error:build Failed to install gnuplot
:notice:build Log for gnuplot is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_math_gnuplot/main.log

Change History (6)

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: png added
Milestone: MacPorts 2.0.0
Port: gnuplot added
Summary: Scapy won't installgnuplot: library not found for -lpng12

comment:2 Changed 13 years ago by jmroot (Joshua Root)

Works for me. Try cleaning first; even if it fails you'll then have a complete log.

comment:3 in reply to:  1 Changed 13 years ago by Russell-Jones-OxPhys (Russell Jones)

Try port upgrade outdated. I've had it fail similarly on a system where the upgrade of emacs was pending. That gave the following error near the end of main.log for gnuplot.

:info:build ./doc2gih ./gnuplot.doc gnuplot.gih
:info:build Making all in lisp
:info:build emacs -batch -q -no-site-file -l ./dot.el -f batch-byte-compile gnup
lot.el:info:build emacs -batch -q -no-site-file -l ./dot.el -f batch-byte-compile gnuplot-gui.el
:info:build dyld: Library not loaded: /opt/local/lib/libpng12.0.dylib:info:build   Referenced from: /opt/local/bin/emacs
:info:build   Reason: image not found
:info:build dyld: Library not loaded: /opt/local/lib/libpng12.0.dylib
:info:build   Referenced from: /opt/local/bin/emacs
:info:build   Reason: image not found
:info:build make[2]: *** [gnuplot-gui.elc] Trace/BPT trap
:info:build make[2]: *** Waiting for unfinished jobs....
:info:build make[2]: *** [gnuplot.elc] Trace/BPT trap:info:build make[1]: *** [all-recursive] Error 1
:info:build make: *** [all] Error 2 

comment:4 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

emacs received a revbump in r75173 which should have taken care of that. "sudo port selfupdate" and try again?

comment:5 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Or perhaps, as reported in #27996, it's that gnuplot uses but does not declare a dependency on emacs, therefore MacPorts wouldn't know to upgrade emacs before gnuplot. Upgrade emacs first, then gnuplot.

comment:6 Changed 13 years ago by jmroot (Joshua Root)

Resolution: worksforme
Status: newclosed

Closing given the lack of a complete log.

Note: See TracTickets for help on using tickets.