Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Weird DNS resolver issue by some apps
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
matysek
n00b
n00b


Joined: 01 Oct 2006
Posts: 11

PostPosted: Tue Sep 02, 2008 8:52 pm    Post subject: [SOLVED] Weird DNS resolver issue by some apps Reply with quote

Hi,
for 1-2 months I'm experiencing that some apps are not able to resolve hostnames.
Examples of issue:
* liferea:

Code:
"The last update of this subscription failed! HTTP error code 0: Hostname could not be found"


* layman, when trying to fetch overlay list (layman -f)

Code:
* Failed to update the overlay list from: http://www.gentoo.org/proj/en/overlays/layman-global.txt
* Error was:
* <urlopen error (-2, 'Name or service not known')>


Apps, that I use, not having this problem: PSI, Evolution, Xchat
So I think that this must me a system-wide problem.

Before this problem appeared I tried 'emerge --depclean' and upgrading to GCC 4.3. Then I downgraded back to GCC 4.1 and did 'emerge -e system' and world. But It didn't helped. I don't know what another I can do.

My configuration:
Code:
Portage 2.1.4.4 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.27-rc5 i686)
=================================================================
System uname: 2.6.27-rc5 i686 AMD Turion(tm) 64 X2 Mobile Technology TL-60
Timestamp of tree: Mon, 01 Sep 2008 18:36:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r6
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mtune=k8 -msse3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -mtune=k8 -msse3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.fi.muni.cz/pub/linux/gentoo/ http://de-mirror.org/distro/gentoo/ http://gentoo.ynet.sk/pub "
LANG="cs_CZ.UTF-8"
LC_ALL="cs_CZ.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="cs en"
MAKEOPTS="-j2 -s "
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/mnt/var/portg_tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/pythonhead /data/gentoo/gent-ebuild"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7Zip X a52 aac aalib acl acpi aiglx aim alsa amr ao applet asf async automount avahi bash-completion berkdb bidi bluetooth branding bzip2 cairo caps cdaudio cdda cddb cdio cdparanoia cdr cli commercial config_wizard consolekit cpudetection cracklib crypt cups custom-optimization dbus dga djvu dlloader dri dts dv dvd dvdr dvdread eds effects emboss encode esd evo exif exscalibar ext-man ext-rtf ext-tex extraicons extramodules fam fat ffmpeg fftw flac flash foomatic-db fortran freetype gdbm gif gimp gimpprint git glib gmp gnome gnome-keyring gnutls gphoto2 gpm gs gsm gstreamer gtk gtk2 hal hfs iconv icq icu ieee1394 imap inkjar irc isdnlog jabber java jfs jpeg kdehiddenvisibility kqemu lame laptop ldap libcaca libnotify libsamplerate live lm_sensors loop-aes lzo mad matroska mdnsresponder-compat midi mikmod mjpeg mmx mng mp3 mp3rtp mpeg msn mudflap musepack musicbrainz ncurses network networkmanager new-login nls nptl nptlonly nsplugin ntfs ogg openexr opengl openmp pam pch pcmcia pcre pdf perl plugin png ppds pppd pulseaudio pwdb python qt qt3 qt3support qt4 quicktime rar rdesktop readline real reflection reiser4 reiserfs rss samba scanner sdl session skins slp sndfile speech speex spell spl sqlite sse sse2 ssl startup-notification stream streams subversion svg svga switch_all_desktops sysfs taglib tcpd theora threads tiff truetype udev unicode usb v4l v4l2 vcd vim-syntax vorbis webservices wifi win32codecs wmf wxwindows x264 x86 xfs xine xinerama xml xorg xosd xpm xprint xscreensaver xsl xulrunner xv xvid xvmc yahoo zeroconf zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="cs en" USERLAND="GNU" VIDEO_CARDS="dummy fbdev radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Last edited by matysek on Tue Sep 09, 2008 4:40 pm; edited 1 time in total
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1428

PostPosted: Tue Sep 02, 2008 9:58 pm    Post subject: Reply with quote

Try using the "emerge wrapper" in my signature to properly rebuild your toolchain. You should never upgrade or downgrade GCC without upgrading/downgrading/rebuilding the toolchain. If I remember right, the command is:
Code:

./emwrap.sh -wuDb

_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Back to top
View user's profile Send private message
jcat
Veteran
Veteran


Joined: 26 May 2006
Posts: 1337

PostPosted: Wed Sep 03, 2008 3:00 pm    Post subject: Reply with quote

Yup, you need to rebuild the tool chain, _then_ rebuild system then world. Do a gcc-config as appropriate, then
Code:
env-update && source /etc/profile && emerge -1 libtool && emerge -e system && emerge -e world
.

You probably want to do it in stages instead of using the conditional statement above, chances are that one or two emerge's will fail.



Cheers,
jcat
Back to top
View user's profile Send private message
matysek
n00b
n00b


Joined: 01 Oct 2006
Posts: 11

PostPosted: Fri Sep 05, 2008 4:11 pm    Post subject: Reply with quote

Thanks for your help, but recompiling whole gentoo didn't work.
The problem with liferea and layman remains.

All what I did:

1) ./emwrap.sh -wuDb
2) recompiled toolchain ( ./emwrap -Sb )
3) recompiled system ( ./emwrap -se )
4) recompiled world ( ./emwrap -we )

During recompilation I've noticed python error messages like this:
Code:

 * Byte compiling python modules for python-2.5 .. ...
Compiling /usr/lib/python2.5/site-packages/Cheetah/Tests/NameMapper.py ...
  File "/usr/lib/python2.5/site-packages/Cheetah/Tests/NameMapper.py", line 15
    from __future__ import generators
SyntaxError: from __future__ imports must occur at the beginning of the file


Do you have please any other idea or direction? I'm being a bit hopeless.
Do you think that recompile whole gentoo with libtool 2.2.3 instead of 1.5.26 could help?
Back to top
View user's profile Send private message
matysek
n00b
n00b


Joined: 01 Oct 2006
Posts: 11

PostPosted: Tue Sep 09, 2008 4:37 pm    Post subject: Reply with quote

I've solved this problem by deleting "almost" files from folder /etc and
then I have emerged again toolchain, system, world.
During emerging all default configuration files in /etc were recreated.
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