Author Topic: /usr/bin/ld: cannot find -lxcb-xlib  (Read 4538 times)

Offline maik3531

  • Full Member
  • ***
  • Posts: 129
/usr/bin/ld: cannot find -lxcb-xlib
« on: January 03, 2010, 07:16:58 AM »
Create a package when I get the error message "/usr/bin/ ld: can not find -lxcb-xlib" is that now only because the update to xorg is not yet complete, or can I specify that somewhere in the spec xcb-xlib? If so, how?

now time thanks

-L DE
Ich bekomme beim erstellen eines Paketes die Fehlermeldung "/usr/bin/ld: cannot find -lxcb-xlib" liegt das nun nur daran das Update zu xorg noch nicht vollständig ist oder kann ich da irgendwo in der spec xcb-xlib angeben? Wenn ja wie?

schon mal Danke
Please excuse my English

Offline MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1317
Re: /usr/bin/ld: cannot find -lxcb-xlib
« Reply #1 on: January 07, 2010, 11:30:39 AM »
Hi maik,

can you paste the errormessage here? Need some more info to help out :-)

cheers

Offline cyrylas

  • Full Member
  • ***
  • Posts: 81
Re: /usr/bin/ld: cannot find -lxcb-xlib
« Reply #2 on: January 07, 2010, 11:37:04 AM »
Quote
libtool: install: warning: relinking `libabout.la'                                                                                     
libtool: install: (cd /home/cyryl/soft/subtitleeditor/plugins/actions/about; /bin/sh /home/cyryl/soft/subtitleeditor/libtool  --tag CXX --mode=relink g++ -g -O2 -DDEBUG -g -ansi -Wall -module -avoid-version -g -ansi -Wall -o libabout.la -rpath /usr/lib/subtitleeditor/plugins/actions about.lo -lgtkmm-2.4 -latkmm-1.6 -lgdkmm-2.4 -lgiomm-2.4 -lpangomm-1.4 -lgtk-x11-2.0 -lcairomm-1.0 -lgdk-x11-2.0 -latk-1.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lgio-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgmodule-2.0 -lglibmm-2.4 -lgobject-2.0 -lsigc-2.0 -lglib-2.0 -L../../../src -lsubtitleeditor )                 
libtool: relink: g++ -shared -nostdlib /usr/lib/gcc/i586-manbo-linux-gnu/4.4.1/../../../crti.o /usr/lib/gcc/i586-manbo-linux-gnu/4.4.1/crtbeginS.o  .libs/about.o   -L/home/cyryl/soft/subtitleeditor/src -L/usr/lib -lsubtitleeditor -lgtkmm-2.4 -latkmm-1.6 -lgdkmm-2.4 -lgiomm-2.4 -lpangomm-1.4 -lgtk-x11-2.0 -lcairomm-1.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpangoft2-1.0 -lgio-2.0 -lresolv -lcairo -lpixman-1 -ldirectfb -lfusion -ldirect -lpthread -lpng12 -lXrender -lX11 -lxcb-xlib -lxcb -lXau -lXdmcp -lpango-1.0 -lfontconfig -lfreetype -lxml++-2.6 -lxml2 -lz -lglibmm-2.4 -lgobject-2.0 -lsigc-2.0 -lenchant -lgmodule-2.0 -ldl -lglib-2.0 -L/usr/lib/gcc/i586-manbo-linux-gnu/4.4.1 -L/usr/lib/gcc/i586-manbo-linux-gnu/4.4.1/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/i586-manbo-linux-gnu/4.4.1/crtendS.o /usr/lib/gcc/i586-manbo-linux-gnu/4.4.1/../../../crtn.o     -Wl,-soname -Wl,libabout.so -o .libs/libabout.so
/usr/bin/ld: cannot find -lxcb-xlib
collect2: ld returned 1 exit status
libtool: install: error: relink `libabout.la' with the above command before installing it

You can reproduce it by yourself for example compiling Subtitle Editor from trunk.

Offline MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1317
Re: /usr/bin/ld: cannot find -lxcb-xlib
« Reply #3 on: January 07, 2010, 12:37:07 PM »
super,

do you have libxcb-devel installed?

It you have, then what package are you working on? Can you post the spec?

cheers,
MBantz

Offline cyrylas

  • Full Member
  • ***
  • Posts: 81
Re: /usr/bin/ld: cannot find -lxcb-xlib
« Reply #4 on: January 07, 2010, 12:56:13 PM »
Quote
$ rpm -qa | grep xcb | sort
libxcb-1.4-2pclos2010
libxcb-devel-1.4-2pclos2010
libxcb-static-devel-1.4-2pclos2010
libxcb-util-devel-0.3.3-1pclos2009


Can't install libxcb-util-devel-0.3.5 because it wants to uninstall vlc. I'm not working on a package, i'm just trying to install Subtitle Editor ( http://home.gna.org/subtitleeditor/ ) from source. Everything is fine 'till make install.


