Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
samba install failure
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
iaw
Tux's lil' helper
Tux's lil' helper


Joined: 20 Dec 2004
Posts: 81

PostPosted: Tue Nov 28, 2006 1:27 am    Post subject: samba install failure Reply with quote

dear gentoo-experts:

Probably another error of mine, so I did not report this to the bugs data base. when I emerge samba, I get

/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lcups
collect2: ld returned 1 exit status
make: *** [bin/smbd] Error 1

!!! ERROR: net-fs/samba-3.0.22-r3 failed.
Call stack:
ebuild.sh, line 1546: Called dyn_compile
ebuild.sh, line 937: Called src_compile
samba-3.0.22-r3.ebuild, line 132: Called die

# locate libcups
/usr/lib/libcupsimage.so
/usr/lib/libcups.so
/usr/lib64/libcupsimage.so.2
/usr/lib64/libcups.so.2
/usr/lib64/libcupsimage.a
/usr/lib64/libcups.a
/usr/lib64/libcupsimage.so
/usr/lib64/libcups.so

# emerge --info
Portage 2.1.1-r2 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r4, 2.6.18.1 i686)
=================================================================
System uname: 2.6.18.1 i686 Intel(R) Celeron(R) CPU 2.00GHz
Gentoo Base System version 1.12.6
Last Sync: Mon, 27 Nov 2006 08:30:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python: 2.3.5-r2, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache: [Not Present]
dev-util/confcache: [Not Present]
sys-apps/sandbox: 1.2.17
sys-devel/autoconf: 2.13, 2.60
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils: 2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=i686 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://mirror.clarkson.edu/pub/distributions/gentoo ftp://gentoo.mirrors.pair.com ftp://mirror.nutsmaas.nl/gentoo/"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aalib acpi alsa apache2 berkdb bitmap-fonts bonobo bzip2 bzlib calendar cdr cli cracklib crypt cups curl directfb dlloader dri dv dvd dvdr elibc_glibc emacs encode esd f77 fbcon fortran ftp g77 gcj gd gdbm ggi gif gnome gphoto2 gpm gtk gtkhtml guile hardened i386 iconv ieee1394 imagemagick imap imlib input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog java javascript jpeg kde kdeenablefinal kernel_linux ldap libedit libg++ libwww lm_sensors mbox mime mmx motif mozilla mp3 mpeg mval mysql nas ncurses nls nptl nptlonly opengl pam pcre perl png postgres ppds pppd python qt qt3 readline reflection ruby samba scanner sdl session slang snmp soap spell spl ssl symlink tcltk tcpd tetex threads tidy truetype truetype-fonts type1-fonts udev ungif unicode usb userland_GNU video_cards_apm video_cards_ark video_cards_ati video_cards_chips video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_fbdev video_cards_glint video_cards_i128 video_cards_i740 video_cards_i810 video_cards_imstt video_cards_mga video_cards_neomagic video_cards_nsc video_cards_nv video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_sisusb video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_vga video_cards_via video_cards_vmware video_cards_voodoo xinerama xml xml2 xorg zlib"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

ring a bell somewhere?

regards,

/iaw
_________________
/iaw
Back to top
View user's profile Send private message
PMcCauley
Apprentice
Apprentice


Joined: 14 Mar 2006
Posts: 283
Location: Alberta, Canada

PostPosted: Tue Nov 28, 2006 2:04 am    Post subject: Reply with quote

Hello iaw, Maybe try re-emerging cups.

Patrick
Back to top
View user's profile Send private message
iaw
Tux's lil' helper
Tux's lil' helper


Joined: 20 Dec 2004
Posts: 81

PostPosted: Wed Nov 29, 2006 1:45 pm    Post subject: Reply with quote

even after cups emerge, this still fails. time to file a bug report?
_________________
/iaw
Back to top
View user's profile Send private message
PMcCauley
Apprentice
Apprentice


Joined: 14 Mar 2006
Posts: 283
Location: Alberta, Canada

PostPosted: Wed Nov 29, 2006 4:02 pm    Post subject: Reply with quote

One other thing I would recommend is try reemerging with a base make.conf file without all the use flags incase one of them are causing a conflict. Could emerge -pv to see affecting use flags.

Patrick
Back to top
View user's profile Send private message
KrahnacK
n00b
n00b


Joined: 08 Apr 2006
Posts: 3
Location: grenoble, france

PostPosted: Wed Nov 29, 2006 7:50 pm    Post subject: Reply with quote

Quote:
ld: cannot find -lcups


seems to be a linking error...
i don't think a rebuild of samba would fix it (may be rebuild cups would help, but not sure)

try to use ldconfig to fix it
i'm not familiar with it, but it should be something like

Code:
ldconfig -l /usr/lib/libcups.so
Back to top
View user's profile Send private message
PMcCauley
Apprentice
Apprentice


Joined: 14 Mar 2006
Posts: 283
Location: Alberta, Canada

PostPosted: Thu Nov 30, 2006 5:20 am    Post subject: Reply with quote

After some research I am able to recreate this issue by removing this file: /usr/lib/libcups.a. There is a fairly good chance that is the file at fault so check to make sure it is there. Since you have reemerged cups it really should be there so maybe a corrupt filesystem so run the appropriate fsck command. Also maybe the output of this command would help "ldconfig -p |grep libcups.so".

Patrick
Back to top
View user's profile Send private message
iaw
Tux's lil' helper
Tux's lil' helper


Joined: 20 Dec 2004
Posts: 81

PostPosted: Fri Dec 01, 2006 11:02 pm    Post subject: Reply with quote

thank you. I uninstalled cups and reinstalled it. alas, now I know that cups decides to move itself into /usr/lib64, and this one was not in the path. (earlier link in /usr/lib/ was a dead link.)

I added /usr/lib64/ to the path. This seems to fix the problem. how interesting---even on a 32bit machine, /usr/lib64 becomes live.

regards,

/iaw
_________________
/iaw
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum