ghostscript-gpl-8.62 does not build gnutls as a dependency automatically even though it is required to build. It must be manually built or in USE flags. Use flags at time of build error : USE="multiprocess curl pam gtk png spell ssl gif gd jpeg lzo zlib postgres server sockets soap unicode pear php mysqli mysql opengl threads java" Other settings : CFLAGS="-O2 -march=i686 -pipe" CXXFLAGS="-O2 -march=i686 -pipe" CHOST="i686-pc-linux-gnu" MAKEOPTS="-j2" ACCEPT_KEYWORDS="~x86" AUTOCLEAN="yes"
This was an update from the initial 2008.0 r1 install (x86). After ports sync and portage update this was ran: > emerge -uDN world
This is after updating/installing gnutls : i686-pc-linux-gnu-gcc -DHAVE_MKSTEMP -DHAVE_HYPOT -DHAVE_FILE64 -DHAVE_MKSTEMP64 -DHAVE_FONTCONFIG -O2 -fPIC -Wall -Wstrict-prototypes -Wundef -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -Wno-strict-aliasing -fno-builtin -fno-common -DHAVE_STDINT_H -DGX_COLOR_INDEX_TYPE="unsigned long long" -O2 -march=i686 -pipe -DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\"/usr/lib/ghostscript/8.62\" -I./obj/../soobj -I./src -g -o ./bin/../sobin/gsc ./src/dxmainc.c -L./bin/../sobin -lgs /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld: warning: libgnutls.so.13, needed by /usr/lib/libcupsimage.so.2, not found (try using -rpath or -rpath-link) /usr/lib/libcups.so.2: undefined reference to `gnutls_record_check_pending@GNUTLS_1_3' /usr/lib/libcups.so.2: undefined reference to `gnutls_record_send@GNUTLS_1_3' /usr/lib/libcups.so.2: undefined reference to `gnutls_init@GNUTLS_1_3' /usr/lib/libcups.so.2: undefined reference to `gnutls_set_default_priority@GNUTLS_1_3' /usr/lib/libcups.so.2: undefined reference to `gnutls_transport_set_push_function@GNUTLS_1_3' /usr/lib/libcups.so.2: undefined reference to `gnutls_transport_set_pull_function@GNUTLS_1_3' /usr/lib/libcups.so.2: undefined reference to `gnutls_certificate_allocate_credentials@GNUTLS_1_3' /usr/lib/libcups.so.2: undefined reference to `gnutls_record_recv@GNUTLS_1_3' /usr/lib/libcups.so.2: undefined reference to `gnutls_handshake@GNUTLS_1_3' /usr/lib/libcups.so.2: undefined reference to `gnutls_deinit@GNUTLS_1_3' /usr/lib/libcups.so.2: undefined reference to `gnutls_global_init@GNUTLS_1_3' /usr/lib/libcups.so.2: undefined reference to `gnutls_credentials_set@GNUTLS_1_3' /usr/lib/libcups.so.2: undefined reference to `gnutls_transport_set_ptr@GNUTLS_1_3' /usr/lib/libcups.so.2: undefined reference to `gnutls_bye@GNUTLS_1_3' /usr/lib/libcups.so.2: undefined reference to `gnutls_certificate_free_credentials@GNUTLS_1_3' collect2: ld returned 1 exit status make[1]: *** [bin/../sobin/gsc] Error 1 make[1]: Leaving directory `/var/tmp/portage/app-text/ghostscript-gpl-8.62/work/ghostscript-8.62' make: *** [so] Error 2
In future, please read the large red text on the product selection page better: "Bugs related to ebuilds belong in 'Gentoo Linux'"
Please run revdep-rebuild, there is a change in gnutls that cause libcups to break.
(In reply to comment #4) > Please run revdep-rebuild, there is a change in gnutls that cause libcups to > break. > FYI: revdep-rebuild does nothing for me, I tried it a few times before even searching for this bug on google. I also manually rebuilt gnutls, to no avail. I am attempting to do updates with a new gentoo install. Suffice it to say, it's not working out well. I am now attempting a rebuild of cups and gnomecups.
the quick way around it is to add -cups when compiling ghostscript-gpl-8.62
Yes, I just thought of that about a minute ago, before coming back to mention that this really is a bug. Isn't it? If so, how come it's marked as resolved/invalid?
I'm new to this, so how does one "add -cups when compiling ghostscript-gpl-8.62"? In the original description it says gnutls needs to be in the USE variable -- I had it there and that makes no difference at all. I've tried revdep-rebuild (it just rebuilds gcc-4.1.2 over and over, and that is TEDIOUS). I've tried manually emerging cups and gutils (neither of which affects revdep-rebuild). I will now manually build gnomecups. But I think I need to recreate the gnutls 1.3 shared library. Should that fix the problem?