Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 210916 - sci-geosciences/mapserver-5.0.0-r1 fails to compile: cannot find -lmapserver
Summary: sci-geosciences/mapserver-5.0.0-r1 fails to compile: cannot find -lmapserver
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Sci-geo Project
URL:
Whiteboard:
Keywords:
: 210917 210918 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-02-20 20:28 UTC by sorin
Modified: 2009-06-20 14:25 UTC (History)
1 user (show)

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


Attachments
dependencies-fix patch (mapserver_deps.patch,851 bytes, patch)
2008-05-02 14:54 UTC, Oleg Popov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description sorin 2008-02-20 20:28:36 UTC
It seems agg cannot find mapserver library through ld.

Reproducible: Always

Steps to Reproduce:
echo "dev-db/mtop ~x86
sci-geosciences/mapserver ~x86
sci-libs/gdal ~x86
x11-libs/agg ~x86
media-libs/freetype ~x86
media-libs/libpng ~x86
sci-libs/proj ~x86
dev-lang/swig ~x86
sci-libs/geos ~x86
media-libs/jpeg ~x86
media-libs/tiff ~x86
media-libs/gd ~x86
sci-libs/gdal ~x86
sci-libs/ogdi ~x86
media-libs/jbigkit ~x86
app-arch/cabextract ~x86
media-libs/fontconfig ~x86
app-admin/eselect-fontconfig ~x86
media-fonts/corefonts ~x86
media-gfx/imagemagick ~x86" >>/etc/portage.package.keywords


