[gentoo-user] Re: C++ code on Gentoo
On 8/16/05, James <[EMAIL PROTECTED]> wrote: > The code for nvwa-0.5 was added to try to get robust debugging > (memory) working, but, alas I'm certainly not strong on C++ code, > let alone some body else's C++ code. Try valgrind. It's an excellent memory instrumentation system which can trace back programming mistakes with complete callstacks of the offending site if you compile with debugging symbols. Last time I looked, a fairly recent version was in portage. Good luck, Andreas -- And I hate redundancy, and having different functions for the same thing. - Linus Torvalds on linux-kernel -- gentoo-user@gentoo.org mailing list
[gentoo-user] Re: Ebuild with scons and sandbox
On 8/16/05, Nagatoro <[EMAIL PROTECTED]> wrote: > Hi, > > First off, I'm sorry if this is the wrong place to ask! > > I'm trying to write an ebuild for linuxdcpp (a gtk port of DC++). This > nice app uses scons and not make as the build tool. When I build it > manually it works just fine, but when I try to build it with emerge (or > ebuild) I get this: > Code: > > scons: done building targets. > ACCESS DENIED open_wr: /usr/include/gtk-2.0/gtk/.scons25064 [ SNIP ] > it seems to me like scons is littering the filesystem with somesort of > lock files but I've been unable to find any information on this. Does > anyone know how I can prevent scons from trying to make these files or > how I can fool scons into thinking that it could? I'm a SCons user so maybe I can shed some light on the issue. SCons uses content signatures rather than time stamps by default, that is it detects file changes by accumulating MD5 signatures of preprocessed data (i.e. with dependencies). This doesn't work very well on directories such as /usr, but SCons suppresses these errors by default since it's a normal situation on UNIX-like systems. The usual way is to move the include paths from SCons' CPPPATH construction variable to the CXXFLAGS (or CCFLAGS). This way SCons doesn't get to see the directories and therefore ignores the files during the dependency scan. You can also change the target signatures method to use time stamps ranther than content stamps. A good resource for making these modifications would be the scons site at www.scons.org and the wiki on the same site which has lots of information. Regards, Andreas -- And I hate redundancy, and having different functions for the same thing. - Linus Torvalds on linux-kernel -- gentoo-user@gentoo.org mailing list
[gentoo-user] Re: Sound not working for user
> Actually it looks like rebooting after adding the user to the audio > group has fixed this. Does that make sense? The id of a user are established when he or she logs in, so logging in and out again is enough. To verify the groups you are in, try executing "id" without options on the shell prompt. Regards, Andreas -- And I hate redundancy, and having different functions for the same thing. - Linus Torvalds on linux-kernel -- gentoo-user@gentoo.org mailing list
[gentoo-user] Re: Sound not working for user
On 8/12/05, Grant <[EMAIL PROTECTED]> wrote: > Hello, sound related apps are no longer working for my user, but they > still do for root. I get /dev/mixer errors for the user. Is there > something simple I should check? I do need to make a bunch of world > updates. Hi, make sure that the user is in the audio group. Regards, Andreas -- And I hate redundancy, and having different functions for the same thing. - Linus Torvalds on linux-kernel -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Does openoffice really require pam?
On 8/11/05, Bastian Balthazar Bux <[EMAIL PROTECTED]> wrote: > So it's possible to > > #emerge -Ca app-shells/tcsh > #emerge -p --depclean > [have a nice reading] > #emerge --depclean > > To get rid of them after them after ? Couldn't you use the binary ooo package to avoid the build-time dependency? Regards, Andreas -- And I hate redundancy, and having different functions for the same thing. - Linus Torvalds on linux-kernel -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] problem compile ipsec-tools
On 8/11/05, Walter Willis <[EMAIL PROTECTED]> wrote: > the install openswan ok but install ipsec-tools and error: > > gcc -L../libipsec/.libs -o plainrsa-gen plainrsa-gen.o plog.o vmbuf.o > crypto_openssl.o logger.o misc.o -lssl -lcrypto -lresolv -lipsec > -lflsha2.o > gcc: sha2.o: No such file or directory > make[3]: *** [plainrsa-gen] Error 1 > make[3]: *** Waiting for unfinished jobs (SNIP) It sounds as if the ebuild is incompatible with the -j make flag. Try exporting MAKEOPTS (IIRC, I'm not at my gentoo box) to an empty string or -j1 (which limits the number of concurrent jobs to one) when merging it: MAKEOPTS="-j1" emerge ipsec-tools Regards, Andreas -- And I hate redundancy, and having different functions for the same thing. - Linus Torvalds on linux-kernel -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] tomcat5 & sun-jdk issue
On 8/9/05, Covington, Chris <[EMAIL PROTECTED]> wrote: > I'm running www-servers/tomcat-5.0.28-r4 net-www/apache-2.0.54-r13 and > dev-java/sun-jdk-1.4.2.08-r1. Though tomcat works fine, for some reason > I have 56 java processes running each time I restart tomcat? Anyone > know how this could be? These are most likely threads, since so many of them share the same memory usage. Try the various ps options that relate to threads and see if you can make the display prettier. Regards, Andreas -- And I hate redundancy, and having different functions for the same thing. - Linus Torvalds on linux-kernel -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Copying contents /boot from /dev/hdb1 to /dev/hda2
On 7/28/05, Sean Higgins <[EMAIL PROTECTED]> wrote: > > > tar cvf - * | tar xf -C ../new/ > > > > * doesn't match hidden files, so the copy will be incomplete. > > Neil, > > Interesting. I had not thought about that. I did use the above to recreate > my hard drive from one hard drive to another one. It worked well, I guess I > lucked out that I did not have any hidden files in the "old" directory. A better option is to use . (dot) a the directory. Also adding -p to preserve permissions is essential when backing up a whole system: tar cfp - . | (cd /target/path && tar xvfp -) Regards, Andreas -- And I hate redundancy, and having different functions for the same thing. - Linus Torvalds on linux-kernel -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] how to play .vox file?
On 7/1/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > i have to deal with a lot of .vox file in my work. > so far, i've found that only CoolEdit can play and > process such stuff. is there any equivalent on my > gentoo box? mplayer is possible, but it failed. > any ideas? While I don't know of a player that plays them natively, it looks like sox(1) can convert them to something that can be played. // Andreas -- And I hate redundancy, and having different functions for the same thing. - Linus Torvalds on linux-kernel -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Gentoo on Intel Extended Memory 64 Technology
On 6/3/05, Khan <[EMAIL PROTECTED]> wrote: > Hello, > > I'm thinking of installing gentoo on server with Intel(r) Extended Memory > 64 Technology. Do I have to make something special in make.conf or to > use usual flags: IIRC these chips are x86_64 compatible, so unless you have any specific reason to run them in 32-bit mode you'd be better off with the amd64 live CD and using something sane like CFLAGS="-O2 -m64" // Andreas -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] CFLAGS CPU optimization question.
On 5/29/05, Digby Tarvin <[EMAIL PROTECTED]> wrote: > On the subject of CPU flags, anyone tried optimizing gentoo for a > Toshiba Libretto (110CT)? > model name : Mobile Pentium MMX > flags : fpu vme de pse tsc msr mce cx8 mmx This is indeed a "classic" pentium chip with mmx added. You can use -mcpu=pentium (or -march=pentium), optionally adding the mmx USE flag for those packages that support it. // Andreas -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Cups webinterface
On 5/4/05, Patrick Marquetecken <[EMAIL PROTECTED]> wrote: > I'm trying to connect to our cups printserver with http://:631 but i > always get: cups connection is refused. > On the machine itself i have no problem with localhost:631 > In cupsd.conf i've got allow from 10.32.0.0/22 our ip range and i have > restarted cups. > > what have i missed? 'localhost' is mapped to 127.0.0.1, so probably the cups admin port is bound to 127.0.0.1 only. You can verify that with "netstat -ta". There's likely a configuration option somewhere to ask it to bind to another address. // Andreas -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Backing up remote partitions
On 5/3/05, Mark Knecht <[EMAIL PROTECTED]> wrote: > Hi, >Can anyone here think of a way to back up remote partitions before > installing Gentoo? Is there some way to run a command like dd but pipe > the output it back to my local machine? What other info might I need > to restore the remote machine later? I figure I'll save the partition > information from fdisk. Anything else? If the remote partition is mountable, I think you'll be better off by taking a tar copy of the file system so that you're not constrained to restoring it on the exact same size. Try something like this from your "local" machine (assuming the other machine is called "remote"): ssh [EMAIL PROTECTED] '(cd /src && tar zcfp - .)' > backup.tar.gz (You can omit the 'z' option if compression isn't important.) If you do want to transfer the entire partition, I would recommend you restore the data using a reverse of the above from a loopback mount of that partition file (see the mount man page). This has the added advantage that is allows you to change the filesystem type and/or parameters of the target disk rather than just dumping over the old partition. However, to transfer the entire partition, you could do something like this: ssh [EMAIL PROTECTED] cat /dev/sdc7 > mypartition or compress it as well (on the remote side) using: ssh [EMAIL PROTECTED] 'cat /dev/sdc7 | gzip -9' > mypartition.gz Disclaimer: all of this is untested, but it shouldn't be too far off from a usable solution :-) Hope this helps, Andreas -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] GCC 4.0
On 5/2/05, Neil Walker <[EMAIL PROTECTED]> wrote: > Yes. A lot of stuff simply will not compile with it. The rest tend to > produce large and slow executables. I wouldn't use it for anything yet. > 3.4.x is the best to date. Are there any evidence of said bloat and poor performance with 4.0 or do you base it on hearsay? :-) I studied a lot of assembly output on the pre-release versions of 4.0 and the optimizer has really improved compared to the older series. I would imagine stuff not compiling is mostly because the C++ standard has moved considerably over the last years, and a lot of software which caters for GCC 2.95 isn't well-formed given the latest revision of the standard. That said, it usually takes a minor revision (i.e. 4.1) before a compiler is generally usable for a distro. I remember all the breakage when GCC 3.0 was introduced.. // Andreas -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Samba start error
On 4/28/05, Richard Watson <[EMAIL PROTECTED]> wrote: > When Samba starts I get the error "lpstat: Unable to connect to server: > Connection refused". It actually doesn't seem to affect much as I can see > the shares I've created but I'm curious. Thanks, Richard This has to do with the printing support of samba, your smb.conf is probably configured to share printers as well as files, and when samba tries to access the print spooler to find out what printers are available it fails to connect. Samba regards this as non-fatal as it can still provide useful services by sharing files and directories. You should be able to find more information about samba's printing support in their HOWTO or FAQ documents. Regards, Andreas -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] gcc-4.0.0?
On 4/25/05, Nicolai Guba <[EMAIL PROTECTED]> wrote: > Why bother with GCC at all? It is a horrible compiler which produces slow > code (and has many optimizations above -O2 broken). It's main advantages are > that it is portable and free. If you are looking for a compiler that > actually produces good binaries you are looking the wrong way IMO. > > ICC is a better compiler by far. Shame ICC support is only in a couple of > packages and not more widespread. I wouldn't want to start a flamefest, but I've had a lot of experience with the ICC compiler over the last year working on the Battlefield 2 game engine (I used ICC under Linux) and I thought I'd add my two cents. There are a number of issues with using ICC on large C++ codebases. The most important ones I encountered are, in brief: - It sometimes generates invalid DWARF debugging sections, which crashes both GDB (all versions) and Intel's own debugger, idb. Not very helpful. - It sometimes generates broken assembly code (with duplicate assembly labels) that will not assemble, especially when you use floating point intrinsics (which are on by default). The only remedy is to move certain parts of expressions around. - It silently violates floating point IEEE requirements on the default optimization level (by using SSE single precision). This breaks many programs to the point where they see NaN values everywhere. I'm just trying to show that it's not all roses. For instance, I wouldn't expect something as large as openoffice or mozilla to compile and run successfully with ICC anytime soon unless major dev work goes into porting and babysitting those builds for ICC. On the positive side, ICC has excellent ANSI/ISO C++ support (it's based on a very good frontend which is also shared by Comaeu C++ IIRC), and when you care about speed more than correctness, it's very hard to beat. // Andreas -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Don't read the boot CD
On 4/20/05, Mrugesh Karnik <[EMAIL PROTECTED]> wrote: > Otherwise, another solution (I personally have never used it, but is > possible) is to use WinRAR to extract all the contents of the ISO file > to a folder and burn the contents of the folder. Note that you're not to > burn the folder itself, but the contents of the folder. The cd will take > the place of that folder :) AFAIK this will remove the ISO header links to the bootable catalog (the embedded floppy boot section). All the files will probably be included (possibly with wrong file permissions, such as the executable bit) but the CD will not boot. Regards, Andreas -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Wacky Mouse...
Hi, while I don't know what's causing your specific problem, this sounds a lot like the behavior you would see back in the day when you set the mouse protocol to PS/2 when the mouse device was really a serial mouse, or vice versa. Try changing the mouse protocol in the xorg configuration file and see if that helps. Regards, Andreas On 4/18/05, David Corbin <[EMAIL PROTECTED]> wrote: > Today, my mouse has gone wacky. Previously I had a fine working Gentoo/X11 > system on my Dell I8600. A week ago, upgraded my profile, and updated the > system, including switching to udev. I had no problem for the last week, so I > believe that all worked well. > > Today, I did another update ("emerge -uavD world"), and started to muck with > user-mode linux. This did necessitate a rebuild of my kernel, and a reboot. > When I was done, my pointer is wacky. > > "Wacky" mean the pointer is largely "stuck" near the bottom left corner of the > display. Any attempt to move it generates a great deal of flashing of the > pointer. When I start X, the pointer appears dead center of the screen, > until I touch the touchpad at which point it jumps to the bottom left area of > the screen. > > I've reviewed what was emerged, and I don't think anything is likely to have > caused this problem. I've tried changing my config to not use the synaptics > drive, but that had no effect. > > Any ideas? > David > -- > gentoo-user@gentoo.org mailing list > > -- gentoo-user@gentoo.org mailing list