Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#48826 closed defect (fixed)

gnuplot: build failure with lua 5.3

Reported by: rbsrg@… Owned by: mojca (Mojca Miklavec)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: mndavidoff (Monte Davidoff), rlserrano2002@…, si.chen@…, dstrubbe (David Strubbe), tenomoto (Takeshi Enomoto)
Port: gnuplot

Description (last modified by mojca (Mojca Miklavec))

Hello, i have installed x 11, xcode, xcode command line tools and macport taken the steps needed to succesfully install gnuplot, but the install process terminates every time with

/usr/bin/clang++  -pipe -Os -arch x86_64 -stdlib=libc++ -I/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/lib/wx/include/osx_cocoa-unicode-3.0 -I/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__  -D_REENTRANT -I/opt/local/include/pango-1.0 -I/opt/local/include/cairo -I/opt/local/include/pixman-1 -I/opt/local/include/libpng16 -I/opt/local/include -I/opt/local/include/pango-1.0 -I/opt/local/include/harfbuzz -I/opt/local/include -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/libpng16 -I/opt/local/include -I/opt/local/include/freetype2   -L/opt/local/lib -Wl,-rpath -Wl,/opt/local/lib -L/opt/local/lib -Wl,-headerpad_max_install_names -F/opt/local/Library/Frameworks -arch x86_64 -L/opt/local/lib -lcerf  -framework Foundation -framework AquaTerm -L/opt/local/lib -o gnuplot alloc.o axis.o breaders.o boundary.o color.o command.o contour.o datablock.o datafile.o dynarray.o eval.o external.o fit.o gadgets.o getcolor.o graph3d.o graphics.o help.o hidden3d.o history.o internal.o interpol.o libcerf.o matrix.o misc.o mouse.o multiplot.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 stats.o stdfn.o tables.o tabulate.o term.o time.o unset.o util.o util3d.o variable.o version.o wxterminal/wxt_gui.o wxterminal/gp_cairo.o wxterminal/gp_cairo_helpers.o   -lreadline  -lncurses  -lz -L/opt/local/lib -llua -lm  -lcaca  -L/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/lib   -framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL -lwx_osx_cocoau_xrc-3.0 -lwx_osx_cocoau_webview-3.0 -lwx_osx_cocoau_html-3.0 -lwx_osx_cocoau_qa-3.0 -lwx_osx_cocoau_adv-3.0 -lwx_osx_cocoau_core-3.0 -lwx_baseu_xml-3.0 -lwx_baseu_net-3.0 -lwx_baseu-3.0  -L/opt/local/lib -lpangocairo-1.0 -lcairo -lpangoft2-1.0 -lpango-1.0 -lm -lgobject-2.0 -lglib-2.0 -lintl -lfontconfig -lfreetype   -lcaca  -L/opt/local/lib -lz -lpangocairo-1.0 -lcairo -lpangoft2-1.0 -lpango-1.0 -lm -lgobject-2.0 -lfontconfig -lfreetype -lglib-2.0 -lintl
Undefined symbols for architecture x86_64:
  "_luaL_checkint", referenced from:
      _LUA_GP_int_error in term.o
      _LUA_GP_int_warn in term.o
ld: symbol(s) not found for architecture x86_64

during the building gnuplot step. The main.log file is attached.

Attachments (1)

main.log (247.4 KB) - added by rbsrg@… 9 years ago.
main.log

Download all attachments as: .zip

Change History (19)

Changed 9 years ago by rbsrg@…

Attachment: main.log added

main.log

comment:1 Changed 9 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to mojca@…
Type: requestdefect

In the future, please Cc the port maintainers (port info --maintainers gnuplot), if any.

comment:2 Changed 9 years ago by mndavidoff (Monte Davidoff)

The problem seems to have been introduced by the upgrade to lua @5.3.1. This installation succeeds:

$ sudo port -vs install gnuplot -luaterm

comment:3 Changed 9 years ago by mndavidoff (Monte Davidoff)

Cc: md14-macports@… added

Cc Me!

comment:4 Changed 9 years ago by mojca (Mojca Miklavec)

Port: lua added
Version: 2.3.3

In that case we probably need a new lua52 port until upstream adapts.