emerge -uDN mapserver-5.0.0-r1
Actual Results:  
i686-pc-linux-gnu-g++ -O2 -march=i686 -mtune=i686 -pipe -fPIC -Wall   -DNEED_NONBLOCKING_STDERR   -DHAVE_VSNPRINTF -DNEED_STRLCAT  -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_WCS_SVR      -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_AGG    -DUSE_OGR -DUSE_GDAL -DUSE_GEOS -DUSE_ICONV     -DUSE_THREAD -DUSE_ZLIB  -I/usr/include -I/usr/include/agg2 -I/usr/include/freetype2       -I/usr/include      -I/usr/include     tile4ms.o  -L. -lmapserver -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -lXpm -lX11  -L/usr/lib -lagg -laggfontfreetype  -ljpeg -lfreetype -lpng -lz -lXpm -lX11  -lproj -ljpeg  -L/usr/lib -lgdal -L/usr/lib -lgeos_c -L/usr/lib -lexpat -ljasper -L/usr/lib -L/usr/lib/lib -logdi31 -ljpeg -lgeotiff -ltiff -lpng -lz -lpthread -lm -lrt -ldl    -lcurl  -L/usr/lib -lgeos_c -lpthread -lc  -lz  -lm -lstdc++  -o tile4ms
echo 'CONFIG_DEFINES="  -DHAVE_VSNPRINTF -DNEED_STRLCAT  -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_WCS_SVR      -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_AGG    -DUSE_OGR -DUSE_GDAL -DUSE_GEOS -DUSE_ICONV     -DUSE_THREAD -DUSE_ZLIB"' >> mapserver-config
echo 'CONFIG_INCLUDES=" -I/usr/include -I/usr/include/agg2 -I/usr/include/freetype2       -I/usr/include      -I/usr/include    "' >> mapserver-config
echo 'CONFIG_VERSION="'`grep '#define MS_VERSION' mapserver.h | sed 's/\"//g' | sed 's/#define MS_VERSION //'`'"' >> mapserver-config
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lmapserver
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lmapserver
collect2: collect2: ld returned 1 exit status
ld returned 1 exit status
make: *** [sortshp] Error 1
make: *** Waiting for unfinished jobs....
make: *** [tile4ms] Error 1
cat mapserver-config.in >> mapserver-config
chmod a+x mapserver-config
/usr/include/agg2/agg_scanline_boolean_algebra.h: In function âvoid agg::sbool_unite_scanlines(const Scanline1&, const Scanline2&, Scanline&, AddSpanFunctor1, AddSpanFunctor2, CombineSpansFunctor) [with Scanline1 = agg::scanline_p8, Scanline2 = agg::scanline_p8, Scanline = agg::scanline_p8, AddSpanFunctor1 = agg::sbool_add_span_aa<agg::scanline_p8, agg::scanline_p8>, AddSpanFunctor2 = agg::sbool_add_span_aa<agg::scanline_p8, agg::scanline_p8>, CombineSpansFunctor = agg::sbool_unite_spans_aa<agg::scanline_p8, agg::scanline_p8, agg::scanline_p8, 8u>]â:
/usr/include/agg2/agg_scanline_boolean_algebra.h:862: warning: âspan1â may be used uninitialized in this function
/usr/include/agg2/agg_scanline_boolean_algebra.h:863: warning: âspan2â may be used uninitialized in this function
/usr/include/agg2/agg_scanline_boolean_algebra.h: In function âvoid agg::sbool_unite_scanlines(const Scanline1&, const Scanline2&, Scanline&, AddSpanFunctor1, AddSpanFunctor2, CombineSpansFunctor) [with Scanline1 = agg::scanline_p8, Scanline2 = agg::scanline_p8, Scanline = agg::scanline_p8, AddSpanFunctor1 = agg::sbool_add_span_aa<agg::scanline_p8, agg::scanline_p8>, AddSpanFunctor2 = agg::sbool_add_span_empty<agg::scanline_p8, agg::scanline_p8>, CombineSpansFunctor = agg::sbool_subtract_spans_aa<agg::scanline_p8, agg::scanline_p8, agg::scanline_p8, 8u>]â:
/usr/include/agg2/agg_scanline_boolean_algebra.h:862: warning: âspan1â may be used uninitialized in this function
/usr/include/agg2/agg_scanline_boolean_algebra.h:863: warning: âspan2â may be used uninitialized in this function
/usr/include/agg2/agg_scanline_boolean_algebra.h: In function âvoid agg::sbool_unite_scanlines(const Scanline1&, const Scanline2&, Scanline&, AddSpanFunctor1, AddSpanFunctor2, CombineSpansFunctor) [with Scanline1 = agg::scanline_p8, Scanline2 = agg::scanline_p8, Scanline = agg::scanline_p8, AddSpanFunctor1 = agg::sbool_add_span_aa<agg::scanline_p8, agg::scanline_p8>, AddSpanFunctor2 = agg::sbool_add_span_aa<agg::scanline_p8, agg::scanline_p8>, CombineSpansFunctor = agg::sbool_xor_spans_aa<agg::scanline_p8, agg::scanline_p8, agg::scanline_p8, agg::sbool_xor_formula_abs_diff, 8u>]â:
/usr/include/agg2/agg_scanline_boolean_algebra.h:862: warning: âspan1â may be used uninitialized in this function
/usr/include/agg2/agg_scanline_boolean_algebra.h:863: warning: âspan2â may be used uninitialized in this function
/usr/include/agg2/agg_scanline_boolean_algebra.h: In function âvoid agg::sbool_unite_scanlines(const Scanline1&, const Scanline2&, Scanline&, AddSpanFunctor1, AddSpanFunctor2, CombineSpansFunctor) [with Scanline1 = agg::scanline_p8, Scanline2 = agg::scanline_p8, Scanline = agg::scanline_p8, AddSpanFunctor1 = agg::sbool_add_span_aa<agg::scanline_p8, agg::scanline_p8>, AddSpanFunctor2 = agg::sbool_add_span_aa<agg::scanline_p8, agg::scanline_p8>, CombineSpansFunctor = agg::sbool_xor_spans_aa<agg::scanline_p8, agg::scanline_p8, agg::scanline_p8, agg::sbool_xor_formula_saddle<8u>, 8u>]â:
/usr/include/agg2/agg_scanline_boolean_algebra.h:862: warning: âspan1â may be used uninitialized in this function
/usr/include/agg2/agg_scanline_boolean_algebra.h:863: warning: âspan2â may be used uninitialized in this function
/usr/include/agg2/agg_scanline_boolean_algebra.h: In function âvoid agg::sbool_unite_scanlines(const Scanline1&, const Scanline2&, Scanline&, AddSpanFunctor1, AddSpanFunctor2, CombineSpansFunctor) [with Scanline1 = agg::scanline_p8, Scanline2 = agg::scanline_p8, Scanline = agg::scanline_p8, AddSpanFunctor1 = agg::sbool_add_span_aa<agg::scanline_p8, agg::scanline_p8>, AddSpanFunctor2 = agg::sbool_add_span_aa<agg::scanline_p8, agg::scanline_p8>, CombineSpansFunctor = agg::sbool_xor_spans_aa<agg::scanline_p8, agg::scanline_p8, agg::scanline_p8, agg::sbool_xor_formula_linear<8u>, 8u>]â:
/usr/include/agg2/agg_scanline_boolean_algebra.h:862: warning: âspan1â may be used uninitialized in this function
/usr/include/agg2/agg_scanline_boolean_algebra.h:863: warning: âspan2â may be used uninitialized in this function
/usr/include/agg2/agg_path_storage.h: In function âvoid drawPolylineMarkers(imageObj*, shapeObj*, symbolSetObj*, styleObj*, double)â:
/usr/include/agg2/agg_path_storage.h:732: warning: âxâ may be used uninitialized in this function
/usr/include/agg2/agg_path_storage.h:732: warning: âyâ may be used uninitialized in this function
/usr/include/agg2/agg_path_storage.h:732: warning: âxâ may be used uninitialized in this function
/usr/include/agg2/agg_path_storage.h:732: warning: âyâ may be used uninitialized in this function
/usr/include/agg2/agg_path_storage.h: In function âvoid msDrawMarkerSymbolAGG(symbolSetObj*, imageObj*, pointObj*, styleObj*, double)â:
/usr/include/agg2/agg_path_storage.h:732: warning: âyâ may be used uninitialized in this function
/usr/include/agg2/agg_path_storage.h:732: warning: âxâ may be used uninitialized in this function
/usr/include/agg2/agg_path_storage.h:732: warning: âyâ may be used uninitialized in this function
/usr/include/agg2/agg_path_storage.h:732: warning: âxâ may be used uninitialized in this function
/usr/include/agg2/agg_path_storage.h:732: warning: âyâ may be used uninitialized in this function
/usr/include/agg2/agg_path_storage.h:732: warning: âxâ may be used uninitialized in this function
 *
 * ERROR: sci-geosciences/mapserver-5.0.0-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 6333:  Called die
 * The specific snippet of code:
 *       emake || die "make failed";
 *  The die message:
 *   make failed


