Re: [gentoo-user] Re: Changing glibc

2014-08-19 Thread Timur Aydin
No other diff program comes even close to BC in terms of diff output 
quality and merge capability. I am willing to go through much more hoops 
than this just to be able to use this under linux.


And also, to avoid any misrepresentation, their support in determining 
the cause of the issue was very good.


The problem seems to be that their linux build is using an older gcc 
version. This was causing an ABI related crash in the strstr function, 
which was using SSE instructions.


So at some point, they will probably switch to a newer compiler and the 
problem will go away. But if I mail their support, it would take many 
messages until we come to the same page (the previous developer getting 
copied on it, he remembers the issue etc etc). It is much faster to just 
try it :)


--
Timur



[gentoo-user] Changing glibc

2014-08-18 Thread Timur Aydin

Hi,

I am using a closed source software package on my 64 bit gentoo linux 
system. The software package is beyond compare by scooter soft. 
Because of the way this package is built, it needs a specially patched 
version of glibc. I have patched my existing glibc version (2.18) and 
have been avoiding updating my glibc since. Now I am wondering whether 
the latest update of bcompare will work with the latest glibc (2.19).


So, if I upgrade to 2.19 and the package doesn't work, how can I go back 
to the working, patched 2.18? I know that portage issues the most scary 
warnings when you try to downgrade glibc. So what does the community 
recommend?


--
Timur



Re: [gentoo-user] Changing glibc

2014-08-18 Thread Timur Aydin
Thanks a lot guys for the helpful responses. I will definitely try all 
of them, just for the learning experience, even if one does take care of 
the problem.


Cheers!

--
Timur



[gentoo-user] Forwarding bug in kernel 3.14.1 and 3.14.2

2014-05-05 Thread Timur Aydin
Hi,

To all folks that use their gentoo linux PC as their internet
router/gateway, don't upgrade your kernel to 3.14.1 or 3.14.2.

These versions have a bug related to IP packet forwarding. Internet
upload speed for the NAT clients gets extremely slow (in the order of
10Kbps), which download speed remain unaffected. I have spent the entire
weekend trying to debug the slow upload issue. I tried different NIC's,
different cables, different clients etc, problem was still occurring.
Upload/download from the Gentoo linux PC is fine, but any NAT client
exhibits the slow upload speed problem. I also suspected that somehow
the MSS clamping with iptables doesn't work, that wasn't the problem
either, because even with all tables flushed and only IP MASQUERADING in
place the problem was there.

I finally found a bug report that explains the symtom:

http://www.spinics.net/lists/netdev/msg280571.html

I then downgraded the kernel to 3.13.11, which fixed the problem. So,
all of you guys using your Gentoo PC as your internet gateway, keep
3.13.11 around for a while.

-- 
Timur



[gentoo-user] VPN question

2013-12-23 Thread Timur Aydin
Hello everybody,

I have a gentoo linux PC at home that I am using as my internet gateway.
It is also running a web server and a mail server with a static IP.
Everything is working fine.

Now I have installed a VPN server on this system (OpenVPN) and I am
using a VPN service provider to get a USA IP address. This, in its own,
works fine as well. But once I bring up the VPN tunnel, the web server
and the mail server become unavailable.

So, I need a way to have both the VPN tunnel and my web/mail servers
available simultaneously. I think some ip routing magic is required to
accomplish this, but all my experiments so far didn't yield any result.
I would appreciate if somebody can put me in the right direction for
finding a solution.

-- 
Timur



[gentoo-user] VPN question

2013-12-23 Thread Timur Aydin
Hello everybody,

I have a gentoo linux PC at home that I am using as my internet gateway.
It is also running a web server and a mail server with a static IP.
Everything is working fine.

Now I have installed a VPN server on this system (OpenVPN) and I am
using a VPN service provider to get a USA IP address. This, in its own,
works fine as well. But once I bring up the VPN tunnel, the web server
and the mail server become unavailable.

So, I need a way to have both the VPN tunnel and my web/mail servers
available simultaneously. I think some ip routing magic is required to
accomplish this, but all my experiments so far didn't yield any result.
I would appreciate if somebody can put me in the right direction for
finding a solution.

-- 
Timur



Re: [gentoo-user] VPN question

2013-12-23 Thread Timur Aydin
On 12/23/13 17:55, Michael Orlitzky wrote:
 On 12/23/2013 07:47 AM, Timur Aydin wrote:
 Hello everybody,

 I have a gentoo linux PC at home that I am using as my internet gateway.
 It is also running a web server and a mail server with a static IP.
 Everything is working fine.

 Now I have installed a VPN server on this system (OpenVPN) and I am
 using a VPN service provider to get a USA IP address.
 Can you give us a better idea of what is running where? Who is the VPN
 client, who is the server, what are the IP addresses, hostnames, etc?



I am located in Turkey. The VPN service provider is
http://www.strongvpn.com and they have servers all over the world. I am
using their server located in New York. Once I establish the SSL VPN
tunnel, the NY server effectively becomes my internet gateway. I need to
do this to get around websites that impose geographical restrictions on
their service (example, netflix.com, pandora.com). With the tunnel, I
look like I am located in NY and the website has no way of knowing that
I am in Turkey.

Regarding IP address, do you mean the USA IP address I receive from the
VPN service provider or my ISP assigned static IP?

Timur




Re: [gentoo-user] VPN question

2013-12-23 Thread Timur Aydin
On 12/23/13 18:12, Michael Orlitzky wrote:
 Anything you can provide, it's not clear to the rest of us how many
 computers are involved. Is the web/mail server only the gatway, or is
 that the workstation that you're using (when, for example, trying to
 access the website)?

This is my home network, 10.2.0.0/16. Multiple computers with
Windows/Linux/Mac. On some subnets, I have gadgets that also need access
to the internet.

