Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 384781 - sci-geosciences/opencpn-2.5.0 doesn't link against tinyxml[stl]
Summary: sci-geosciences/opencpn-2.5.0 doesn't link against tinyxml[stl]
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal critical
Assignee: Marc Schiffbauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-28 13:09 UTC by Stanislaw Jesmanowicz
Modified: 2011-09-28 14:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stanislaw Jesmanowicz 2011-09-28 13:09:58 UTC
opencpn doen't link with tinyxml
It is CMakeLists.txt issue
Comment 1 Stanislaw Jesmanowicz 2011-09-28 13:11:06 UTC
Portage 2.1.10.19 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.13-r4, 3.0.4-gentoo x86_64)
=================================================================
System uname: Linux-3.0.4-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-gentoo-2.0.3
Timestamp of tree: Wed, 28 Sep 2011 11:30:01 +0000
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/cmake:           2.8.5-r2
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.3-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.4.6-r1, 4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r3
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -mtune=k8 -O2 -pipe -mmmx -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=k8 -mtune=k8 -O2 -pipe -mmmx -msse3"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages metadata-transfer news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="utf-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="en_US en_GB en nl pl"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aacs aalib acl alsa amd64 berkdb bluray bzip2 cdda cdparanoia cdr cli consolekit cracklib crypt cups curl cxx dbus divx4linux doc dri dts dvd dvdread ebook encode examples extras faac ffmpeg flac fontconfig fortran freetype fuse gd gdbm gnutls gpm gstreamer gzip htmlhandbook httpd iconv imagemagick ipv6 jave jpeg kde lame libcaca live mad matroska mmap mmx mng modplug modules mp3 mp4 mpeg mudflap multilib musepack ncurses network nls nptl nptlonly nvidia ogg ogm openexr opengl openmp openssh openssl pam pcre pdf perl php png pppd profile pulseaudio python qt3support qt4 readline schroedinger sdl semantic-desktop session sox sql sse sse2 ssl ssse3 stream subversion svg sysfs tcpd theora threads threadsafe tiff truetype udev unicode usb vcd vdpau vhosts vlm vorbis wav wavpack webkit wxwindows x264 xcb xcomposite xml xorg xpm xv zip zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="mod_php5 mod_mime actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US en_GB en nl pl" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="epson epson2 epkowa" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Stanislaw Jesmanowicz 2011-09-28 13:18:25 UTC
When I get (with git) the latest source from opencpn site (OpenCPN-2.5.0)
Then I can compile and link the package without problems.
The portage version doesn't link.
The problem is in CMakeLists.txt file concerning tinyxml


Below is a diff -u between the latest git distribution ( which link OK ) and
t--- CMakeLists.txt      2011-09-23 16:27:24.738341213 +0200
+++ /var/tmp/portage/sci-geosciences/opencpn-2.5.0/work/OpenCPN-2.5.0-Source/CMakeLists.txt  2011-09-28 14:14:33.340725496 +0200
@@ -49,7 +49,7 @@
 IF (NOT WIN32)
   # default
   SET (ARCH "i386")
-  SET (LIB_INSTALL_DIR "lib")
+  SET (LIB_INSTALL_DIR "lib${LIB_SUFFIX}")
   IF (EXISTS /etc/debian_version)
     SET (PACKAGE_FORMAT "DEB")
     SET (PACKAGE_DEPS "libwxgtk2.8-0 (>= 2.8.7.1), libglu1-mesa (>= 7.0.0), libgl1-mesa-glx (>= 7.0.0), zlib1g, bzip2")
@@ -116,7 +116,7 @@
 #SET(CMAKE_BUILD_TYPE Debug)
 
 IF (PREFIX)
-       SET(CMAKE_INSTALL_PREFIX ${PREFIX})
+#IGNORE        SET(CMAKE_INSTALL_PREFIX ${PREFIX})
 ENDIF (PREFIX)
 SET(PREFIX_BIN bin)
 SET(PREFIX_INCLUDE include)
@@ -325,12 +325,9 @@
       )
 
 IF(TINYXML_FOUND)
-    message (STATUS "Building with tinyxml includes")
     INCLUDE_DIRECTORIES(${TINYXML_INCLUDE_DIR})
-    ADD_DEFINITIONS(-DTIXML_USE_STL)
 ELSE(TINYXML_FOUND)
-    message (STATUS "tinyxml library not found")
-    SET(SRCS ${SRCS} ${SRC_TINYXML})
+  SET(SRCS ${SRCS} ${SRC_TINYXML})
 ENDIF(TINYXML_FOUND)
 
 
@@ -1021,3 +1018,14 @@
 MESSAGE(STATUS "Writing spec file...")
 
                 
+
+MESSAGE(STATUS "<<< Gentoo configuration >>>
+Build type      ${CMAKE_BUILD_TYPE}
+Install path    ${CMAKE_INSTALL_PREFIX}
+Compiler flags:
+C               ${CMAKE_C_FLAGS}
+C++             ${CMAKE_CXX_FLAGS}
+Linker flags:
+Executable      ${CMAKE_EXE_LINKER_FLAGS}
+Module          ${CMAKE_MODULE_LINKER_FLAGS}
+Shared          ${CMAKE_SHARED_LINKER_FLAGS}\n")
his from gentoo.
Check different settings about TINYXML:
Comment 3 Marc Schiffbauer gentoo-dev 2011-09-28 14:26:32 UTC
May it be that you have installed tinyxml with USE=stl ?
Comment 4 Marc Schiffbauer gentoo-dev 2011-09-28 14:40:03 UTC
SHould be fixed now.

Thanks Stan for reporting!