[gentoo-user] Failed to emerge sys-devel/gcc-4.4.5

2011-04-04 Thread Pandu Poluan
I've been experiencing failures trying to emerge sys-devel/gcc-4.4.5

Here are the information:

emerge --info =sys-devel/gcc-4.4.5: http://pastebin.com/vCWDbYwH

build.log : http://www.keepandshare.com/doc/view.php?id=2720253da=y
(1MB, zipped into 61KB)

environment : http://www.keepandshare.com/doc/view.php?id=2720256da=y
(187KB, zipped into 44KB)

emerge -pqv =sys-devel/gcc-4.4.5:
[ebuild U ] sys-devel/gcc-4.4.5 [4.4.4-r2] USE=hardened mudflap
nls nptl openmp (-altivec) -bootstrap -build -doc (-fixed-point)
-fortran -gcj -graphite -gtk (-libffi) (-multilib) -multislot (-n32)
(-n64) -nocxx -nopie -nossp -objc -objc++ -objc-gc -test -vanilla

Can anyone tell me what I did wrong?

Rgds,
--
Pandu E Poluan
~ IT Optimizer ~
Visit my Blog: http://pepoluan.posterous.com



Re: [gentoo-user] Re: How low can you go?

2011-04-04 Thread Joost Roeleveld
On Sunday 03 April 2011 15:13:09 luis jure wrote:
 on 2011-04-03 at 10:47 Neil Bothwick wrote:
 It's been done on a C-64, but I think a 3.5KB box with no mass storage
 might be a little too challenging.
 
 3.5? wow, i always thought that the name meant it had 20K... like the C64
 and C128. but no. now, almost 30 years later, i learn that it had 5K, 1.5
 of them used by the system (you wouldn't want to leave the system without
 ram, would you?)
 
 i never had a vic-20 (my first computer was the atari st-1040 in 1988),
 but a friend of mine had one in the early 80's and i always wondered at
 all the things you could do with the thing. i couldn't program, so i used
 to sit next by him telling him my ideas for a program for algorithmic
 composition, that he tried to code.

Nice, a walk down memory lane :)
The first computer we had at home (apart from an IBM my dad borrowed a few 
times) was an Atari 1040 ST.
We got it in 1986 and I can't even remember all the things I did with it.
It came with a copy of GFA Basic. This was a bit like C or Pascal, but then 
with Basic commands.
No line numbers, a decent editor and a compiler and linker. I could mix 
machine-code, basic-code and C-code into a final program to get a faster 
result.

The machine still worked last time I tried it and is currently still stored at 
my parents with strict instructions not to throw it away :)

--
Joost



Re: [gentoo-user] Re: How low can you go?

2011-04-04 Thread Pandu Poluan
On Mon, Apr 4, 2011 at 16:04, Joost Roeleveld jo...@antarean.org wrote:
 On Sunday 03 April 2011 15:13:09 luis jure wrote:
 on 2011-04-03 at 10:47 Neil Bothwick wrote:
 It's been done on a C-64, but I think a 3.5KB box with no mass storage
 might be a little too challenging.

 3.5? wow, i always thought that the name meant it had 20K... like the C64
 and C128. but no. now, almost 30 years later, i learn that it had 5K, 1.5
 of them used by the system (you wouldn't want to leave the system without
 ram, would you?)

 i never had a vic-20 (my first computer was the atari st-1040 in 1988),
 but a friend of mine had one in the early 80's and i always wondered at
 all the things you could do with the thing. i couldn't program, so i used
 to sit next by him telling him my ideas for a program for algorithmic
 composition, that he tried to code.

 Nice, a walk down memory lane :)
 The first computer we had at home (apart from an IBM my dad borrowed a few
 times) was an Atari 1040 ST.
 We got it in 1986 and I can't even remember all the things I did with it.
 It came with a copy of GFA Basic. This was a bit like C or Pascal, but then
 with Basic commands.
 No line numbers, a decent editor and a compiler and linker. I could mix
 machine-code, basic-code and C-code into a final program to get a faster
 result.

 The machine still worked last time I tried it and is currently still stored at
 my parents with strict instructions not to throw it away :)


Oh, the nostalgy... :-)

My first computer I believe was an Apple ][, a hand-down from an
uncle. It ran only for 1-2 weeks before it went to the Bit Bucket in
the Sky.

Then my parents got me an Atari 800XL. That's where I cut my
programming teeth with its built-in BASIC.

When its floppy drive (5.25) gave up the ghost, I got another
hand-down; a PC-XT compatible no-name with a huge (at that time) 20 MB
hard disk.

Again, it died after serving me  my brother for a couple of years,
and we got a PC Brand 486 SLC desktop. And there I dabbled in Pascal
and ASM, making replacement drivers for MS-DOS :-P ... I still
remember tuning QEMM386.sys trying to eke the last bytes of Low
Memory...

Afterwards, I started university, and its a blur of PC clones (and
Windows 9x)... and I shifted mental-gears to become a network engineer
:-)

Rgds,
--
Pandu E Poluan
~ IT Optimizer ~
Visit my Blog: http://pepoluan.posterous.com



Re: [gentoo-user] Setting up a local web server

2011-04-04 Thread Joost Roeleveld
On Friday 01 April 2011 21:56:47 Peter Humphrey wrote:
 On Friday 01 April 2011 13:18:39 Stéphane Guedon wrote:
  I have APACHE2_OPTS=-D DEFAULT_VHOST -D INFO -D LANGUAGE -D PHP5
  
  you should try at least language and php5 !
 
 That missing 5 is important - thanks.
 
 Then, however, I got this:
 
  * apache2 has detected an error in your setup:
 apache2: Syntax error on line 149 of /etc/apache2/httpd.conf: Syntax error
 on line 4 of /etc/apache2/modules.d/70_mod_php5.conf: Cannot load
 /usr/lib/apache2/modules/libphp5.so into server:
 /usr/lib/apache2/modules/libphp5.so: cannot open shared object file: No
 such file or directory
 
 That's after emerge -Cv apache and removing by hand all files and
 directories left behind by emerge. Same with php. Then I reinstalled both
 apache and php but without using the packages I had and all came right -
 thanks Stéphane.
 
 This is connected with the other thread I've written to today, about using
 my workstation as an emerge server. A complication I didn't mention there
 is that both make.conf and package.use have to be identical in the chroot
 and the target system nfs-mounted under it. I must have got them out of
 step at some stage.
 
 Incidentally, apache is wrong to complain of syntax errors - they're errors
 of configuration, not syntax.

Try recompiling php.
You may have accidentally removed the php-library as that is located under:
/usr/lib/apache2/modules/...

--
Joost



Re: OT: Computers-memory-lane.... [Was: [gentoo-user] Re: How low can you go?]

2011-04-04 Thread Joost Roeleveld
On Monday 04 April 2011 11:13:58 Pandu Poluan wrote:
 On Mon, Apr 4, 2011 at 16:04, Joost Roeleveld jo...@antarean.org wrote:
  On Sunday 03 April 2011 15:13:09 luis jure wrote:
  on 2011-04-03 at 10:47 Neil Bothwick wrote:
  It's been done on a C-64, but I think a 3.5KB box with no mass storage
  might be a little too challenging.
  
  3.5? wow, i always thought that the name meant it had 20K... like the
  C64 and C128. but no. now, almost 30 years later, i learn that it had
  5K, 1.5 of them used by the system (you wouldn't want to leave the
  system without ram, would you?)
  
  i never had a vic-20 (my first computer was the atari st-1040 in 1988),
  but a friend of mine had one in the early 80's and i always wondered at
  all the things you could do with the thing. i couldn't program, so i
  used to sit next by him telling him my ideas for a program for
  algorithmic composition, that he tried to code.
  
  Nice, a walk down memory lane :)
  The first computer we had at home (apart from an IBM my dad borrowed a
  few times) was an Atari 1040 ST.
  We got it in 1986 and I can't even remember all the things I did with it.
  It came with a copy of GFA Basic. This was a bit like C or Pascal, but
  then with Basic commands.
  No line numbers, a decent editor and a compiler and linker. I could mix
  machine-code, basic-code and C-code into a final program to get a faster
  result.
  
  The machine still worked last time I tried it and is currently still
  stored at my parents with strict instructions not to throw it away :)
 
 Oh, the nostalgy... :-)
 
 My first computer I believe was an Apple ][, a hand-down from an
 uncle. It ran only for 1-2 weeks before it went to the Bit Bucket in
 the Sky.

That's sad, only 2 weeks...
A friend of my dad got us an apple-emulator, had a game I played a lot untill 
I found out that the game was incomplete and would always crash at the same 
point. It was a point-click adventure...

 Then my parents got me an Atari 800XL. That's where I cut my
 programming teeth with its built-in BASIC.

Yes, the old days with Basic. I wonder if I still have the old programs... The 
3.5 floppy-disks are still around somewhere..

 When its floppy drive (5.25) gave up the ghost, I got another
 hand-down; a PC-XT compatible no-name with a huge (at that time) 20 MB
 hard disk.

2nd one we had was a 386sx-16mhz with 2 mb ram and 40mb harddrive.
I did try to install linux on that once, but the network-install took forever.
The NIC could do 10mbit half-duples (coax), but effective speed was less.
Symptoms:
download 1KB at full speed
card crashed
driver resets after 5 minutes
... repeat...

That was in 2.0.x kernels and I think I saw a change-log where that driver 
finally got fixed in 2.6.0 (could be mistaken on that. It was an Intel 
Etherlink-16)

I don't have that card anymore.

 Again, it died after serving me  my brother for a couple of years,
 and we got a PC Brand 486 SLC desktop. And there I dabbled in Pascal
 and ASM, making replacement drivers for MS-DOS :-P ... I still
 remember tuning QEMM386.sys trying to eke the last bytes of Low
 Memory...

What's the most low-memory you could get it and still use it?
I managed to get low memory to around 634KB (If I remember correctly) using 
the memory-tools that came with Norton Utilities at the time.

 Afterwards, I started university, and its a blur of PC clones (and
 Windows 9x)... and I shifted mental-gears to become a network engineer

When did you switch to Linux?

I switched when MS Windows 95 crashed once too many and decided to delete some 
files along with it. I didn't bother fixing that installation and eventually 
reclaimed the diskspace and removed it from /etc/lilo.conf.

--
Joost



Re: OT: Computers-memory-lane.... [Was: [gentoo-user] Re: How low can you go?]

2011-04-04 Thread Pandu Poluan
On Mon, Apr 4, 2011 at 16:35, Joost Roeleveld jo...@antarean.org wrote:
 On Monday 04 April 2011 11:13:58 Pandu Poluan wrote:
 Oh, the nostalgy... :-)

 My first computer I believe was an Apple ][, a hand-down from an
 uncle. It ran only for 1-2 weeks before it went to the Bit Bucket in
 the Sky.

 That's sad, only 2 weeks...
 A friend of my dad got us an apple-emulator, had a game I played a lot untill
 I found out that the game was incomplete and would always crash at the same
 point. It was a point-click adventure...

 Then my parents got me an Atari 800XL. That's where I cut my
 programming teeth with its built-in BASIC.

 Yes, the old days with Basic. I wonder if I still have the old programs... The
 3.5 floppy-disks are still around somewhere..

 When its floppy drive (5.25) gave up the ghost, I got another
 hand-down; a PC-XT compatible no-name with a huge (at that time) 20 MB
 hard disk.

 2nd one we had was a 386sx-16mhz with 2 mb ram and 40mb harddrive.
 I did try to install linux on that once, but the network-install took forever.
 The NIC could do 10mbit half-duples (coax), but effective speed was less.
 Symptoms:
 download 1KB at full speed
 card crashed
 driver resets after 5 minutes
 ... repeat...


Okay, I have to be honest: I LOL-ed at that... xD

 That was in 2.0.x kernels and I think I saw a change-log where that driver
 finally got fixed in 2.6.0 (could be mistaken on that. It was an Intel
 Etherlink-16)

 I don't have that card anymore.

 Again, it died after serving me  my brother for a couple of years,
 and we got a PC Brand 486 SLC desktop. And there I dabbled in Pascal
 and ASM, making replacement drivers for MS-DOS :-P ... I still
 remember tuning QEMM386.sys trying to eke the last bytes of Low
 Memory...

 What's the most low-memory you could get it and still use it?
 I managed to get low memory to around 634KB (If I remember correctly) using
 the memory-tools that came with Norton Utilities at the time.


I don't really recall... but around the same number, I guess. 630-something.

Actually, I once managed to get 639KB, but lots of apps became
unstable, so I went slightly more conservative :-)

 Afterwards, I started university, and its a blur of PC clones (and
 Windows 9x)... and I shifted mental-gears to become a network engineer

 When did you switch to Linux?

 I switched when MS Windows 95 crashed once too many and decided to delete some
 files along with it. I didn't bother fixing that installation and eventually
 reclaimed the diskspace and removed it from /etc/lilo.conf.


Too many apps* I use day-by-day have only Windows version, so I never
did switch to Linux :-(

First time I ever deployed Linux for day-to-day work was when I
started an IT Training company with my former professor. We installed
Fedora Core but replaced the UI with xfce.

However, not until Ubuntu Hardy did I finally got serious about
migrating to Linux. Currently am still migrating the non-legacy
servers to Linux from Windows

* please consider games as apps :-P


Rgds,
--
Pandu E Poluan
~ IT Optimizer ~
Visit my Blog: http://pepoluan.posterous.com



Re: OT: Computers-memory-lane.... [Was: [gentoo-user] Re: How low can you go?]

2011-04-04 Thread Joost Roeleveld
On Monday 04 April 2011 11:49:02 Pandu Poluan wrote:
 On Mon, Apr 4, 2011 at 16:35, Joost Roeleveld jo...@antarean.org wrote:
  On Monday 04 April 2011 11:13:58 Pandu Poluan wrote:
  When its floppy drive (5.25) gave up the ghost, I got another
  hand-down; a PC-XT compatible no-name with a huge (at that time) 20 MB
  hard disk.
  
  2nd one we had was a 386sx-16mhz with 2 mb ram and 40mb harddrive.
  I did try to install linux on that once, but the network-install took
  forever. The NIC could do 10mbit half-duples (coax), but effective speed
  was less. Symptoms:
  download 1KB at full speed
  card crashed
  driver resets after 5 minutes
  ... repeat...
 
 Okay, I have to be honest: I LOL-ed at that... xD

I do as well, now...
At the time, I was rather annoyed as I, at the time, made a really good effort 
finding a decent network card (so I thought) and had to drag that thing into 
uni by public transport during rush hour...

  Again, it died after serving me  my brother for a couple of years,
  and we got a PC Brand 486 SLC desktop. And there I dabbled in Pascal
  and ASM, making replacement drivers for MS-DOS :-P ... I still
  remember tuning QEMM386.sys trying to eke the last bytes of Low
  Memory...
  
  What's the most low-memory you could get it and still use it?
  I managed to get low memory to around 634KB (If I remember correctly)
  using the memory-tools that came with Norton Utilities at the time.
 
 I don't really recall... but around the same number, I guess.
 630-something.
 
 Actually, I once managed to get 639KB, but lots of apps became
 unstable, so I went slightly more conservative :-)

I spent all that effort just to be able to play the occasional game. Most of my 
programming was, at the time, still done on the Atari. I did use them side-by-
side for a while.

  Afterwards, I started university, and its a blur of PC clones (and
  Windows 9x)... and I shifted mental-gears to become a network engineer
  
  When did you switch to Linux?
  
  I switched when MS Windows 95 crashed once too many and decided to delete
  some files along with it. I didn't bother fixing that installation and
  eventually reclaimed the diskspace and removed it from /etc/lilo.conf.
 
 Too many apps* I use day-by-day have only Windows version, so I never
 did switch to Linux :-(

There are plenty of games also available for Linux.
When I started with Linux, one of the popular ones was xtris.
For the people who don't know it, it's a networked version of tetris where, 
when one player clears a line, or multiple lines, an equivalent number of 
junk-lines would appear at the bottom of a random different player.

In the end there were 2 versions in use.
One was binary-only with an ID-code only allowing connections from other 
binary-only clients.
The other one was more open.
The reason for the binary-only was due to some complaints about cheating 
where people added additional keys to do all kinds of different things like:
- bounce junk to next player
- ignore junk-message
- send junk to others
- select next piece to be available

These, however, were all modified by the actual player.

For more modern games, there are plenty that run natively on Linux. Either 
ported/created by the original developers or ported by a third party.

 First time I ever deployed Linux for day-to-day work was when I
 started an IT Training company with my former professor. We installed
 Fedora Core but replaced the UI with xfce.
 
 However, not until Ubuntu Hardy did I finally got serious about
 migrating to Linux. Currently am still migrating the non-legacy
 servers to Linux from Windows

Good luck with that. I know about the difficulty with that if some apps use ms-
windows specific tricks

 * please consider games as apps :-P

Games are applications, yes...
Just a very specific type.

--
Joost



Re: [gentoo-user] Failed to emerge sys-devel/gcc-4.4.5

2011-04-04 Thread Alan McKinnon
On Monday 04 April 2011 10:56:43 Pandu Poluan wrote:
 I've been experiencing failures trying to emerge sys-devel/gcc-4.4.5
 
 Here are the information:
 
 emerge --info =sys-devel/gcc-4.4.5: http://pastebin.com/vCWDbYwH
 
 build.log : http://www.keepandshare.com/doc/view.php?id=2720253da=y
 (1MB, zipped into 61KB)
 
 environment : http://www.keepandshare.com/doc/view.php?id=2720256da=y
 (187KB, zipped into 44KB)
 
 emerge -pqv =sys-devel/gcc-4.4.5:
 [ebuild U ] sys-devel/gcc-4.4.5 [4.4.4-r2] USE=hardened mudflap
 nls nptl openmp (-altivec) -bootstrap -build -doc (-fixed-point)
 -fortran -gcj -graphite -gtk (-libffi) (-multilib) -multislot (-n32)
 (-n64) -nocxx -nopie -nossp -objc -objc++ -objc-gc -test -vanilla
 
 Can anyone tell me what I did wrong?

Yeah, you used pastebin and other ephemeral hosting sites. 

Don't do that here, just snip out the *relevant* bits of the logs and post 
them in the body of the mail. Without that, your odds of getting good replies 
here are somewhat reduced.

Pastebin links also expire, which is not good for archival purposes.


-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Failed to emerge sys-devel/gcc-4.4.5

2011-04-04 Thread Pandu Poluan
On Mon, Apr 4, 2011 at 18:41, Alan McKinnon alan.mckin...@gmail.com wrote:
 On Monday 04 April 2011 10:56:43 Pandu Poluan wrote:
 I've been experiencing failures trying to emerge sys-devel/gcc-4.4.5

 Here are the information:

 emerge --info =sys-devel/gcc-4.4.5: http://pastebin.com/vCWDbYwH

 build.log : http://www.keepandshare.com/doc/view.php?id=2720253da=y
 (1MB, zipped into 61KB)

 environment : http://www.keepandshare.com/doc/view.php?id=2720256da=y
 (187KB, zipped into 44KB)

 emerge -pqv =sys-devel/gcc-4.4.5:
 [ebuild     U ] sys-devel/gcc-4.4.5 [4.4.4-r2] USE=hardened mudflap
 nls nptl openmp (-altivec) -bootstrap -build -doc (-fixed-point)
 -fortran -gcj -graphite -gtk (-libffi) (-multilib) -multislot (-n32)
 (-n64) -nocxx -nopie -nossp -objc -objc++ -objc-gc -test -vanilla

 Can anyone tell me what I did wrong?

 Yeah, you used pastebin and other ephemeral hosting sites.

 Don't do that here, just snip out the *relevant* bits of the logs and post
 them in the body of the mail. Without that, your odds of getting good replies
 here are somewhat reduced.

 Pastebin links also expire, which is not good for archival purposes.


Okay, sorry. A habit I acquired in another mailing list which do not
want in-line paste.

# emerge --info =sys-devel/gcc-4.4.5

Portage 2.1.9.45 (hardened/linux/amd64/no-multilib, gcc-4.4.4,
glibc-2.12.2-r0, 2.6.36-gentoo-r5 x86_64)
=
System Settings
=
System uname: 
Linux-2.6.36-gentoo-r5-x86_64-Intel-R-_Xeon-R-_CPU_E5335_@_2.00GHz-with-gentoo-1.12.14
Timestamp of tree: Sat, 02 Apr 2011 08:45:01 +
app-shells/bash: 4.1_p9
dev-lang/python: 2.6.6-r1, 3.1.2-r4
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:2.4
sys-devel/autoconf:  2.65-r1
sys-devel/automake:  1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:   4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:  3.81-r2
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS=amd64
ACCEPT_LICENSE=* -@EULA
CBUILD=x86_64-pc-linux-gnu
CFLAGS=-O2 -march=native -pipe
CHOST=x86_64-pc-linux-gnu
CONFIG_PROTECT=/etc /usr/share/gnupg/qualified.txt
CONFIG_PROTECT_MASK=/etc/ca-certificates.conf /etc/env.d /etc/gconf
/etc/sandbox.d /etc/terminfo
CXXFLAGS=-O2 -march=native -pipe
DISTDIR=/usr/portage/distfiles
FEATURES=assume-digests binpkg-logs distlocks fixlafiles fixpackages
news parallel-fetch protect-owned sandbox sfperms strict
unknown-features-warn unmerge-logs unmerge-orphans userfetch
FFLAGS=
GENTOO_MIRRORS=http://172.31.2.40:80/Repo/gentoo/
ftp://gentoo.cs.nctu.edu.tw/gentoo/ ftp://gg3.net/pub/linux/gentoo/
ftp://mirrors.sohu.com/gentoo/;
LDFLAGS=-Wl,-O1 -Wl,--as-needed
MAKEOPTS=-j3
PKGDIR=/usr/portage/packages
PORTAGE_CONFIGROOT=/
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=/var/tmp
PORTDIR=/usr/portage
PORTDIR_OVERLAY=
SYNC=rsync://rsync.tw.gentoo.org/gentoo-portage
USE=3dnow acl amd64 berkdb bzip2 cli cracklib crypt cxx hardened
iconv justify mmx modules mudflap ncurses nls nptl nptlonly offensive
openmp pam pcre perl pppd python readline session sse sse2 ssl sysfs
tcpd unicode urandom xml xorg zlib ALSA_CARDS=ali5451 als4000 atiixp
atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938
es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio
via82xx via82xx-modem ymfpci 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 APACHE2_MODULES=actions alias auth_basic authn_alias
authn_anon authn_dbm authn_default authn_file authz_dbm authz_default
authz_groupfile authz_host authz_owner authz_user autoindex cache cgi
cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter
file_cache filter headers include info log_config logio mem_cache mime
mime_magic negotiation rewrite setenvif speling status unique_id
userdir usertrack vhost_alias CAMERAS=ptp2 COLLECTD_PLUGINS=df
interface irq load memory rrdtool swap syslog ELIBC=glibc
GPSD_PROTOCOLS=ashtech aivdm earthmate evermore fv18 garmin garmintxt
gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore
rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx
INPUT_DEVICES=keyboard mouse evdev KERNEL=linux
LCD_DEVICES=bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb
ncurses text PHP_TARGETS=php5-3 RUBY_TARGETS=ruby18
USERLAND=GNU VIDEO_CARDS=fbdev glint intel mach64 mga neomagic
nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy
v4l XTABLES_ADDONS=quota2 psd pknock lscan length2 ipv4options ipset
ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat
logmark ipmark dhcpmac delude chaos 

Re: [gentoo-user] Failed to emerge sys-devel/gcc-4.4.5

2011-04-04 Thread Mike Edenfield

On 4/4/2011 8:07 AM, Pandu Poluan wrote:


MAKEOPTS=-j3



{standard input}: Assembler messages:
{standard input}:146362: Error: open CFI at the end of file; missing
.cfi_endproc directive
xgcc: Internal error: Killed (program cc1)


This kind of error is often caused by the parallel make not 
quite working. Try running the build like:


MAKEOPTS=-j1 emerge =sys-devel/gcc-4.4.5

In general, whenever you get strange build errors (i.e. that 
have no immediately obvious cause) you should try again with 
MAKEOPTS=-j1. Often it will fix the problem, but even when 
it doesn't you will usually get a much more useful error.


--Mike



Re: [gentoo-user] Setting up a local web server

2011-04-04 Thread Peter Humphrey
On Monday 04 April 2011 10:17:34 Joost Roeleveld wrote:
 On Friday 01 April 2011 21:56:47 Peter Humphrey wrote:

  This is connected with the other thread I've written to today, about
  using my workstation as an emerge server. A complication I didn't
  mention there is that both make.conf and package.use have to be
  identical in the chroot and the target system nfs-mounted under it. I
  must have got them out of step at some stage.
 
 Try recompiling php.
 You may have accidentally removed the php-library as that is located under:
 /usr/lib/apache2/modules/...

It may not be clear from what preceded this, but the problem was actually 
caused 
by the particular way I'd used chroot, nfs mounting and --root parameter to 
portage running in the chroot on my emerge server.

As soon as I change my process the problem went away, together with several 
others I haven't bothered the list with.

Thanks anyway.

-- 
Rgds
Peter



[gentoo-user] Re: Which network monitoring?

2011-04-04 Thread James
Pandu Poluan pandu at poluan.info writes:


 Can you recommend a suitable monitoring system for Gentoo?

www.JFFNMS.org

Being written in PHP, JFFNMS can be customized to suit 
different pieces of equipment.  Basically if the device 
has something interesting to monitor via SNMP either a 
state (up/down) or a value, JFFNMS can be made to monitor it.

It's very flexible and lightweight. Under fresh new development.
Really cool for SNMP, routers, managed switches, servers
ups, and unique devices. etc etc. Syslog monitoring too.
Easy to extend to new or unique devices (php).

There should be an updated ebuild coming out any day 
(thanks titan9fold)!

Postgresql 9 support real soon


hth,
James






[gentoo-user] Re: RAID on new install

2011-04-04 Thread James
walt w41ter at gmail.com writes:



  software raid system, with BTRFS.

 I just want to make sure you know that BTRFS is experimental and
 not intended yet for use on production machines.  Otherwise, have

Yea...
EXT4 or BTRFS
thats the decision.

Most of the docs look dated...


James




[gentoo-user] Re: RAID on new install

2011-04-04 Thread James
Mark Knecht markknecht at gmail.com writes:


Depending on what you are putting onto your RAID watch carefully
 what choices you make for SuperBlock type as well as being aware of
 possible md name changes between the install environment and your
 first real boot.

Nice to know.


(I think I'm going to stick with ext4 for now).
(BTRFS later...) I have 2 identical 2T seagate drives.
The main purpose is to run an php and apache
server  and use kde (kiosk) to display network status 
using jffnms (graphical) and postgresql-9.

Raid 1 Mirroring for most if not all partitions.
Think of it as a station where everyone can view
the network conditions, as users, but I remote
admin the system. No logins except via the limited
kiosk  to just view/query the network, or a remote
connection to the server.


These Docs I listed are dated?
Gentoo.wiki.com is finally back up.  These
2 docs reference each other

http://en.gentoo-wiki.com/wiki/Software_RAID_Install
and
http://en.gentoo-wiki.com/wiki/RAID/Software

Which one is more accurate or the best one
to mostly follow? (that's what I'm trying to
figure out now.)

I do appreciate any and all feedback.


James




Which guide do you think is better, for my needs?






[gentoo-user] Re: RAID on new install

2011-04-04 Thread James
Mark Shields laebshade at gmail.com writes:


 The last guide recommends using raid0 on some 
 partitions; everytime I use LVM2, I use nothing 
 but raid1 partitions.  I'd rather have the full 
 raid1 than partial raid 1 + speed of raid0.


Well Raid 1 only would be keen. 
Even swap as raid 1 ?

There are actually 2 docs that cross
reference each other. See my post to 
Mark's input...

thx
James







Re: [gentoo-user] Re: RAID on new install

2011-04-04 Thread Mark Knecht
On Mon, Apr 4, 2011 at 7:14 AM, James wirel...@tampabay.rr.com wrote:
 Mark Knecht markknecht at gmail.com writes:


    Depending on what you are putting onto your RAID watch carefully
 what choices you make for SuperBlock type as well as being aware of
 possible md name changes between the install environment and your
 first real boot.

 Nice to know.


 (I think I'm going to stick with ext4 for now).
 (BTRFS later...) I have 2 identical 2T seagate drives.
 The main purpose is to run an php and apache
 server  and use kde (kiosk) to display network status
 using jffnms (graphical) and postgresql-9.

 Raid 1 Mirroring for most if not all partitions.
 Think of it as a station where everyone can view
 the network conditions, as users, but I remote
 admin the system. No logins except via the limited
 kiosk  to just view/query the network, or a remote
 connection to the server.


 These Docs I listed are dated?
 Gentoo.wiki.com is finally back up.  These
 2 docs reference each other

 http://en.gentoo-wiki.com/wiki/Software_RAID_Install
 and
 http://en.gentoo-wiki.com/wiki/RAID/Software

 Which one is more accurate or the best one
 to mostly follow? (that's what I'm trying to
 figure out now.)

 I do appreciate any and all feedback.


 James




 Which guide do you think is better, for my needs?

I suspect that a 2-drive RAID1 is a good solution for you. I
personally doubt that ext4 vs ext3 will make any difference. I use
both myself. I wouldn't personally touch any new file system type when
trying to learn to do RAID. Save that for some future date.

Unfortunately neither link is responding as I write this, but my
recent (last 6 months) experience with the Gentoo RAID documents is
that none of them result in a completely working system first time
through. (Again, I cannot look at these links right now so please
excuse my not knowing about any recent changes.)

1) They are all based on the oldest SuperBlock 0.9 format which, if I
remember correctly, is not the default SuperBlock format that mdadm
creates these days.

2) I was able to build a SB-0.9 system using the same docs. I was only
able to build a working SB-1.2 by also including an initramfs:

http://en.gentoo-wiki.com/wiki/Initramfs

Pay special attention to note about building certain things static or
the initramfs won't work for you. Also, include all the tools you can
that will help with debugging why you cannot mount the root file
system. My experience is that you won't be able to for the first day
and you'll find the tools invaluable in getting it worked out.

3) It might be frustrating, but I'd suggest some testing of the RAID
before the actual install. Boot the install disk, build the RAID, then
learn to use mdadm examine  detail commands to understand then names
your RAIDs have. Pay attention to what the name of the machine will
eventually be. Consider renaming the RAIDs before the real Gentoo
install so that when you boot the real install it can find them.