comment:5 Changed 9 years ago by rbsrg@…

The problem has been solved and the installation of gnuplot was successful. Thanks a lot.

comment:6 Changed 9 years ago by mndavidoff (Monte Davidoff)

For a similar issue with wireshark and lua, see #48835.

comment:7 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: rlserrano2002@… added
Port: lua removed
Summary: gnuplot installation fails at "building gnuplot"gnuplot: build failure with lua 5.3

Has duplicate #48843.

comment:8 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: si.chen@… added

Has duplicate #48856.

comment:9 in reply to:  5 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to rbsrg@…:

The problem has been solved and the installation of gnuplot was successful.

How?

comment:10 in reply to:  8 Changed 9 years ago by si.chen@…

Replying to ryandesign@…:

Has duplicate #48856.

Sorry for the duplication, I didn't mean to. I red Ticket #48826 and had already tried everything I could find here yesterday before creating a new ticket today. It seems that the problem of Ticket #48826 has been solved, but it still doesn't work for me, could you please explain a little more, what should I do now to make gnuplot compiled correctly ? Thank you in advance for your help.

comment:11 Changed 9 years ago by mdeaudelin (Mathieu Deaudelin-Lemay)

In reply to comment:9:

The problem has been solved and the installation of gnuplot was successful.

How?

He likely built it without lua, as suggested in comment:2, as the problem remains for everyone else.

In reply to comment:10:

It seems that the problem of Ticket #48826 has been solved, but it still doesn't work for me, could you please explain a little more, what should I do now to make gnuplot compiled correctly ?

This ticket wasn't marked as fixed by the maintainers (you can see that in the header which still shows "new defect" instead of "closed fixed"). It is therefore preferable to keep all discussion in one place. In this case, only a workaround (installing without support for lua) was proposed in comment:2.

comment:12 in reply to:  11 Changed 9 years ago by si.chen@…

Replying to macports@…:

In reply to comment:9:

The problem has been solved and the installation of gnuplot was successful.

How?

He likely built it without lua, as suggested in comment:2, as the problem remains for everyone else.

In reply to comment:10:

It seems that the problem of Ticket #48826 has been solved, but it still doesn't work for me, could you please explain a little more, what should I do now to make gnuplot compiled correctly ?

This ticket wasn't marked as fixed by the maintainers (you can see that in the header which still shows "new defect" instead of "closed fixed"). It is therefore preferable to keep all discussion in one place. In this case, only a workaround (installing without support for lua) was proposed in comment:2.

Sorry for trouble you again, but I had already tried the solution in comment:2 for severals times and this is what I got:

sudo port -vs install gnuplot -luaterm

Error: Requested variants "+aquaterm+pangocairo+wxwidgets+x11" do not match original selection "+aquaterm+luaterm+pangocairo+wxwidgets+x11".
Please use the same variants again, perform 'port clean gnuplot' or specify the force option (-f).
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port gnuplot failed

And I had already done the clean thing before that.

I guess I will keep trying and keep you informed if it works. Thanks again.

Last edited 8 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:13 Changed 9 years ago by si.chen@…

Finally I figured out for my case : the use of "port clean gnuplot" was not enough before a new installation without luaterm (as suggested in comment:2).

I got the idea to uninstall completely gnuplot before a second try :

$ sudo port uninstall gnuplot 

and then

$ sudo port -vs install gnuplot -luaterm

and I got gnuplot compiled successfully on my Mac. It took me a while but I'm happy it works now.

Thanks agains for all your help.

Last edited 8 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:14 Changed 9 years ago by dstrubbe (David Strubbe)

Cc: dstrubbe@… added

Cc Me!

comment:15 Changed 9 years ago by mojca (Mojca Miklavec)

Cc: takeshi@… added

See also #46621.

comment:16 Changed 9 years ago by mojca (Mojca Miklavec)

Description: modified (diff)

comment:17 Changed 9 years ago by mojca (Mojca Miklavec)

Resolution: fixed
Status: newclosed

Fixed in r140264.

comment:18 Changed 9 years ago by mojca (Mojca Miklavec)

Has duplicate #48890.

Note: See TracTickets for help on using tickets.