After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 566055 - envice autogen/configure do not remind lack of dependency for libgs-dev
envice autogen/configure do not remind lack of dependency for libgs-dev
Status: RESOLVED NOTGNOME
Product: evince
Classification: Core
Component: PS
git master
Other All
: Normal normal
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-12-30 14:56 UTC by seenxu
Modified: 2008-12-30 22:52 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24



Description seenxu 2008-12-30 14:56:17 UTC
Please describe the problem:
system spec: ubuntu 8.10 64bit

evince trunk: r3313

problem: compilation failed

msg:
make[3]: Leaving directory `/home/seen/svn_build/evince/backend/pdf'
Making all in ps
make[3]: Entering directory `/home/seen/svn_build/evince/backend/ps'
/bin/bash ../../libtool --tag=CC   --mode=link gcc  -g -O2 -module
-avoid-version  -o libpsdocument.la -rpath
/usr/local/lib/evince/backends ev-spectre.lo
../../libdocument/libevbackend.la -L/usr/local/lib -lgtk-x11-2.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 -lz
-lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0   -lspectre
libtool: link: gcc -shared  .libs/ev-spectre.o   -Wl,-rpath
-Wl,/home/seen/svn_build/evince/libdocument/.libs
../../libdocument/.libs/libevbackend.so -L/usr/local/lib -L/usr/lib
/usr/lib/libxml2.so /usr/lib/libgtk-x11-2.0.so
/usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so
/usr/lib/libpangoft2-1.0.so /usr/lib/libgdk_pixbuf-2.0.so
/usr/lib/libpangocairo-1.0.so /usr/lib/libgio-2.0.so
/usr/local/lib/libcairo.so /usr/local/lib/libpixman-1.so
/usr/lib/libfreetype.so -lpng12 -lXrender -lX11 -lm
/usr/lib/libpango-1.0.so /usr/local/lib/libfreetype.so -lz
-lfontconfig /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so
/usr/lib/libglib-2.0.so /usr/lib/libspectre.so -lgs    -Wl,-soname
-Wl,libpsdocument.so -o .libs/libpsdocument.so
/usr/bin/ld: cannot find -lgs
collect2: ld returned 1 exit status
make[3]: *** [libpsdocument.la] Error 1
make[3]: Leaving directory `/home/seen/svn_build/evince/backend/ps'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/seen/svn_build/evince/backend'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/seen/svn_build/evince'
make: *** [all] Error 2

to solve the problem, we shall do "sudo aptitude install libgs-dev"

Steps to reproduce:
in svn trunk directory

1. autogen.sh (do not remind any lack of dependency)
2. make
3. fail with the above "msg"

* make sure haven't install libgs-dev, otherwise the compilation will pass 


Actual results:
compilation failed

Expected results:
compilation sucessful

Does this happen every time?
yes, if you don't install the dependency.

Other information:
nothing else.
Comment 1 Carlos Garcia Campos 2008-12-30 16:24:24 UTC
libgs is not a direct dependency of evince, it's libspectre which depends directly on libgs. The check is already done in libspectre configure script indeed. It's a bug in your distribution packages I'd say. 
Comment 2 seenxu 2008-12-30 22:52:37 UTC
thx for your reply with the detailed answer.