I run RAID these days on almost all my machines. I just got a laptop
with 2 500GB hard drives which will become a 2-drive RAID1 system when
I get around to doing the work.

I hope this response is at least somewhat helpful.

Good luck,
Mark



Re: [gentoo-user] Re: RAID on new install

2011-04-04 Thread Mark Knecht
On Mon, Apr 4, 2011 at 7:16 AM, James wirel...@tampabay.rr.com wrote:
 Mark Shields laebshade at gmail.com writes:


 The last guide recommends using raid0 on some
 partitions; everytime I use LVM2, I use nothing
 but raid1 partitions.  I'd rather have the full
 raid1 than partial raid 1 + speed of raid0.


 Well Raid 1 only would be keen.
 Even swap as raid 1 ?


The kernel does it's own management of swap. If you use swap at all
I'd let the kernel manage that itself and not get in the middle with
RAID.

- Mark



[gentoo-user] http-replicator permissions

2011-04-04 Thread Peter Humphrey
Hello again list,

Will someone who knows please tell me what permissions I need to give the 
/usr/portage tree for http-replicator to manage it? I've started with chown -R 
portage:portage /usr/portage but that may not be ideal.

TIA

-- 
Rgds
Peter



[gentoo-user] issues with apache config

2011-04-04 Thread James
I'm a long-time Cherokee user that is switching to Apache due to a
nasty Cherokee bug that I can't seem to work around.

