Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 234044 - ghostscript-gpl-8.62 does not build gnutls by itself
Summary: ghostscript-gpl-8.62 does not build gnutls by itself
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Bugzilla (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-06 02:55 UTC by Otto
Modified: 2011-10-30 23:15 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Otto 2008-08-06 02:55:07 UTC
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"
Comment 1 Otto 2008-08-06 02:57:14 UTC
This was an update from the initial 2008.0 r1 install (x86).

After ports sync and portage update this was ran:
> emerge -uDN world
Comment 2 Otto 2008-08-06 02:59:05 UTC
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
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-08-06 04:26:42 UTC
In future, please read the large red text on the product selection page better:
"Bugs related to ebuilds belong in 'Gentoo Linux'"
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-08-06 07:22:27 UTC
Please run revdep-rebuild, there is a change in gnutls that cause libcups to break.
Comment 5 Trenton D. Adams 2008-08-12 07:05:25 UTC
(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.
Comment 6 Otto 2008-08-12 07:13:38 UTC
the quick way around it is to add -cups when compiling ghostscript-gpl-8.62
Comment 7 Trenton D. Adams 2008-08-14 04:44:18 UTC
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?
Comment 8 Charles Marslett 2008-08-16 23:58:35 UTC
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?