Bug 164141 - [PATCH] graphics/ufraw doesn't build with gcc4.6
Summary: [PATCH] graphics/ufraw doesn't build with gcc4.6
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Martin Wilke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-15 15:30 UTC by heathn
Modified: 2012-01-27 17:50 UTC (History)
0 users

See Also:


Attachments
file.diff (1.28 KB, patch)
2012-01-15 15:30 UTC, heathn
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description heathn 2012-01-15 15:30:11 UTC
When building ufraw with gcc46 I get the following link error:

gcc46 -I/usr/local/include   -D_THREAD_SAFE -D_REENTRANT -I/usr/local/include -I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/local/include/atk-1.0 -I/usr/local/include/cairo -I/usr/local/include/gdk-pixbuf-2.0 -I/usr/local/include/pango-1.0 -I/usr/local/include/gio-unix-2.0/ -I/usr/local/include/glib-2.0 -I/usr/local/include/pixman-1 -I/usr/local/include/freetype2   -D_REENTRANT -I/usr/local/include/glib-2.0   -I/usr/local/include   -I/usr/local/include/ -I/usr/local/include/glib-2.0   -I/usr/local/include    -D_STAND_ALONE_ -O2 -pipe -fno-strict-aliasing -fopenmp  -L/usr/local/lib -pthread -o nikon-curve nikon_curve-nikon_curve.o -L/usr/local/lib -lexiv2   -pthread -L/usr/local/lib -lgthread-2.0 -lglib-2.0   -L/usr/local/lib -llcms   -L/usr/local/lib/ -L/usr/local/lib -llensfun -lglib-2.0   -L/usr/local/lib -lpng -lz -lm     -ltiff -ljpeg -lbz2 -lz -lm  -lintl 
/usr/local/lib/libexiv2.so: undefined reference to `std::__detail::_List_node_base::swap(std::__detail::_List_node_base&, std::__detail::_List_node_base&)@GLIBCXX_3.4.15'
/usr/local/lib/libexiv2.so: undefined reference to `std::__detail::_List_node_base::_M_transfer(std::__detail::_List_node_base*, std::__detail::_List_node_base*)@GLIBCXX_3.4.15'
/usr/local/lib/libexiv2.so: undefined reference to `std::__detail::_List_node_base::_M_unhook()@GLIBCXX_3.4.15'
/usr/local/lib/libexiv2.so: undefined reference to `std::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*)@GLIBCXX_3.4.15'
/usr/local/lib/libexiv2.so: undefined reference to `std::ctype<char>::_M_widen_init() const@GLIBCXX_3.4.11'

Fix: When creating the nikon-curve app, the Makefile calls gcc46 which does not automatically include the libstdc++.so library causing the undefined symbols.  By calling g++46 instead, libstdc++.so is included in the link resolving the symbols.

Patch attached with submission follows:
How-To-Repeat: With gcc46 installed and the CC, CXX, CPP variables pointing to gcc46

cd /usr/ports/graphics/ufraw
make install
Comment 1 Martin Wilke freebsd_committer freebsd_triage 2012-01-17 01:55:59 UTC
Responsible Changed
From-To: freebsd-ports-bugs->miwi

I'll take it.
Comment 2 Martin Wilke freebsd_committer freebsd_triage 2012-01-27 17:45:47 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 3 dfilter service freebsd_committer freebsd_triage 2012-01-27 17:45:49 UTC
miwi        2012-01-27 17:45:36 UTC

  FreeBSD ports repository

  Added files:
    graphics/ufraw/files patch-Makefile 
  Log:
  - Fix build with gcc4.6
  
  PR:             164141
  Submitted by:   Heath Nielson <heathn@gmail.com>
  
  Revision  Changes    Path
  1.3       +34 -0     ports/graphics/ufraw/files/patch-Makefile (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"