I've configured Apache many times (albeit a long time ago), and can't
seem to figure out what's going on here.

I have a simple PHP app running that lives in some directory, say
/stuff/web/app.

I then have a vhost configuration that looks like this:

Directory /stuff/web/app
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
/Directory

The vhost looks like this:

VirtualHost app.server.com:80
ServerName app.server.com
DocumentRoot /stuff/web/app
ErrorLog /var/log/apache2/app.error
/VirtualHost

When the server reboots, Apache refuses to serve me anything, giving
the following error:

== error_log ==
[Mon Apr 04 07:17:59 2011] [error] [client 10.35.22.81] client denied
by server configuration: /usr/htdocs

== access_log ==
10.35.22.81 - - [04/Apr/2011:07:17:59 -0400] \x16\x03\x01\x01\x98\x01 403 273

I'm well aware of the default apache configuration (defined in
/etc/apache2/modules.d/00_default_settings.conf), and that the default
directory directive has a Deny from all default.

However, if I *restart* my daemon with NO configuration changes after
seeing these errors, the page comes up beautifully. Also worth noting
is that rebooting the server again will put Apache back into a
broken state and only after restarting the daemon will things
function correctly.

Thoughts on how to fix this would be much, MUCH appreciated. I am
running out of hair to pull out of my head. :)

-james



[gentoo-user] Re: issues with apache config

2011-04-04 Thread James
It's also worth noting that I have *no* /usr/htdocs line in any of
my configuration file(s).

-james


