Opened 2 months ago

Last modified 2 months ago

#70367 new defect

dia fails to link: Undefined symbols: "_png_get_header_ver"

Reported by: barracuda156 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.9.3
Keywords: Cc:
Port: dia

Description

/bin/sh ../libtool  --tag=CC   --mode=link /opt/local/bin/gcc-mp-14  -I/opt/local/include/libxml2 -I/opt/local/include/freetype2 -I/opt/local/include/libpng16 -pipe -Os -Wno-error=incompatible-pointer-types -arch ppc  -Wall -Werror=declaration-after-statement -Werror=implicit-function-declaration -Wmissing-prototypes -Wmissing-declarations -finline-functions -fstrict-aliasing -Wpointer-arith -Winit-self -Wformat-nonliteral -export-dynamic -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc -o dia confirm.o exit_dialog.o diagram.o preferences.o load_save.o properties-dialog.o defaults.o undo.o object_ops.o layer_dialog.o commands.o app_procs.o connectionpoint_ops.o disp_callbacks.o display.o select.o color_area.o linewidth_area.o grid.o handle_ops.o interface.o modify_tool.o scroll_tool.o create_object.o magnify.o menus.o cut_n_paste.o render_gdk.o tool.o diapagelayout.o pagesetup.o filedlg.o find-and-replace.o plugin-manager.o dia-props.o gtkwrapbox.o gtkhwrapbox.o gtkvwrapbox.o cursor.o splash.o recent_files.o diagram_tree.o diagram_tree_window.o diagram_tree_menu.o diagram_tree_menu_callbacks.o sheets.o sheets_dialog.o sheets_dialog_callbacks.o autosave.o dynamic_refresh.o navigation.o diacanvas.o highlight.o textedit.o textedit_tool.o main.o ../lib/libdia.la   -lz -L/opt/local/lib -lfreetype -L/opt/local/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXcomposite -lXdamage -lXfixes -lX11 -lXext -latk-1.0 -lcairo -lgio-2.0 -lxml2 -lgdk_pixbuf-2.0 -lgthread-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lintl -lharfbuzz -lfontconfig -lfreetype -lart_lgpl_2  -lintl  -Wl,-framework -Wl,CoreFoundation  -L/opt/local/lib -lxml2 -L/opt/local/lib -lart_lgpl_2  -lz
libtool: link: /opt/local/bin/gcc-mp-14 -I/opt/local/include/libxml2 -I/opt/local/include/freetype2 -I/opt/local/include/libpng16 -pipe -Os -Wno-error=incompatible-pointer-types -arch ppc -Wall -Werror=declaration-after-statement -Werror=implicit-function-declaration -Wmissing-prototypes -Wmissing-declarations -finline-functions -fstrict-aliasing -Wpointer-arith -Winit-self -Wformat-nonliteral -Wl,-headerpad_max_install_names -arch ppc -o .libs/dia confirm.o exit_dialog.o diagram.o preferences.o load_save.o properties-dialog.o defaults.o undo.o object_ops.o layer_dialog.o commands.o app_procs.o connectionpoint_ops.o disp_callbacks.o display.o select.o color_area.o linewidth_area.o grid.o handle_ops.o interface.o modify_tool.o scroll_tool.o create_object.o magnify.o menus.o cut_n_paste.o render_gdk.o tool.o diapagelayout.o pagesetup.o filedlg.o find-and-replace.o plugin-manager.o dia-props.o gtkwrapbox.o gtkhwrapbox.o gtkvwrapbox.o cursor.o splash.o recent_files.o diagram_tree.o diagram_tree_window.o diagram_tree_menu.o diagram_tree_menu_callbacks.o sheets.o sheets_dialog.o sheets_dialog_callbacks.o autosave.o dynamic_refresh.o navigation.o diacanvas.o highlight.o textedit.o textedit_tool.o main.o -Wl,-framework -Wl,CoreFoundation  -L/opt/local/lib ../lib/.libs/libdia.dylib /opt/local/lib/libgtk-x11-2.0.dylib /opt/local/lib/libgdk-x11-2.0.dylib -lpangocairo-1.0 /opt/local/lib/libXrender.dylib /opt/local/lib/libXinerama.dylib /opt/local/lib/libXi.dylib /opt/local/lib/libXrandr.dylib /opt/local/lib/libXcursor.dylib /opt/local/lib/libXcomposite.dylib /opt/local/lib/libXdamage.dylib /opt/local/lib/libXfixes.dylib /opt/local/lib/libX11.dylib /opt/local/lib/libXext.dylib -latk-1.0 /opt/local/lib/libcairo.dylib -lgio-2.0 -lgdk_pixbuf-2.0 -lgthread-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 /opt/local/lib/libharfbuzz.dylib /opt/local/lib/libfontconfig.dylib /opt/local/lib/libfreetype.dylib -lintl /opt/local/lib/libxml2.dylib /opt/local/lib/libart_lgpl_2.dylib -lz -framework ApplicationServices -pthread
Undefined symbols:
  "_png_get_header_ver", referenced from:
      _app_init in app_procs.o
ld: symbol(s) not found
collect2: error: ld returned 1 exit status
make[4]: *** [dia] Error 1
make[4]: Leaving directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_gnome_dia/dia/work/dia-0.97.3/app'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_gnome_dia/dia/work/dia-0.97.3/app'
make[2]: *** [all] Error 2

Change History (4)

comment:1 Changed 2 months ago by ryandesign (Ryan Carsten Schmidt)

That symbol is probably from libpng and the error is probably occurring because -lpng is not in the link line.

We had successful builds of this port on all buildbot systems so we'll need to see your main.log file to try to figure out what's different on your system.

comment:2 in reply to:  1 Changed 2 months ago by barracuda156

Replying to ryandesign:

That symbol is probably from libpng and the error is probably occurring because -lpng is not in the link line.

We had successful builds of this port on all buildbot systems so we'll need to see your main.log file to try to figure out what's different on your system.

Thank you, let me check locally, if I fail to fix it, I will upload the log.

comment:3 in reply to:  1 Changed 2 months ago by barracuda156

Replying to ryandesign:

Well, generated makefile has no trace of -lpng, so that is why it is not passed, but I have no idea what goes wrong and how to find it out.

comment:4 Changed 2 months ago by ryandesign (Ryan Carsten Schmidt)

We'll need to see the main.log and config.log to help diagnose it.

Note: See TracTickets for help on using tickets.