The linux PC is the internet gateway with a static IP from my ISP. But
it is also used as my Linux workstation. The web server and email server
must be accessible from the internet and they are accessible if the
tunnel isn't up.

 What IP address are you using to access the web server? Its internal
 one, or its external one? Is the website supposed to be visible externally?

I can access both the web server and the mail server from the internal
network, no problems there. But, when the VPN tunnel comes up, all
external accesses stop working.

 It might also help to know which routes are set up by the VPN. Once
 you've connected to an OpenVPN server, it usually pushes a bunch of
 routes to the client (so that the client knows how to route to the VPN
 without caring about the details). A `sudo route -n` or `sudo ip route
 show` should suffice once we know which IPs belong to whom.

bonsai ~ # ip route show
default via 92.44.0.41 dev ppp0  metric 4007
10.2.1.0/24 dev eno1  proto kernel  scope link  src 10.2.1.254
10.2.2.0/24 dev enp1s0  proto kernel  scope link  src 10.2.2.254
10.2.3.0/24 dev enp8s0  proto kernel  scope link  src 10.2.3.254
92.44.0.41 dev ppp0  proto kernel  scope link  src 176.41.233.165
127.0.0.0/8 dev lo  scope host
127.0.0.0/8 via 127.0.0.1 dev lo

Here, 10.2.1.0 is the main subnet with the various Windows/Linux/Mac
PC's. The other two subnets have electronic gadgets that also need
internet access. I keep them on separate subnets while I do embedded
software development on them so that the are isolated them from the main
subnet.



Re: [gentoo-user] VPN question

2013-12-23 Thread Timur Aydin
On 12/23/13 18:24, Burak Arslan wrote:
 Once the VPN connection is established, among the routes pushed by your
 OpenVPN provider is also a default gateway entry which routes every
 non-local packet through the vpn.

Here is the routing setup after the tunnel is up:

bonsai ~ # /etc/init.d/openvpn start
 * Starting openvpn
 * WARNING: openvpn has started, but is inactive
bonsai ~ # ip route show
0.0.0.0/1 via 10.8.2.213 dev tun0
default via 92.44.0.41 dev ppp0  metric 4007
10.2.1.0/24 dev eno1  proto kernel  scope link  src 10.2.1.254
10.2.2.0/24 dev enp1s0  proto kernel  scope link  src 10.2.2.254
10.2.3.0/24 dev enp8s0  proto kernel  scope link  src 10.2.3.254
10.8.2.209 via 10.8.2.213 dev tun0  metric 1
10.8.2.213 dev tun0  proto kernel  scope link  src 10.8.2.214
92.44.0.41 dev ppp0  proto kernel  scope link  src 176.41.233.165
127.0.0.0/8 dev lo  scope host
127.0.0.0/8 via 127.0.0.1 dev lo
128.0.0.0/1 via 10.8.2.213 dev tun0
173.195.6.91 via 92.44.0.41 dev ppp0

 Your daemons at home receive a packet via your static Turkish address
 but, because you got your default gw configured to be your vpn provider,
 the response packet goes through NY. Due to reverse-path filtering or
 some other fact of nature, it's dropped somewhere along the way.

 If that's the case (big if :)), here's what you need to do:
 http://lartc.org/lartc.html#AEN267

Thanks for this link! I will need some time to digest this information
and will report back with my progress.

-- 
Timur



Re: [gentoo-user] creating overlay to modify net-fs/samba-3.6.18

2013-09-11 Thread Timur Aydin
On 09/11/13 23:13, Alan McKinnon wrote:
 I can't reproduce that fault here, and google hits on the matter seem to
 point towards stale metadata referencing eclasses that no longer exist.
 I have a hunch you do not have valid metadata for your local overlay, so
 I suggest:
 
 1. delete the eclass directory from your overlay, run emerge
 --metadata and emerge samba again. See what that does.

I have tried this, and the same problem happened, where emerge
complained that pam.eclass wasn't found.

 2. Set PORTDIR_CACHE_METHOD and/or OVERLAY_CACHE_METHOD explicitly in
 make.conf, the best reference for these is in the eix man page

While reading up on the various methods in the eix man page, I started
to wonder whether a setting in /usr/local/portage/metadata/layout.conf
was causing this problem. When testing, layout.conf had only a single
entry, which was:

masters =

I remembered an error message from portage a while ago, which suggested
setting this to gentoo for backward compatibility. I tried that, and
the problem went away :) I was able to emerge samba from the overlay
successfully. Does this make sense?

--
Timur



Re: [gentoo-user] creating overlay to modify net-fs/samba-3.6.18

2013-09-11 Thread Timur Aydin
On 09/12/13 01:00, Alan McKinnon wrote:
 Yes of course, it make a great deal of sense now. Basically, your local
 overlay had no idea where the parent portage tree is or how to find it
 so couldn't find the eclass directory.
 
 As I understand it, this information used to be hard-coded magic and
 overlays would just know where to look. Since recently, you have to
 configure it explicitly and not use hidden super-magic.
 
 You would have been getting confusing messages in emerge output about a
 faulty masters setting for overlays, pity we didn't spot that up front.
 Double pity that there wasn't a clear message or news item about what
 the error meant and the impact

Thanks, Alan, for the great help! SAMBA is now up and running with my
custom changes...

--
Timur




[gentoo-user] creating overlay to modify net-fs/samba-3.6.18

2013-09-10 Thread Timur Aydin
Today I had quite a bit of issues while creating a local overlay to
modify samba. Got through all of them, but there were the following
issues which I wanted to bring up, because I am not sure whether I have
done anything wrong:

- I had created the overlay under /root/overlay, but this is causing
permission denied errors from ebuild when creating the Manifest file:

==
/usr/lib64/portage/bin/ebuild.sh: line 545:
/root/overlay/net-fs/samba/samba-3.6.18.ebuild: Permission denied
 * ERROR: net-fs/samba-3.6.18::myoverlay failed (depend phase):
 *   error sourcing ebuild
 *
 * Call stack:
 *   ebuild.sh, line 545:  Called die
 * The specific snippet of code:
 *  source $EBUILD || die error sourcing ebuild
 *
 * If you need support, post the output of `emerge --info
'=net-fs/samba-3.6.18::myoverlay'`,
 * the complete build log and the output of `emerge -pqv
'=net-fs/samba-3.6.18::myoverlay'`.
 * Working directory: '/usr/lib64/portage/pym'
 * S: '/var/tmp/portage/net-fs/samba-3.6.18/work/samba-3.6.18'
==

After trying many different things without luck, I tried using
/usr/local/portage as the overlay folder and the problem went away! So
my first question is, does ebuild have a special security feature which
prevents it from processing overlays under /root ?

- The second issue is eclass related. After I moved net-fs/samba under
/usr/local/portage, I got the following error during Manifest creation:

==
bonsai samba # ebuild samba-3.6.18.ebuild manifest
 * ERROR: net-fs/samba-3.6.18::myoverlay failed (depend phase):
 *   pam.eclass could not be found by inherit()
 *
 * Call stack:
 * ebuild.sh, line 545:  Called source
'/usr/local/portage/net-fs/samba/samba-3.6.18.ebuild'
 *   samba-3.6.18.ebuild, line   7:  Called inherit 'pam' 'versionator'
'multilib' 'eutils' 'systemd'
 * ebuild.sh, line 257:  Called die
 * The specific snippet of code:
 *  [[ -z ${location} ]]  die ${1}.eclass could not be
found by inherit()
 *
 * If you need support, post the output of `emerge --info
'=net-fs/samba-3.6.18::myoverlay'`,
 * the complete build log and the output of `emerge -pqv
'=net-fs/samba-3.6.18::myoverlay'`.
 * Working directory: '/usr/lib64/portage/pym'
 * S: '/var/tmp/portage/net-fs/samba-3.6.18/work/samba-3.6.18'
==

To resolve this, I just copied /usr/portage/eclass to
/usr/local/portage/eclass. Is this a proper solution?

--
Timur Aydin



Re: [gentoo-user] creating overlay to modify net-fs/samba-3.6.18

2013-09-10 Thread Timur Aydin
On 09/11/13 00:01, Alan McKinnon wrote:
 Do you have userpriv set in FEATURES?
 
 That makes emerge run as portage which cannot read /root.

Here is the value of FEATURES, based on the output of emerge --info:

FEATURES=assume-digests binpkg-logs config-protect-if-modified
distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch
preserve-libs protect-owned sandbox sfperms strict unknown-features-warn
unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync

So as you say, userpriv is set and it explains why /root/overlay doesn't
work.

 
 I suspect your make.conf is faulty.
 
 What is the contents of make.conf?
 what is ls -al $PORTDIR/eclass/pam.eclass
 

Here are the contents of /etc/portage/make.conf:

==
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS=-O2 -pipe
CXXFLAGS=${CFLAGS}
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before
changing.
CHOST=x86_64-pc-linux-gnu
# These are the USE flags that were used in addition to what is provided
by the
# profile used for building.
MAKEOPTS=-j8
GENTOO_MIRRORS=ftp://ftp.linux.org.tr/pub/gentoo;
USE=nptl nptlonly unicode minizip tk udev python threads xvfb perl dlz
caps sqlite upcall systemd -gtk2 -gtk3 -acl
ACCEPT_KEYWORDS=~amd64
ACCEPT_LICENSE=*
VIDEO_CARDS=intel
INPUT_DEVICES=evdev keyboard mouse
FEATURES=-test
PORTDIR_OVERLAY=/usr/local/portage
==

And here is the pam.eclass perms:

bonsai ~ # ls -al /usr/portage/eclass/pam.eclass
-rw-r--r-- 1 portage portage 6455 Aug  5  2012
/usr/portage/eclass/pam.eclass




Re: [gentoo-user] Linux viruses

2013-07-12 Thread Timur Aydin

On 7/5/2013 11:12 PM, Dale wrote:

I since did some googling and it seems I am right and he just thought I
was some know nothing guy he could sell some service too.  Anyway, has
anything changed to make Linux more prone to viruses than it used to
be?  I read a percentage somewhere that said like 99% of viruses are
windoze only.  Is there a indisputable source of information on this?


Linux is inherently more secure than Windows, but it isn't so much more 
secure that only 1% of all viruses can attack it. Virus developers don't 
have a financial incentive to develop Linux viruses (not enough Linux 
users, most Linux users knowledgeable about computers, and moral reasons).


--
Timur Aydin



Re: [gentoo-user] configuring NFS server to handle client reboots

2013-07-01 Thread Timur Aydin

On 7/1/2013 5:09 AM, Walter Dnes wrote:

   A possible quick-n-dirty approach is to run a script that first
does a umount of the share, and then does the mount.  Ignore error
messages from the umount attempt.



Just tried that, but no joy. uClinux knows that the share isn't mounted 
after reboot and doesn't even send an unmount request to the server.


--
Timur



[gentoo-user] configuring NFS server to handle client reboots

2013-06-30 Thread Timur Aydin
Hi,

I am using Gentoo Linux as an NFS server while doing development on an
Blackfin embedded system. The Blackfin is running uClinux and the
development host is Gentoo testing version (~amd64). The NFS server
version is 1.2.7.

Here is the problem that I am observing: I start from a known state,
restarting the NFS server on Gentoo and power cycling the Blackfin. Once
the Blackfin system has booted, I mount an folder on the Blackfin. This
succeeds without any problem. Then I power cycle the Blackfin again and
after it is up, I try to mount that same folder again. But this time,
the mount command hangs for a minute or so and eventually fails with a
timeout error.

Here is the mount command:

mount -o nolock,tcp 10.2.2.254:/romfs_2011R1 /mnt