Expected Results:  
To compile cleanly.

/ # emerge --info
Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.22.6 i686)
=================================================================
System uname: 2.6.22.6 i686 Intel(R) Xeon(TM) CPU 1.40GHz
Timestamp of tree: Wed, 20 Feb 2008 13:16:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -mtune=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -mtune=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://ftp.romnet.org/gentoo/"
LANG="en_US.UTF-8"
LINGUAS="ro en"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
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="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="acl agg apache2 bash-completion bashlogger berkdb bitmap-fonts bzip2 chroot cli cracklib crypt cscope ctype cups doc dri expat fontconfig fortran gd-external gdal gdbm geos gmp gpm iconv idn ipv6 isdnlog ithreads jbig jpeg jpeg2k ldap midi mpi mudflap ncurses netboot nls nptl nptlonly offensive ogdi openmp pam pcre perl perlsuid png pppd proj python readline reflection sasl session slang spell spl sse2 ssl symlink tcpd threads truetype truetype-fonts type1-fonts unicode urandom vim-pager vim-syntax vim-with-x x86 xerces xorg zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 cgi cgid 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" APACHE2_MPMS="event" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ro en" USERLAND="GNU" VIDEO_CARDS="apm fbdev vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Dawid Węgliński (RETIRED) gentoo-dev 2008-02-20 21:18:58 UTC
*** Bug 210917 has been marked as a duplicate of this bug. ***
Comment 2 Dawid Węgliński (RETIRED) gentoo-dev 2008-02-20 21:19:49 UTC
*** Bug 210918 has been marked as a duplicate of this bug. ***
Comment 3 sorin 2008-02-20 21:27:53 UTC
I'm sorry. I didn't know it will commit again and again.

UPDATE: mapserver-5.0.0 compiles cleanly in this configuration.
I did emerge -uDN --skip-first world (mapserver was already installed on my system), then revdep-rebuild. The last command did an emerge --oneshot =mapserver-5.0.0 and it finished successfully.
Comment 4 R. Müller 2008-03-05 15:31:39 UTC
try to compile with MAKEOPT="-j1" or no MAKEOPTS in your make conf. it seems there are unresolved dependencies in the make-file. 

regards ronald
Comment 5 sorin 2008-03-09 16:21:58 UTC
It compiled successfully using MAKEOPTS="-j1". Probably it was a race condition. Changing this, however, is a workaround. I'll let you choose to close this bug report or not, because I don't know if it should be fixed or not. Thank you.
Comment 6 Oleg Popov 2008-05-02 14:54:59 UTC
Created attachment 151628 [details, diff]
dependencies-fix patch

This patch solved the problem for me.
Comment 7 sorin 2009-06-20 14:25:19 UTC
It seems the bug is too old to be fixed. mapserver reached version 5.4.0 by now and it seems portage only offeres 5.0.0-r1 which still doesn't compile unless you set MAKEOPTS="-j1".