Opened 2 years ago

Closed 2 years ago

#65263 closed defect (fixed)

graphviz-devel @4.0.0 does not build on PPC Tiger, Mac OS X 10.4.11, because Undefined symbols: "_strndup", referenced from: _parseString in xdot.o

Reported by: ballapete (Peter "Pete" Dyballa) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: tiger leopard snowleopard Cc: mascguy (Christopher Nielsen)
Port: graphviz-devel

Description

/bin/sh ../../libtool  --tag=CC   --mode=link /opt/local/bin/gcc-mp-7  -pipe -Os -arch ppc -Wall -Wextra -Wmissing-include-dirs -Wswitch-default -Wfloat-equal -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wconversion -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wtrampolines -Wlogical-op -fno-common -Wall -version-info "4:0:0" -no-undefined -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc -L/opt/local/lib -Wl,-headerpad_max_install_names -o libxdot.la -rpath /opt/local/lib xdot.lo  
libtool: link: /opt/local/bin/gcc-mp-7 -dynamiclib  -o .libs/libxdot.4.dylib  .libs/xdot.o   -L/opt/local/lib  -Os -arch ppc -Wl,-headerpad_max_install_names -arch ppc -Wl,-headerpad_max_install_names   -install_name  /opt/local/lib/libxdot.4.dylib -compatibility_version 5 -current_version 5.0 -Wl,-single_module
Undefined symbols:
  "_strndup", referenced from:
      _parseString in xdot.o
ld: symbol(s) not found
collect2: error: ld returned 1 exit status
make[3]: *** [libxdot.la] Error 1
make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_graphics_graphviz-devel/graphviz-devel/work/graphviz-4.0.0/lib/xdot'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_graphics_graphviz-devel/graphviz-devel/work/graphviz-4.0.0/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_graphics_graphviz-devel/graphviz-devel/work/graphviz-4.0.0'
make: *** [all] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_graphics_graphviz-devel/graphviz-devel/work/graphviz-4.0.0'

strndup() is missing on Tiger. OpenSSL brings its own version, I think.

Attachments (1)

main.log (108.0 KB) - added by ballapete (Peter "Pete" Dyballa) 2 years ago.
Main.log from PPC Tiger, Mac OS X 10.4.11

Download all attachments as: .zip

Change History (3)

Changed 2 years ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.log added

Main.log from PPC Tiger, Mac OS X 10.4.11

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

Cc: mascguy added; ryandesign@… mascguy@… removed
Keywords: leopard snowleopard added
Owner: set to ryandesign
Port: @4.0.0 removed
Status: newaccepted

strndup was introduced in Mac OS X 10.7. Legacy support contains an implementation for earlier systems.

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

Resolution: fixed
Status: acceptedclosed

In 4810e72552f37f262b1b3b30ac262b7f5de143ba/macports-ports (master):

graphviz-devel: Use legacysupport for strndup

Closes: #65263

Note: See TracTickets for help on using tickets.