When I look into the NFS server's system log, I can see that the mount
was authenticated:

Jun 30 13:54:53 bonsai rpc.mountd[1597]: authenticated mount request
from 10.2.2.220:911 for /home/ta/uclinux_2011R1/db1/uclinux-dist/romfs
(/home/ta/uclinux_2011R1)

I have captured what is happening using wireshark and what I am seeing
is that the mount request succeeds, but the client initiates another TCP
connection (SYN) and this SYN is never responded to by the server.

I know that a sm-notify program is used on both NFS clients/servers to
notify reboots, but this embedded system does not have the sm-notify
capability. And I would rather not try to port it to uClinux.

So, my question is, can I somehow configure the NFS server to allow
mounting the same directory repeatedly whenever the NFS client reboots?

-- 
Timur



Re: [gentoo-user] configuring NFS server to handle client reboots

2013-06-30 Thread Timur Aydin
On 06/30/13 20:10, Timur Aydin wrote:
 Here is the mount command:
 
 mount -o nolock,tcp 10.2.2.254:/romfs_2011R1 /mnt
 

BTW, when I use UDP instead of TCP, then the mount works after repeated
reboots. But I would rather use TCP, because based on past experiments I
did, TCP mounted NFS shares have a higher bandwidth.

Also, when using TCP, if I restart the NFS server on the gentoo host,

/etc/init.d/nfs restart

Then I can mount the NFS share on the Blackfin repeatedly.

This all tells me that the NFS server is preventing subsequent TCP
mounts unless the existing mount is unmounted first.

-- 
Timur



Re: [gentoo-user] configuring NFS server to handle client reboots

2013-06-30 Thread Timur Aydin
The server configuration is as follows:

===

bonsai ~ # cat /etc/conf.d/nfs
# /etc/conf.d/nfs

# If you wish to set the port numbers for lockd,
# please see /etc/sysctl.conf

# Optional services to include in default `/etc/init.d/nfs start`
# For NFSv4 users, you'll want to add rpc.idmapd here.
NFS_NEEDED_SERVICES=rpc.idmapd

# Number of servers to be started up by default
OPTS_RPC_NFSD=8

# Options to pass to rpc.mountd
# ex. OPTS_RPC_MOUNTD=-p 32767
OPTS_RPC_MOUNTD=

# Options to pass to rpc.statd
# ex. OPTS_RPC_STATD=-p 32765 -o 32766
OPTS_RPC_STATD=

# Options to pass to rpc.idmapd
OPTS_RPC_IDMAPD=

# Options to pass to rpc.gssd
OPTS_RPC_GSSD=

# Options to pass to rpc.svcgssd
OPTS_RPC_SVCGSSD=

# Options to pass to rpc.rquotad (requires sys-fs/quota)
OPTS_RPC_RQUOTAD=

# Timeout (in seconds) for exportfs
EXPORTFS_TIMEOUT=30

# Options to set in the nfsd filesystem (/proc/fs/nfsd/).
# Format is option=value.  Multiple options are allowed.
#OPTS_NFSD=nfsv4leasetime=30 max_block_size=4096

===

bonsai ~ # cat /etc/exports
/home/ta/uclinux_2011R1
*(rw,sync,all_squash,anonuid=1000,anongid=100,no_subtree_check)
/home/ta/tmp/flash_nfsroot
*(rw,sync,all_squash,anonuid=1000,anongid=100,no_subtree_check)

-- 
Timur



Re: [gentoo-user] Is my system (really) using nptl

2012-10-13 Thread Timur Aydin
On 10/13/12 04:11, Mark Knecht wrote:
 Take look here. The answer is, I think, not necessarily.
 
  http://www.makelinux.net/alp/032
 

Hello Mark,

Thank you for the link to an excellent book. However, it seems the book
is talking about linuxthreads by Xavier Leroy, not nptl. I am well aware
that linuxthreads uses LWP's to implement threads and as a result, each
thread has a separate, unique pid.

I did a few more tests using gdb and my simple app. I am seeing the
SIG32 signal and the lack of the manager threads. So everything hints
that I am indeed using nptl, but the separate process id's still doesn't
make sense...

-- 
Timur




Re: [gentoo-user] Is my system (really) using nptl

2012-10-13 Thread Timur Aydin
On 10/13/12 19:15, Canek Peláez Valdés wrote:
 We can only know seeing the code. Timur, this is the little test I
 made which creates 5 threads and runs them for 1 minute. In my case,
 `ps x` shows only 1 PID, care to give it a try?

I have re-read all messages and I noticed Canek writing about the 'ps x'
output. I was using htop to watch what's happening. When I used 'ps x',
I indeed saw just a single process. Looked around google for the
difference between the two, and sure enough, htop by default shows all
threads in a process, but ps does not. You have to supply special flags
to ps to have it show the threads.

So I started focusing on the pid's that htop is showing for my simple
app's threads. When I try to locate them under /proc/..., they don't
exist. Further search in google and indeed, the pid's shown for threads
aren't really process id's in the traditional sense and there is no
folder under /proc for them. My app has pid 12397 and one of the threads
has pid 12404. To look up the thread pid, one needs to look under
/proc/12397/task/12404.

So, mystery (for me) solved. Thanks for all the replies!

-- 
Timur



[gentoo-user] Is my system (really) using nptl

2012-10-12 Thread Timur Aydin
Hi,

I have done many tests on my ~x86 system to confirm that it is nptl based:

- I have the nptl and nptlonly use flags in my make.conf and my system
is up to date.

- Running /lib/libc.so.6 shows:

