Lazarus needs to rebuild itself to install new components. It then puts a modified executable in the user dir. So lazarus emerges fine, but fails to rebuild itself. It fails to link against glib: /bin/ld: cannot find -lglib The problem here is that there's really no libglib.so, only libglib-2.0.so. Making a symlink from the later to the first solves the problem, and is my current workaround. Now, I don't know if the symlink should be there in the first place or not, but it puzzles me how lazarus can compile the first time (while emerging) but not afterwards. I believe this problem is recent, as I was able to rebuild lazarus before. Back then I was using an adapted 0.9.23 ebuild, and some months have passed since then.
Please post your `emerge --info' too.
(In reply to comment #1) > Please post your `emerge --info' too. Sure: $ emerge --info Portage 2.2_rc8 (default-linux/amd64/2007.0, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.26-gentoo-r1 x86_64) ================================================================= System uname: Linux-2.6.26-gentoo-r1-x86_64-Intel-R-_Core-TM-2_CPU_T7200_@_2.00GHz-with-glibc2.2.5 Timestamp of tree: Mon, 15 Sep 2008 13:30:02 +0000 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7, 2.1.6-r1 dev-lang/python: 2.5.2-r7 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.2.5 sys-apps/sandbox: 1.2.18.1-r3 sys-devel/autoconf: 2.13, 2.62-r1 sys-devel/automake: 1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.4 virtual/os-headers: 2.6.26 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-mtune=core2 -O3 -pipe -mssse3" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-r elease /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-mtune=core2 -O3 -pipe -mssse3" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="pt_PT.utf8" LDFLAGS="" LINGUAS="pt pt_PT" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --t imeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage/layman/sunrise" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac aalib acl acpi alsa amd64 apache2 bzip2 cairo cdparanoia cegui cg cli cracklib crypt cups custom-cflags db us directfb divx dri dvd dvdr dvdread eap-tls encode fbcon fbcondecor ffmpeg fortran freeimage gcj gdbm gif glut gnutls g pm gstreamer gtk gzip hal iconv ipv6 ipw3945 isdnlog iwl3945 java jpeg jpeg2k kerberos laptop libcaca lzo mad midi mmx mm xext mp3 mpeg mudflap multicall ncurses network nfs nls nptl nptlonly nsplugin nvidia ode offensive ogg openal openexr op engl openmp pam pcmcia pcre pdf perl php png ppds pppd python quicktime readline reflection samba sdl session smp sndfile sound sox spell spl sse sse2 ssl ssse3 svg tcpd theora threads tiff tls truetype unicode urandom usb v4l v4l2 vidmode vo rbis wifi x264 xcomposite xinerama xml xorg xpm xulrunner xv xvid xvmc zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adp cm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw mu lti null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd a uthn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoind ex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident i magemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer pr oxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="eve nt" CAMERAS="canon fuji ptp2" ELIBC="glibc" FOO2ZJS_DEVICES="hp1018" INPUT_DEVICES="evdev synaptics mouse keyboard" KERNE L="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pt pt_PT" USERLAND ="GNU" VIDEO_CARDS="nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, P ORTAGE_RSYNC_EXTRA_OPTS
Hello! To add more stuff, I've also added a component for lazarus, and while rebuild I have had similar problem with gdk_pixbuf library. Symlink /usr/lib64/libgdk_pixbuf.so -> /usr/lib64/libgdk_pixbuf-2.0.so solves the problem. IMHO it is a bug in LAzarus build system, not Gentoo. However, while using SUSE, I have always seen libraries as libXXX-2.5.so libXXX.so -> libXXX-2.5.so, so it is strange not to see such behavior in Gentoo...
Sorry, but my "fix" works only when building lazarus for GTK2 interface. When you try to build lazarus with gtk interface, ld still looks for libgdk_pixbuf, but for gtk1. apparently, it cannot find it and fails. So it appears that there are some problems with lazarus dependancies or gtk1 package.
Still valid with 0.9.28.2-r1?
I haven't used Lazarus nor Gentoo for years.. as far as I'm concerned it doesn't affect me anymore.