Gnuplot
From charlesreid1
Installing
Mac Snow Leopard (OS X 10.6)
I installed gnuplot with the following configure line:
<source lang="bash"> ./configure \
--prefix=/Users/charles/pkg/gnuplot/4.4.3 \ --with-readline=/Users/charles/pkg/readline/6.1 \ --with-texdir=/Users/charles/Library/texmf/tex/latex/gnuplot \ CFLAGS="-I/Users/charles/pkg/readline/std/include -L/Users/charles/pkg/readline/std/lib" CXXFLAGS="-I/Users/charles/pkg/readline/std/include -L/Users/charles/pkg/readline/std/lib"
</source.
I initially experienced the following errors during the linking process:
ld: warning: in /fink/lib/libncurses.dylib, file was built for i386 which is not the architecture being linked (x86_64) ld: warning: in /System/Library/Frameworks//QuickTime.framework/QuickTime, missing required architecture x86_64 in file ld: warning: in /usr/lib/libwx_macud-2.8.dylib, missing required architecture x86_64 in file ld: warning: in /fink/lib/libpangocairo-1.0.dylib, file was built for i386 which is not the architecture being linked (x86_64) ld: warning: in /fink/lib/libpango-1.0.dylib, file was built for i386 which is not the architecture being linked (x86_64) ld: warning: in /fink/lib/libcairo.dylib, file was built for i386 which is not the architecture being linked (x86_64) ld: warning: in /fink/lib/libgobject-2.0.dylib, file was built for i386 which is not the architecture being linked (x86_64) ld: warning: in /fink/lib/libgmodule-2.0.dylib, file was built for i386 which is not the architecture being linked (x86_64) ld: warning: in /fink/lib/libglib-2.0.dylib, file was built for i386 which is not the architecture being linked (x86_64) ld: warning: in /fink/lib/libintl.dylib, file was built for i386 which is not the architecture being linked (x86_64) ld: warning: in /fink/lib/libgtk-x11-2.0.dylib, file was built for i386 which is not the architecture being linked (x86_64) ld: warning: in /fink/lib/libgdk-x11-2.0.dylib, file was built for i386 which is not the architecture being linked (x86_64) ld: warning: in /fink/lib/libatk-1.0.dylib, file was built for i386 which is not the architecture being linked (x86_64) ld: warning: in /fink/lib/libgio-2.0.dylib, file was built for i386 which is not the architecture being linked (x86_64) ld: warning: in /fink/lib/libpangoft2-1.0.dylib, file was built for i386 which is not the architecture being linked (x86_64) ld: warning: in /fink/lib/libgdk_pixbuf-2.0.dylib, file was built for i386 which is not the architecture being linked (x86_64) ld: warning: in /fink/lib/libfreetype.dylib, file was built for i386 which is not the architecture being linked (x86_64)
This caused a slew of "undefined symbol" errors:
Undefined symbols:
"wxFrame::DoGetClientSize(int*, int*) const", referenced from:
vtable for wxtFramein wxt_gui.o
"wxApp::GetClassInfo() const", referenced from:
vtable for wxtAppin wxt_gui.o
"wxWindow::MacGetLeftBorderSize() const", referenced from:
vtable for wxtPanelin wxt_gui.o
vtable for wxtConfigDialogin wxt_gui.o
vtable for wxtFramein wxt_gui.o
vtable for wxCheckBoxBasein wxt_gui.o
vtable for wxStaticTextBasein wxt_gui.o
vtable for wxSliderBasein wxt_gui.o
vtable for wxButtonBasein wxt_gui.o
"_pango_layout_set_text", referenced from:
_gp_cairo_draw_text in gp_cairo.o
_gp_cairo_enhanced_flush in gp_cairo.o
_gp_cairo_enhanced_flush in gp_cairo.o
_gp_cairo_enhanced_flush in gp_cairo.o
_gp_cairo_enhanced_flush in gp_cairo.o
_gp_cairo_enhanced_flush in gp_cairo.o
_gp_cairo_enhanced_flush in gp_cairo.o
_gp_cairo_enhanced_finish in gp_cairo.o
_gp_cairo_set_termvar in gp_cairo.o
"wxMemoryInputStream::wxMemoryInputStream(void const*, unsigned long)", referenced from:
wxtApp::LoadPngIcon(unsigned char const*, int, int)in wxt_gui.o
"wxDialogBase::OnChildFocus(wxChildFocusEvent&)", referenced from:
vtable for wxtConfigDialogin wxt_gui.o
"wxAppBase::OnRun()", referenced from:
vtable for wxtAppin wxt_gui.o
"_pango_cairo_create_layout", referenced from:
_gp_cairo_create_layout in gp_cairo.o
"_wxEVT_COMMAND_BUTTON_CLICKED", referenced from:
__static_initialization_and_destruction_0(int, int)in wxt_gui.o
"wxWindowBase::DoIsExposed(int, int, int, int) const", referenced from:
vtable for wxtPanelin wxt_gui.o
vtable for wxtConfigDialogin wxt_gui.o
vtable for wxtFramein wxt_gui.o
vtable for wxCheckBoxBasein wxt_gui.o
vtable for wxStaticTextBasein wxt_gui.o
vtable for wxSliderBasein wxt_gui.o
vtable for wxButtonBasein wxt_gui.o
etc...
This turned out to be a problem with Fink - I had accidentally installed a 32-bit version of Fink on a Snow Leopard operating system, which is 64-bit. Gnuplot then automatically attempted to build a 64-bit version of everything, and ran into problems when linking to 32-bit versions of libraries.