ta@bonsai ~ $ /lib/libc.so.6
GNU C Library stable release version 2.15, by Roland McGrath et al.
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.5.3.
Compiled on a Linux 3.5.0 system on 2012-09-10.
Available extensions:
C stubs add-on version 2.1.2
crypt add-on version 2.1 by Michael Glad and others
Gentoo patchset 21
GNU Libidn by Simon Josefsson
Native POSIX Threads Library by Ulrich Drepper et al
Support for some architectures added on, not maintained in glibc
core.
BIND-8.2.3-T5B
libc ABIs: UNIQUE IFUNC
For bug reporting instructions, please see:
http://www.gnu.org/software/libc/bugs.html.

- getconf also indicates nptl:

ta@bonsai ~ $ getconf GNU_LIBPTHREAD_VERSION
NPTL 2.15


Yet, when I look at the process list, I am seeing all programs that use
threads having uniquey pid's for each thread. I even compiled a simple
program that just creates 5 threads, each sleeping forever. Again, each
thread had a unique pid.

I have also checked the kernel config. FUTEX support was enabled, but
the top level selector (EXPERT options) was not selected. I guess the
top level selector just exposes the FUTEX selector and doesn't really
affect whether it is enabled or not.

So, what I am wondering now, is my system configured for NPTL or not?

-- 
Timur



Re: [gentoo-user] Is my system (really) using nptl

2012-10-12 Thread Timur Aydin
 So, what I am wondering now, is my system configured for NPTL or not?
 
 pretty sure: yes.
 
 How about less YOURAPP: 
 Dynamic section at offset ... contains 27 entries:
   TagType Name/Value
  0x0001 (NEEDED) Shared library: 
  0x0001 (NEEDED) Shared library: [libpthread.so.0]
 ?

That's what my app has.

0x0001 (NEEDED)  Shared library: [libpthread.so.0]

So isn't the process supposed to have one pid, regardless of how many
threads it has created?

-- 
Timur



Re: [gentoo-user] Weird hibernate problem

2012-09-11 Thread Timur Aydin
On 09/11/12 19:08, Canek Peláez Valdés wrote:
 Mmmh. You didn't set CONFIG_PM_STD_PARTITION:
 

I specified the partition on the kernel command line:

ta@bonsai ~/uclinux_2011R1/db1/uclinux-dist $ cat /boot/grub/grub.conf
timeout 30
default 0
splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title Gentoo
root (hd0,0)
kernel /vmlinuz root=/dev/sda3 resume=/dev/sda6

title Gentoo.old
root (hd0,0)
kernel /vmlinuz.old root=/dev/sda3 resume=/dev/sda6

 CONFIG_PM_STD_PARTITION=
 
 Set it to /dev/sda6, and see if it helps. Also, can we have a look at
 yout /etc/fstab file?

Here is /etc/fstab:

# fs  mountpointtype  opts
dump/pass

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/sda1   /boot   ext2noatime 1 2
/dev/sda2   /home   ext3noatime 0 2
/dev/sda3   /   ext3noatime 0 1
/dev/sda5   noneswapsw  0 0
/dev/sda7   /backup ext3noatime 0 2
/dev/cdrom  /mnt/cdrom  autonoauto,ro   0 0

I want to attach the ps ax output before and after hibernate, but I am
concerned about filesystem corruption with all those kworker threads
lurking around...

Timur



[gentoo-user] Weird hibernate problem

2012-09-10 Thread Timur Aydin
After corrupting my gentoo root filesystem system during hibernate 
experiments, I have finally finished the reinstallation. But hibernate 
still doesn't seem to work correctly. The symptoms are the same as 
during the experiments leading to the root fs corruption, but this time 
the root seems to remain intact.


Here is what happened during the first experiment. I had an 8G swap 
partition as /dev/sda5 and a data partition as /dev/sda6. Thinking that 
pm-hibernate requires a dedicated, separate partition, I backed up 
/dev/sda6, turned off swap at /dev/sda5, deleted /dev/sda[56] and then 
created /dev/sda5 (8G), /dev/sda6 (8G) and /dev/sda7 (remaining size) 
Then I specified /dev/sda6 as the resume partition on the kernel command 
line.


But when I did the pm-hibernate, the system powered off, and after 
reboot, the system seemed to have restored itself to the state it was at 
when I ran pm-hibernate. So it seemed to have worked, but the system 
was strangely unstable. There were many filesystem errors in the root 
partition and when I did a ps ax, I saw hundreds of kworker kernel 
threads lingering around. It was as if the hibernate image was slightly 
corrupted, but not enough to cause a complete lockup, but enough to 
cause there strange symptoms.


I first thought this was related to using the swap partition as the 
resume destination. But after reinstalling gentoo, I again used a 
separate partition for hibernate, but I am still seeing the same 
symtoms. Many kworker kernel threads are sleeping. But this time, the 
root filesystem didn't have any error. Concerned that a filesystem 
corruption is imminent, I immediately turned off power.


So, what could be causing these strange problems? Based on what I have 
read so far, the resume partition needs to be an active swap partition. 
This seems rather strange, because linux is using the swap partition for 
memory management as well. So shouldn't these be well separated to 
prevent corrupting each other?


Hope someone can help me make sense of all of this...

--
Timur



Re: [gentoo-user] Weird hibernate problem

2012-09-10 Thread Timur Aydin
I have just tried again using pm-suspend and the same thing happens. 
Everything looks like it has worked, but when I do a ps ax, there are 
many (currently around 50) sleeping kernel threads. There are also a few 
extraneous migration, ksoftirq threads intermixed.


--
Timur



Re: [gentoo-user] Weird hibernate problem

2012-09-10 Thread Timur Aydin
One unusual property of this system is that it has 5 additional SATA 
disks to be used for RAID experiments, in addition to the disk holding 
gentoo. So there are a total of 6 disks. But during these experiments, 
these 5 additional disks are not mounted.


The motherboard is an Asus P8V68Z-VPRO/GEN3 with 8G RAM and a i7-2600K 
CPU, running 32bit gentoo. There are no peripherals attached to any of 
the motherboard expansion slots.


--
Timur