Offline MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1317
Re: /usr/bin/ld: cannot find -lxcb-xlib
« Reply #5 on: January 07, 2010, 01:09:45 PM »
erh... this is packaging section :-) If you need advice on installing from outside synaptic you have to ask elsewhere :-)

If you want to create an RPM package for PCLinux, I'll gladly help you out (and all pclos users can get the program ;-)

cheers

Offline maik3531

  • Full Member
  • ***
  • Posts: 129
Re: /usr/bin/ld: cannot find -lxcb-xlib
« Reply #6 on: January 07, 2010, 03:55:51 PM »
also with installed libxcb-util-devel-0.3.5 does not change

Code: [Select]
%define __libtoolize    /bin/true
%define pkgname anjuta

%define major 0
%define libname %mklibname %{pkgname} %major
%define libnamedev %mklibname %{pkgname}  -d

%define _requires_exceptions perl.GBF..Make.
Summary: Integrated development environment for C and C++ (Linux)
Summary(de): Integrierte Entwicklungs-Umgebung für C und C++ (Linux)
Name: %{pkgname}2
Version: 2.29.4.0
Release: %mkrel 1
License: GPLv2+
Group: Development/Other
URL: http://anjuta.sourceforge.net/
Source0: ftp://ftp.gnome.org/pub/GNOME/sources/anjuta/%{pkgname}-%{version}.tar.bz2
Patch: anjuta-2.27.91.0-format-strings.patch
Patch1: anjuta-2.29.4.0-fix-linking.patch
BuildRequires: gtk+2-devel >= 2.4.0
BuildRequires: libORBit2-devel >= 2.6
BuildRequires: libxml2-devel >= 2.4.23
BuildRequires: pango-devel >= 1.8
BuildRequires: gda4.0-devel
BuildRequires: libgdl-devel >= 2.27.3
BuildRequires: libxslt-devel
BuildRequires: unique-devel
BuildRequires: devhelp-devel >= 0.22
BuildRequires: vte-devel >= 0.9.0
BuildRequires: libautogen0-devel
BuildRequires: autogen
BuildRequires: gtksourceview-devel >= 2.9.3
BuildRequires: gnome-common
BuildRequires: intltool
BuildRequires: subversion-devel >= 1.0.2
BuildRequires: apr-util-devel >= 0.9.4
BuildRequires: binutils-devel
BuildRequires: pcre-devel
BuildRequires: gtk-doc >= 1.0
BuildRequires: gnome-doc-utils >= 0.4.2
BuildRequires: apr-devel >= 1.2.2
BuildRequires: gd-devel
BuildRequires: graphviz-devel
BuildRequires: scrollkeeper
BuildRequires:  howl-devel
BuildRequires: glade3-devel >= 3.6.0
BuildRequires: ImageMagick
Requires: autogen
Requires: glade3
BuildRoot: %{_tmppath}/%{pkgname}-%{version}-buildroot
Requires:   glibc >= 2.10.1
Requires:   libstdc++6 >= 4.4.1
Obsoletes:  %name < %version
Conflicts:  gnome-build
Obsoletes:  anjuta < %version
Provides:   anjuta = %version

%description
Anjuta DevStudio is a versatile Integrated Development Environment (IDE)
on GNOME Desktop Environment and features a number of advanced
programming facilities. These include project management, application and
class wizards, an on-board interactive debugger, powerful source editor,
syntax highlighting, intellisense autocompletions, symbol navigation,
version controls, integrated GUI designing and other tools.

Anjuta 2.x is the next generation Anjuta development studio with extensible
plugin architecture. The new architecture allows writing independent
plugins that could interact with existing plugins. Most of the older
features have been already ported to the new architecture and are working.

#german
%description -l de
Anjuta DevStudio ist eine vielseitige Integrierte Entwicklungs-Umgebung (IDE)
für die GNOME Desktop-Umgebung und bietet eine Reihe fortgeschrittener
Möglichkeiten der Programmierung. Dazu gehören Projekt-Managemente, Anwendungs- und
Klassen Assistenten, ein On-Board interaktive Debugger, leistungsstarke Source-Editor,
Syntax-Hervorhebung, intellisense autocompletions, Symbol Navigation,
Versionskontrolle, integrierte GUI-Gestaltung und andere Werkzeuge.

Anjuta 2.x ist die nächste Generation Anjuta Development Studio mit erweiterbarer
Plugin-Architektur. Die neue Architektur erlaubt das Schreiben unabhängigen
Plugins, interagieren anderen Plugins. Die meisten der älteren Funktionen wurden
bereits portiert auf die neue Architektur und arbeiten.


%package devel
Summary: Anjuta 2 devel files
Group: Development/Other
Requires: %name = %version
Provides: libanjuta-devel