On Mon, Apr 4, 2011 at 11:22, James j...@nc.rr.com wrote:
 I'm a long-time Cherokee user that is switching to Apache due to a
 nasty Cherokee bug that I can't seem to work around.

 I've configured Apache many times (albeit a long time ago), and can't
 seem to figure out what's going on here.

 I have a simple PHP app running that lives in some directory, say
 /stuff/web/app.

 I then have a vhost configuration that looks like this:

 Directory /stuff/web/app
        Options Indexes FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
 /Directory

 The vhost looks like this:

 VirtualHost app.server.com:80
        ServerName app.server.com
        DocumentRoot /stuff/web/app
        ErrorLog /var/log/apache2/app.error
 /VirtualHost

 When the server reboots, Apache refuses to serve me anything, giving
 the following error:

 == error_log ==
 [Mon Apr 04 07:17:59 2011] [error] [client 10.35.22.81] client denied
 by server configuration: /usr/htdocs

 == access_log ==
 10.35.22.81 - - [04/Apr/2011:07:17:59 -0400] \x16\x03\x01\x01\x98\x01 403 
 273

 I'm well aware of the default apache configuration (defined in
 /etc/apache2/modules.d/00_default_settings.conf), and that the default
 directory directive has a Deny from all default.

 However, if I *restart* my daemon with NO configuration changes after
 seeing these errors, the page comes up beautifully. Also worth noting
 is that rebooting the server again will put Apache back into a
 broken state and only after restarting the daemon will things
 function correctly.

 Thoughts on how to fix this would be much, MUCH appreciated. I am
 running out of hair to pull out of my head. :)

 -james




Re: [gentoo-user] issues with apache config

2011-04-04 Thread Pandu Poluan
Based on the symptoms, i.e., works from CLI but fails during boot, I
suspect a problem with privileges/attributes. What UID is Apache
running as?

Anyways, what's wrong with Cherokee? I really like to know because I
am currently considering deploying Cherokee.

Rgds,


On 2011-04-04, James j...@nc.rr.com wrote:
 It's also worth noting that I have *no* /usr/htdocs line in any of
 my configuration file(s).

 -james


 On Mon, Apr 4, 2011 at 11:22, James j...@nc.rr.com wrote:
 I'm a long-time Cherokee user that is switching to Apache due to a
 nasty Cherokee bug that I can't seem to work around.

 I've configured Apache many times (albeit a long time ago), and can't
 seem to figure out what's going on here.

 I have a simple PHP app running that lives in some directory, say
 /stuff/web/app.

 I then have a vhost configuration that looks like this:

 Directory /stuff/web/app
        Options Indexes FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
 /Directory

 The vhost looks like this:

 VirtualHost app.server.com:80
        ServerName app.server.com
        DocumentRoot /stuff/web/app
        ErrorLog /var/log/apache2/app.error
 /VirtualHost

 When the server reboots, Apache refuses to serve me anything, giving
 the following error:

 == error_log ==
 [Mon Apr 04 07:17:59 2011] [error] [client 10.35.22.81] client denied
 by server configuration: /usr/htdocs

 == access_log ==
 10.35.22.81 - - [04/Apr/2011:07:17:59 -0400] \x16\x03\x01\x01\x98\x01
 403 273

 I'm well aware of the default apache configuration (defined in
 /etc/apache2/modules.d/00_default_settings.conf), and that the default
 directory directive has a Deny from all default.

 However, if I *restart* my daemon with NO configuration changes after
 seeing these errors, the page comes up beautifully. Also worth noting
 is that rebooting the server again will put Apache back into a
 broken state and only after restarting the daemon will things
 function correctly.

 Thoughts on how to fix this would be much, MUCH appreciated. I am
 running out of hair to pull out of my head. :)

 -james





-- 
--
Pandu E Poluan - IT Optimizer
My website: http://pandu.poluan.info/



Re: [gentoo-user] issues with apache config

2011-04-04 Thread James
Hi Pandu,

Thanks for the response. What kind of permissions / privileges issues
would cause this sort of behavior.

~ % ps aux | grep -i apache
root  2421  1.1  0.3 224928 12312 ?Ss   09:53   0:00
/usr/sbin/apache2 -D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST
-D LANGUAGE -D PHP5 -d /usr/lib64/apache2 -f /etc/apache2/httpd.conf
-k start
apache2423  0.0  0.1 209904  3884 ?S09:53   0:00
/usr/sbin/apache2 -D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST
-D LANGUAGE -D PHP5 -d /usr/lib64/apache2 -f /etc/apache2/httpd.conf
-k start
apache2428  0.0  0.2 438024  8152 ?Sl   09:53   0:00
/usr/sbin/apache2 -D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST
-D LANGUAGE -D PHP5 -d /usr/lib64/apache2 -f /etc/apache2/httpd.conf
-k start
apache2429  0.0  0.2 438024  8148 ?Sl   09:53   0:00
/usr/sbin/apache2 -D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST
-D LANGUAGE -D PHP5 -d /usr/lib64/apache2 -f /etc/apache2/httpd.conf
-k start

Looks like there's one process running as root, and the rest are
running as Apache. /stuff/web/app is also apache:apache.

Cherokee has a bug that creeps up on you when you're using SSL. PHP
pages will half-load, sometimes completely load. The developers have
NO idea what causes the problem. They've got a bug open but apparently
they can't find root cause. While I love Cherokee, until this is fixed
simple things like a wiki page loading will present the issue when
there are graphics involved.

-james