[gentoo-user] Preventing a package from being updated

2010-10-18 Thread Timur Aydin
Hi,

I am using the ~x86 (testing) version of gentoo linux. After recent
updates, my X windows became extremely sluggish and I found out that the
problem is related to a new version of mesa (7.8.2 specifically). So I
downgraded to version 7.7.1 and my desktop works great again.

Now I want to prevent mesa from being updated until this issue is sorted
out upstream. I have looked at package.provide, but that didn't work.
Currently, I have placed media-libs/mesa into my
/etc/portage/package.mask file and this seems to do the trick. Is this
the recommended way for handling this situation?

Being a long time gentoo user, I want to do things the right way, so
just working fine isn't enough :)

-- 
Timur



Re: [gentoo-user] Sync'ed my ~x86 system yesterday and now resolver stopped working

2009-05-30 Thread Timur Aydin

Graham Murray wrote:

Timur Aydin t...@taydin.org writes:

  

Hi,

I have synced my ~x86 system yesterday and after it completed, the
resolver doesn't work for some programs anymore. For example, ping
hostname says unknown host name. It doesn't even contact the dns
server, which is running on the same host. But dig hostname works
fine. Also, using the IP address directly, I can access the internet.

I am suspecting that the new glibc 2.10 is causing this. Anybody else
having this issue?



I had this issue a couple of weeks ago. I think it was the upgrade to
net-dns/openresolv-3.3.2 which was responsible. The solution was to
edit etc/resolvconf.conf and uncomment the line
name_servers=127.0.0.1

  
That's what I tried yesterday and it resolved the problem. So it seems 
the new resolver does not default to checking localhost as a dns server 
and needs to be explicitely told to do so...


--
Timur



[gentoo-user] Sync'ed my ~x86 system yesterday and now resolver stopped working

2009-05-29 Thread Timur Aydin

Hi,

I have synced my ~x86 system yesterday and after it completed, the 
resolver doesn't work for some programs anymore. For example, ping 
hostname says unknown host name. It doesn't even contact the dns 
server, which is running on the same host. But dig hostname works 
fine. Also, using the IP address directly, I can access the internet.


I am suspecting that the new glibc 2.10 is causing this. Anybody else 
having this issue?


--
Timur



[gentoo-user] Building all packages except gcc

2007-11-18 Thread ~/Timur Aydin
Hello,

How would I go about rebuilding all installed packages, except gcc? I
suppose I could do emerge --emptytree world, but that would also merge
gcc, which I don't want, because I want to be sure that the whole system
is rebuilt with the same compiler.

Any help is appreciated...

-- 
Timur Aydin
-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Wireless PCMCIA card issue with 2.6.18 linux kernel

2007-01-21 Thread Timur Aydin
Hi,

I have a Senao NL-2511CD PLUS EXT2 wireless PCMCIA card, which I am
planning to use in my desktop PC through a Ricoh RL5c475 PCI-PCMCIA
bridge. The relevant output from uname, lspci and lspcmcia is at the
end of this message. The kernel configuration file and
/etc/pcmcia/config.opts is attached.

The problem I am seeing is that the wlan0 interface is not created by
the kernel. Here is the error log in the syslog file when I remove and
insert the PCMCIA card:

Jan 21 21:32:14 bonsai pccard: card ejected from slot 0
Jan 21 21:32:17 bonsai pccard: PCMCIA card inserted into slot 0
Jan 21 21:32:17 bonsai pcmcia: registering new device pcmcia0.0
Jan 21 21:32:17 bonsai pcmcia: request for exclusive IRQ could not be fulfilled.
Jan 21 21:32:17 bonsai pcmcia: the driver needs updating to supported shared 
IRQ lines.
Jan 21 21:32:17 bonsai eth2: failed to initialize firmware (err = -19)
Jan 21 21:32:17 bonsai orinoco_cs: register_netdev() failed
Jan 21 21:32:17 bonsai pcmcia: request for exclusive IRQ could not be fulfilled.
Jan 21 21:32:17 bonsai pcmcia: the driver needs updating to supported shared 
IRQ lines.
Jan 21 21:32:17 bonsai eth2: failed to initialize firmware (err = -19)
Jan 21 21:32:17 bonsai orinoco_cs: register_netdev() failed

What could be the reason for this problem? Any hints on how to further
troubleshoot greatly appreciated...

-- 
Timur


--

bonsai ~ # uname -a
Linux bonsai 2.6.18-gentoo-r6 #1 PREEMPT Sat Jan 20 20:42:12 EET 2007 i686 AMD 
Athlon(tm) 64 Processor 3500+ AuthenticAMD GNU/Linux

lspci -vvv output:

02:08.0 CardBus bridge: Ricoh Co Ltd RL5c475 (rev 81)
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium TAbort- 
TAbort- MAbort- SERR- PERR+
Latency: 168
Interrupt: pin A routed to IRQ 16
Region 0: Memory at f6006000 (32-bit, non-prefetchable) [size=4K]
Bus: primary=02, secondary=03, subordinate=06, sec-latency=176
Memory window 0: 5000-51fff000 (prefetchable)
Memory window 1: f6002000-f6003000
I/O window 0: 8000-80ff
I/O window 1: 8400-84ff
BridgeCtl: Parity- SERR- ISA- VGA- MAbort- Reset- 16bInt+ PostWrite+
16-bit legacy interface ports at 0001

lspcmcia -vv output:

Socket 0 Bridge:[yenta_cardbus] (bus ID: :02:08.0)
Configuration:  state: on   ready: yes
Voltage: 3.3V Vcc: 3.3V Vpp: 0.0V
Available IRQs: none
Available ioports:  0x0100 - 0x028f
0x0298 - 0x03af
0x03e0 - 0x04cf
0x04d8 - 0x04ff
0x0820 - 0x08ff
0x0a00 - 0x0aff
0x0c00 - 0x0cf7
0x8000 - 0x9fff
Available iomem:0x000c - 0x000f
0x6000 - 0x60ff
0xa000 - 0xa0ff
0xf500 - 0xf5ff
0xf620 - 0xf6ff
Socket 0 Device 0:  [-- no driver --]   (bus ID: 0.0)
Configuration:  state: on
Product Name:   INTERSIL HFA384x/IEEE Version 01.02 
Identification: manf_id: 0x0156 card_id: 0x0002
function: 6 (network)
prod_id(1): INTERSIL (0x74c5e40d)
prod_id(2): HFA384x/IEEE (0xdb472a18)
prod_id(3): Version 01.02 (0x4b74baa0)
prod_id(4): --- (---)

--

#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.18-gentoo-r6
# Sat Jan 20 20:36:54 2007
#
CONFIG_X86_32=y
CONFIG_GENERIC_TIME=y
CONFIG_LOCKDEP_SUPPORT=y
CONFIG_STACKTRACE_SUPPORT=y
CONFIG_SEMAPHORE_SLEEPERS=y
CONFIG_X86=y
CONFIG_MMU=y
CONFIG_GENERIC_ISA_DMA=y
CONFIG_GENERIC_IOMAP=y
CONFIG_GENERIC_HWEIGHT=y
CONFIG_ARCH_MAY_HAVE_PC_FDC=y
CONFIG_DMI=y
CONFIG_DEFCONFIG_LIST=/lib/modules/$UNAME_RELEASE/.config

#
# Code maturity level options
#
CONFIG_EXPERIMENTAL=y
CONFIG_BROKEN_ON_SMP=y
CONFIG_LOCK_KERNEL=y
CONFIG_INIT_ENV_ARG_LIMIT=32

#
# General setup
#
CONFIG_LOCALVERSION=
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_SWAP=y
CONFIG_SYSVIPC=y
# CONFIG_POSIX_MQUEUE is not set
# CONFIG_BSD_PROCESS_ACCT is not set
# CONFIG_TASKSTATS is not set
# CONFIG_AUDIT is not set
CONFIG_IKCONFIG=y
CONFIG_IKCONFIG_PROC=y
# 

[gentoo-user] Wireless PCMCIA card issue with 2.6.18 linux kernel

2007-01-21 Thread Timur Aydin
Hi,

I have a Senao NL-2511CD PLUS EXT2 wireless PCMCIA card, which I am
planning to use in my desktop PC through a Ricoh RL5c475 PCI-PCMCIA
bridge. The relevant output from uname, lspci and lspcmcia is at the
end of this message. The kernel configuration file and
/etc/pcmcia/config.opts is attached.

The problem I am seeing is that the wlan0 interface is not created by
the kernel. Here is the error log in the syslog file when I remove and
insert the PCMCIA card:

Jan 21 21:32:14 bonsai pccard: card ejected from slot 0
Jan 21 21:32:17 bonsai pccard: PCMCIA card inserted into slot 0
Jan 21 21:32:17 bonsai pcmcia: registering new device pcmcia0.0
Jan 21 21:32:17 bonsai pcmcia: request for exclusive IRQ could not be fulfilled.
Jan 21 21:32:17 bonsai pcmcia: the driver needs updating to supported shared 
IRQ lines.
Jan 21 21:32:17 bonsai eth2: failed to initialize firmware (err = -19)
Jan 21 21:32:17 bonsai orinoco_cs: register_netdev() failed
Jan 21 21:32:17 bonsai pcmcia: request for exclusive IRQ could not be fulfilled.
Jan 21 21:32:17 bonsai pcmcia: the driver needs updating to supported shared 
IRQ lines.
Jan 21 21:32:17 bonsai eth2: failed to initialize firmware (err = -19)
Jan 21 21:32:17 bonsai orinoco_cs: register_netdev() failed

What could be the reason for this problem? Any hints on how to further
troubleshoot greatly appreciated...

-- 
Timur


--

bonsai ~ # uname -a
Linux bonsai 2.6.18-gentoo-r6 #1 PREEMPT Sat Jan 20 20:42:12 EET 2007 i686 AMD 
Athlon(tm) 64 Processor 3500+ AuthenticAMD GNU/Linux

lspci -vvv output:

02:08.0 CardBus bridge: Ricoh Co Ltd RL5c475 (rev 81)
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium TAbort- 
TAbort- MAbort- SERR- PERR+
Latency: 168
Interrupt: pin A routed to IRQ 16
Region 0: Memory at f6006000 (32-bit, non-prefetchable) [size=4K]
Bus: primary=02, secondary=03, subordinate=06, sec-latency=176
Memory window 0: 5000-51fff000 (prefetchable)
Memory window 1: f6002000-f6003000
I/O window 0: 8000-80ff
I/O window 1: 8400-84ff
BridgeCtl: Parity- SERR- ISA- VGA- MAbort- Reset- 16bInt+ PostWrite+
16-bit legacy interface ports at 0001

lspcmcia -vv output:

Socket 0 Bridge:[yenta_cardbus] (bus ID: :02:08.0)
Configuration:  state: on   ready: yes
Voltage: 3.3V Vcc: 3.3V Vpp: 0.0V
Available IRQs: none
Available ioports:  0x0100 - 0x028f
0x0298 - 0x03af
0x03e0 - 0x04cf
0x04d8 - 0x04ff
0x0820 - 0x08ff
0x0a00 - 0x0aff
0x0c00 - 0x0cf7
0x8000 - 0x9fff
Available iomem:0x000c - 0x000f
0x6000 - 0x60ff
0xa000 - 0xa0ff
0xf500 - 0xf5ff
0xf620 - 0xf6ff
Socket 0 Device 0:  [-- no driver --]   (bus ID: 0.0)
Configuration:  state: on
Product Name:   INTERSIL HFA384x/IEEE Version 01.02 
Identification: manf_id: 0x0156 card_id: 0x0002
function: 6 (network)
prod_id(1): INTERSIL (0x74c5e40d)
prod_id(2): HFA384x/IEEE (0xdb472a18)
prod_id(3): Version 01.02 (0x4b74baa0)
prod_id(4): --- (---)