%description devel
Anjuta 2 devel files

%description devel -l de
Anjuta 2 Entwickler Dateien

%prep
%setup -q -n %{pkgname}-%{version}
%patch -p1 -b .format-strings
%patch1 -p1

%build
%configure2_5x \
    --disable-static \
    --enable-plugin-sourceview

%make

%install
rm -rf %{buildroot} *.lang
%makeinstall_std

desktop-file-install --vendor="" \
  --remove-key='Encoding' \
  --add-category="IDE" \
  --add-category="X-MandrivaLinux-MoreApplications-Development-DevelopmentEnvironments" \
  --dir $RPM_BUILD_ROOT%{_datadir}/applications $RPM_BUILD_ROOT%{_datadir}/applications/*

# icons
mkdir -p %{buildroot}%{_iconsdir} %{buildroot}%{_miconsdir}
install -m 644 -D       pixmaps/anjuta_logo.png %{buildroot}%{_liconsdir}/%{pkgname}.png
convert -geometry 32x32 pixmaps/anjuta_logo.png %{buildroot}%{_iconsdir}/%{pkgname}.png
convert -geometry 16x16 pixmaps/anjuta_logo.png %{buildroot}%{_miconsdir}/%{pkgname}.png

%find_lang %{pkgname} --with-gnome
%find_lang anjuta-build-tutorial --with-gnome
cat anjuta-build-tutorial.lang >> anjuta.lang

# remove unneeded and conflictive files
rm -f %{buildroot}%{_libdir}/libanjuta*.la \
      %{buildroot}%{_libdir}/libanjuta*.a \
      %{buildroot}%{_datadir}/mime/XMLnamespaces \
      %{buildroot}%{_datadir}/mime/aliases \
      %{buildroot}%{_datadir}/mime/globs \
      %{buildroot}%{_datadir}/mime/magic \
      %{buildroot}%{_datadir}/mime/subclasses
rm -rf %{buildroot}/%{_docdir}

%clean
rm -rf %{buildroot}

%define schemas anjuta-build-basic-autotools-plugin anjuta-cvs-plugin anjuta-document-manager anjuta-editor-sourceview anjuta-language-cpp-java anjuta-message-manager-plugin  anjuta-terminal-plugin

%post
%update_menus
%post_install_gconf_schemas %{schemas}
%update_icon_cache hicolor
%update_mime_database
/sbin/ldconfig

%preun
%preun_uninstall_gconf_schemas %{schemas}

%postun
%clean_menus
%clean_icon_cache hicolor
%clean_mime_database
/sbin/ldconfig

%files -f %{pkgname}.lang
%defattr(-,root,root)
%{_sysconfdir}/gconf/schemas/*.schemas
%{_bindir}/*
%{_libdir}/glade3/modules/*
%{_libdir}/anjuta
%{_datadir}/anjuta
%{_datadir}/glade3/catalogs/*.xml
%{_datadir}/applications/*.desktop
%{_datadir}/gtk-doc/html/libanjuta*
%{_datadir}/icons/gnome/*/mimetypes/*
%{_mandir}/man1/anjuta.1*
%{_mandir}/man1/anjuta-launcher.1*
%{_datadir}/mime/packages/anjuta.xml
%{_datadir}/pixmaps/anjuta
%{_datadir}/icons/hicolor/*/apps/*
%{_datadir}/omf/anjuta-manual/*.omf
%{_liconsdir}/%{pkgname}.png
%{_iconsdir}/%{pkgname}.png
%{_miconsdir}/%{pkgname}.png
%{_datadir}/gnome/help/anjuta-manual/
%{_datadir}/gnome/help/anjuta-faqs/
%_libdir/*.so.%{major}*

%files devel
%defattr(-,root,root)
%_libdir/*.so
%_includedir/libanjuta-1.0
%_libdir/pkgconfig/*.pc


%changelog
* Tue Jan 05 2010 maik3531 <maik3531 at yahoo dot de> 2.29.4.0-1pclos2010
- update to version 2.29.4.0
- add german description
- add fix-linking patch

* Fri Oct 23 2009 maik3531 <maik3531 at yahoo dot de> 2.28.1.0-1pclos2010
- rebuild to pclos2010 imported from mdv
- merge into 2 packages (tex)
- fix menu entry (tex)
- remove suggests not supported in apt/synaptic (tex)
- add glibc requirements (tex)
- add conflict to gnome-build (tex)
- fix schemas (tex)



Code: [Select]
/usr/bin/ld: cannot find -lxcb-xlib
collect2: ld returned 1 exit status
libtool: install: error: relink `libanjuta-language-cpp-java.la' with the above command before installing it
make[4]: *** [install-pluginLTLIBRARIES] Fehler 1
make[4]: Leaving directory `/home/maik3531/RPM/BUILD/anjuta-2.29.4.0/plugins/language-support-cpp-java'
make[3]: *** [install-am] Fehler 2
make[3]: Leaving directory `/home/maik3531/RPM/BUILD/anjuta-2.29.4.0/plugins/language-support-cpp-java'
make[2]: *** [install-recursive] Fehler 1
make[2]: Leaving directory `/home/maik3531/RPM/BUILD/anjuta-2.29.4.0/plugins/language-support-cpp-java'
make[1]: *** [install-recursive] Fehler 1
make[1]: Leaving directory `/home/maik3531/RPM/BUILD/anjuta-2.29.4.0/plugins'
make: *** [install-recursive] Fehler 1
Fehler: Fehler-Status beim Beenden von /home/maik3531/RPM/tmp/rpm-tmp.73912 (%install)

I put the files in a folder in Dropbox
« Last Edit: January 07, 2010, 03:59:04 PM by maik3531 »
Please excuse my English

Offline MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1317
Re: /usr/bin/ld: cannot find -lxcb-xlib
« Reply #7 on: January 07, 2010, 05:13:02 PM »
Hi again,

looks like it's an unstable version you are building - the developers encourage users to test the install and report errors to them, see:

http://projects.gnome.org/anjuta/downloads.shtml

Quote
Latest unstable Anjuta 2.29.x releases

Latest unstable releases are available here. Anjuta now follows GNOME release planning and version numbering scheme. Unstable versions have a odd minor version number while stable version have a even minor version number. We encourage to use it and help us with bug reports. Some more information can be found at Anjuta wiki.


The latest stable version is 2.28, I would suggest to build this if it's for PCLinux repository,

cheers,
MBantz

Offline cyrylas

  • Full Member
  • ***
  • Posts: 81
Re: /usr/bin/ld: cannot find -lxcb-xlib
« Reply #8 on: January 07, 2010, 05:30:23 PM »
Yes, I'm not building any package, but I just want to help diagnose the problem :)

I think it's not related with building packages or any particular program, but generally with system changes after big update on January third. So, it may be indeed wrong section.

Offline MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1317
Re: /usr/bin/ld: cannot find -lxcb-xlib
« Reply #9 on: January 07, 2010, 06:32:25 PM »
Sorry cyrylas! Got you mixed up with the OP!

My guess is that the code simply isn't stable for release yet, and the programmers just ask people to help out testing. Fair enough. I usually don't spend much time on unstable code, (but much on stable :-) so I'll buff out of this thread again,

btw. does the stable version compile?

cheers,
MBantz

« Last Edit: January 07, 2010, 06:35:22 PM by MBantz »

Offline maik3531

  • Full Member
  • ***
  • Posts: 129
Re: /usr/bin/ld: cannot find -lxcb-xlib
« Reply #10 on: January 07, 2010, 07:55:09 PM »
It's not the program! also with older version of the same problem. I need the program not only for myself, it would create the repo but after the update, there are some problems. My concern was really whether we can work around this error, or whether they should wait until these issues are resolved.


-L de
Es liegt nicht am Programm ! auch mit älterer Version das gleiche Problem. Ich brauche das Programm auch nicht selber wollte es nur für das Repo erstellen doch nach dem Update gibt es einige Probleme. Mein Anliegen war eigentlich ob man diesen Fehler umgehen kann oder ob man warten sollte bis die genannten Probleme behoben sind.   
Please excuse my English

Offline MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1317
Re: /usr/bin/ld: cannot find -lxcb-xlib
« Reply #11 on: January 08, 2010, 04:34:05 AM »
Ok, if it affects the libraries as a whole, I'm in - thanks for the clarification.

I'll take a look at it again later today,

cheers,
M

Offline Texstar

  • Administrator
  • Super Villain
  • *****
  • Posts: 12540
Re: /usr/bin/ld: cannot find -lxcb-xlib
« Reply #12 on: January 08, 2010, 08:55:36 AM »
Did either of you read the posts about clearing the *.la files on the developer mailing list?

Thanks to everyone who donates. You keep the servers running.

Offline cyrylas

  • Full Member
  • ***
  • Posts: 81
Re: /usr/bin/ld: cannot find -lxcb-xlib
« Reply #13 on: January 08, 2010, 09:19:28 AM »
Did either of you read the posts about clearing the *.la files on the developer mailing list?
I admin that I did not. I don't have access to this list. I'm only on pclos-testers, but it looks dead.
Which *.la files should be cleared?

Offline MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1317
Re: /usr/bin/ld: cannot find -lxcb-xlib
« Reply #14 on: January 08, 2010, 12:05:16 PM »
Ah, it's a mail Tex sent four days ago, explains it all I guess,

are you both on the list?

snip...

Quote
I am in need of a post script to clean out xcb-xlib entries in our *.la files
due to a change in the libxcb package.

snip...