On Mon, Apr 4, 2011 at 13:15, Pandu Poluan pa...@poluan.info wrote:
 Based on the symptoms, i.e., works from CLI but fails during boot, I
 suspect a problem with privileges/attributes. What UID is Apache
 running as?

 Anyways, what's wrong with Cherokee? I really like to know because I
 am currently considering deploying Cherokee.

 Rgds,


 On 2011-04-04, James j...@nc.rr.com wrote:
 It's also worth noting that I have *no* /usr/htdocs line in any of
 my configuration file(s).

 -james


 On Mon, Apr 4, 2011 at 11:22, James j...@nc.rr.com wrote:
 I'm a long-time Cherokee user that is switching to Apache due to a
 nasty Cherokee bug that I can't seem to work around.

 I've configured Apache many times (albeit a long time ago), and can't
 seem to figure out what's going on here.

 I have a simple PHP app running that lives in some directory, say
 /stuff/web/app.

 I then have a vhost configuration that looks like this:

 Directory /stuff/web/app
        Options Indexes FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
 /Directory

 The vhost looks like this:

 VirtualHost app.server.com:80
        ServerName app.server.com
        DocumentRoot /stuff/web/app
        ErrorLog /var/log/apache2/app.error
 /VirtualHost

 When the server reboots, Apache refuses to serve me anything, giving
 the following error:

 == error_log ==
 [Mon Apr 04 07:17:59 2011] [error] [client 10.35.22.81] client denied
 by server configuration: /usr/htdocs

 == access_log ==
 10.35.22.81 - - [04/Apr/2011:07:17:59 -0400] \x16\x03\x01\x01\x98\x01
 403 273

 I'm well aware of the default apache configuration (defined in
 /etc/apache2/modules.d/00_default_settings.conf), and that the default
 directory directive has a Deny from all default.

 However, if I *restart* my daemon with NO configuration changes after
 seeing these errors, the page comes up beautifully. Also worth noting
 is that rebooting the server again will put Apache back into a
 broken state and only after restarting the daemon will things
 function correctly.

 Thoughts on how to fix this would be much, MUCH appreciated. I am
 running out of hair to pull out of my head. :)

 -james





 --
 --
 Pandu E Poluan - IT Optimizer
 My website: http://pandu.poluan.info/





Re: [gentoo-user] http-replicator permissions

2011-04-04 Thread Dale

Peter Humphrey wrote:

Hello again list,

Will someone who knows please tell me what permissions I need to give the
/usr/portage tree for http-replicator to manage it? I've started with chown -R
portage:portage /usr/portage but that may not be ideal.

TIA

   


This is mine:

drwxr-xr-x 163 root  root   4096 Apr  3 21:01 portage

My distfiles directory is this:

drwxrwsr-x4 root portage 40960 Apr  3 22:22 distfiles

I don't recall ever having permission problems for this tho.  The 
service starts as root I think.


Hope that helps.

Dale

:-)  :-)



Re: [gentoo-user] http-replicator permissions

2011-04-04 Thread William Kenworthy
On Mon, 2011-04-04 at 16:22 +0100, Peter Humphrey wrote:
 Hello again list,
 
 Will someone who knows please tell me what permissions I need to give the 
 /usr/portage tree for http-replicator to manage it? I've started with chown 
 -R 
 portage:portage /usr/portage but that may not be ideal.
 
 TIA
 

I dont think http-replicator can manage a directory structure - are you
trying to do something fancier than just serving out tarballs?

BillK








Re: [gentoo-user] http-replicator permissions

2011-04-04 Thread Peter Humphrey
On Monday 04 April 2011 19:12:03 William Kenworthy wrote:

 I dont think http-replicator can manage a directory structure - are you
 trying to do something fancier than just serving out tarballs?

Yes; I want it to mirror my portage tree and serve it to other boxes on the 
LAN. 
It used to do this well enough; I just want to get the permissions right.

-- 
Rgds
Peter



[gentoo-user] Another chkrootkit false positive?

2011-04-04 Thread Mick
You have 2 process hidden for readdir command
You have 3 process hidden for ps command
chkproc: Warning: Possible LKM Trojan installed
 The tty of the following user process(es) were not found
 in /var/run/utmp !
! RUID  PID TTYCMD

however, rkhunter shows:

Heroin LKM  [ Not found ]

Is this different to LKM Trojan mentioned above?

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Re: Which network monitoring?

2011-04-04 Thread Mick
On Monday 04 April 2011 14:44:37 James wrote:
 Pandu Poluan pandu at poluan.info writes:
  Can you recommend a suitable monitoring system for Gentoo?
 
 www.JFFNMS.org
 
 Being written in PHP, JFFNMS can be customized to suit
 different pieces of equipment.  Basically if the device
 has something interesting to monitor via SNMP either a
 state (up/down) or a value, JFFNMS can be made to monitor it.
 
 It's very flexible and lightweight. Under fresh new development.
 Really cool for SNMP, routers, managed switches, servers
 ups, and unique devices. etc etc. Syslog monitoring too.
 Easy to extend to new or unique devices (php).
 
 There should be an updated ebuild coming out any day
 (thanks titan9fold)!
 
 Postgresql 9 support real soon
 
 
 hth,
 James

Personally, I opted for Nagios because back then there weren't (m)any other 
applications with such a high number of plugins that could monitor as much as 
Nagios does.  These days there more options to investigate and find what suits 
you best:

http://www.learncomputer.com/open-source-network-tools/
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Another chkrootkit false positive?

2011-04-04 Thread Paul Hartman
On Mon, Apr 4, 2011 at 3:08 PM, Mick michaelkintz...@gmail.com wrote:
 You have     2 process hidden for readdir command
 You have     3 process hidden for ps command
 chkproc: Warning: Possible LKM Trojan installed

I don't get this message when I run it, but looking at the source code
it looks like the chkproc program reads /proc/ entries and compares it
to the output of the ps command.

The changelog was last updated in January 2006. So if anything in
linux kernel /proc/ subsystem or the procps package has changed in the
past 5 years then maybe you're getting a false positive...

You might be able to do a quick manual comparison of the pids in
/proc/ to the output of ps -A or something and see if anything jumps
out at you. Of course ignore the pid of ls or ps when you're running
it. :)

If you're suspicious of your ps binary I would do which ps to be
sure ps is the one you really expect. Maybe re-emerge procps to
replace it, too.

  The tty of the following user process(es) were not found
  in /var/run/utmp !
 ! RUID          PID TTY    CMD

I do get this message (with my X process listed below it)

 however, rkhunter shows:

 Heroin LKM                                          [ Not found ]

 Is this different to LKM Trojan mentioned above?

I think LKM is just shorthand for Loadable Kernel Module, not the
name of any particular trojan.