--

#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.18-gentoo-r6
# Sat Jan 20 20:36:54 2007
#
CONFIG_X86_32=y
CONFIG_GENERIC_TIME=y
CONFIG_LOCKDEP_SUPPORT=y
CONFIG_STACKTRACE_SUPPORT=y
CONFIG_SEMAPHORE_SLEEPERS=y
CONFIG_X86=y
CONFIG_MMU=y
CONFIG_GENERIC_ISA_DMA=y
CONFIG_GENERIC_IOMAP=y
CONFIG_GENERIC_HWEIGHT=y
CONFIG_ARCH_MAY_HAVE_PC_FDC=y
CONFIG_DMI=y
CONFIG_DEFCONFIG_LIST=/lib/modules/$UNAME_RELEASE/.config

#
# Code maturity level options
#
CONFIG_EXPERIMENTAL=y
CONFIG_BROKEN_ON_SMP=y
CONFIG_LOCK_KERNEL=y
CONFIG_INIT_ENV_ARG_LIMIT=32

#
# General setup
#
CONFIG_LOCALVERSION=
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_SWAP=y
CONFIG_SYSVIPC=y
# CONFIG_POSIX_MQUEUE is not set
# CONFIG_BSD_PROCESS_ACCT is not set
# CONFIG_TASKSTATS is not set
# CONFIG_AUDIT is not set
CONFIG_IKCONFIG=y
CONFIG_IKCONFIG_PROC=y
# 

[gentoo-user] glibconfig.h missing

2005-12-06 Thread Timur Aydin
Hi,

I have tried to compile a library that uses glib-1.2 and the configure
script of the library failed. Looking at config.log, I saw that the
glibconfig.h file can't be found. Indeed, the
/usr/include/glib-1.2/glib.h file includes glibconfig.h, which doesn't
exist anywhere on my system.

I have extracted glib-1.2 and ran the configure script, and the
glibconfig.h was generated. Once I copied this file into
/usr/include/glib-1.2, the problem was resolved.

Is this a bug or is it a misconfiguration of my system?

-- 
Timur Aydin
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] OT - Why is Gentoo so slow when internet is out?

2005-11-29 Thread Timur Aydin
Michael Sullivan [EMAIL PROTECTED] writes:

 I don't have a full DNS server for my domain.  Each computer on my
 network has a copy of the same /etc/hosts file.  Is there some way I can
 make it use that for DNS lookups locally?

Having the exact same copy on each system does not sound
correct. There should be a localhost alias in each /etc/hosts and it
should point to the IP address of the relevant machine.

-- 
Timur Aydin
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] [asking again] keyboard/mouse woes on 2.6 kernel

2005-08-29 Thread Timur Aydin
inferno [EMAIL PROTECTED] writes:

Hi,
If it's any help: I'm using 2.6.12-gentoo-r4 kernel not a
genkernel. Maybe the version of kernel on your computer is newer than
the one on the live cd, try a downgrade and see if it help.
Best regards

I found the problem. The USB controller on the K8N Neo2 motherboard
that I am using is OHCI. I had compiled support for UHCI and EHCI and
left out OHCI. After adding support for OHCI, my wheel is now working
fine and I didn't see any erratic mouse behaviour so far...

-- 
Timur Aydin
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] [asking again] keyboard/mouse woes on 2.6 kernel

2005-08-28 Thread Timur Aydin
Martins Steinbergs [EMAIL PROTECTED] writes:

 mouse support is built into kernel (now in 2.6.13-rc7), not module, xorg has 
 correct entry
 ill try live_cd, maybe find something interesting


I have reinstalled gentoo 2005.1 (network install with stage1). The
system is currently using devfs and my mouse problem is still there,
exactly the same way as before. So, my theory about udev being the
culprit is out the window.

I have tried booting from the livecd. I wasn't able to run X with this
configuration, but I tried issuing the cat /dev/input/mice
command. With the livecd, there is data coming back when I turn the
mouse wheel. When I boot into the gentoo that is installed on the
harddisk and do the same thing, no data comes back when I turn the
mouse wheel.

As a result, I am almost certain that this is related to the kernel
configuration. Continuing the search...

-- 
Timur Aydin
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] [asking again] keyboard/mouse woes on 2.6 kernel

2005-08-28 Thread Timur Aydin
Erik Osterholm [EMAIL PROTECTED] writes:

Are you using the Event interface?

No. I tried enabling support for it. I have also enabled support for
the Event interface debug. After booting this kernel, nothing
changed. The are no syslog debug messages when I turn the wheel, so
the kernel apparently doesn't see the wheel turning.

-- 
Timur Aydin
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] [asking again] keyboard/mouse woes on 2.6 kernel

2005-08-25 Thread Timur Aydin
Ben Munat [EMAIL PROTECTED] writes:

 Really hoping someone has some idea on this... haven't found any solid 
 answers on the web...


I have an AMD64 system (but I am running the 32 bit version of Gentoo
on it) and I am seeing mouse problems. The mouse wheel doesn't work at
all. Sometimes the mouse pointer starts jumping all over the screen,
with random click events here and there. Then it recovers for a while
and then same cycle repeats again later. I am suspecting that this is
related to a bug in udev... I will try switching back to devfs to see
if that makes a difference.

-- 
Timur Aydin
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] DVD recorder recommendations

2005-08-25 Thread Timur Aydin
Kevin O'Gorman [EMAIL PROTECTED] writes:

I am using a Philips DVD writer for backup purposes under Gentoo with
good results.

-- 
Timur Aydin
-- 
gentoo-user@gentoo.org mailing list