[gentoo-user] change python version for special program
Hello, I have installed Python 2.7 3.2.2 on my Gentoo box, but I would like to use Scons, which runs at the moment under Python 3. I have installed Scons with python2.7 setup.py, but if I run scons on command line, it creates the message, that it runs not on Python 3, so can I setup manually that scons should use the Python 2.7 interpreter? Thanks Phil
Re: [gentoo-user] change python version for special program
Am 02.10.2012 um 19:52 schrieb Michael Mol: On Tue, Oct 2, 2012 at 1:43 PM, Kraus Philipp philipp.kr...@flashpixx.de wrote: Hello, I have installed Python 2.7 3.2.2 on my Gentoo box, but I would like to use Scons, which runs at the moment under Python 3. I have installed Scons with python2.7 setup.py, but if I run scons on command line, it creates the message, that it runs not on Python 3, so can I setup manually that scons should use the Python 2.7 interpreter? As root: eselect python list With this option I can setup the global Python version. Can I change only for one program ? I'm surprised you had to take the setup.py install route. Is scons not available in someone's overlay? I'm testing different versions, because I would like to debug a scons toolkit. So I haven't installed the portage Scons version, I have downloaded the tarball and installed them within my home Phil
Re: [gentoo-user] change python version for special program
Thanks, I don't have read anything about it, it is my first time, but I think it is the best solution for my problem Am 02.10.2012 um 21:01 schrieb yegle: Create a virtualenv would be a better solution. Google virtualenv -- http://about.me/yegle On Tuesday, October 2, 2012 at 13:43, Kraus Philipp wrote: Hello, I have installed Python 2.7 3.2.2 on my Gentoo box, but I would like to use Scons, which runs at the moment under Python 3. I have installed Scons with python2.7 setup.py, but if I run scons on command line, it creates the message, that it runs not on Python 3, so can I setup manually that scons should use the Python 2.7 interpreter? Thanks Phil
Re: [gentoo-user] distcc cross-compiling for OSX
Am 27.09.2012 um 23:34 schrieb Andrea Conti: Thanks for this link, I have read it before I write the post. Did I understand thr problem correct: I need a full OSX compatible toolchain !? So I download all Apple developer tools, compile it under my Gentoo box and add all header files which I used under OSX to my Linux box? According to those instructions, for distcc use you only need cctools and a compiler. You don't need any headers as the code distcc sends to servers is preprocessed on the client. You won't be able to cross-compile directly on the linux box (you're missing headers, libraries and frameworks), but that should not be a problem. The OpenDarwin project died a long time ago, so odcctools is no more. The source packages for cctools and apple's blend of gcc can be downloaded from opensource.apple.com. I have no idea whether they support building on Linux or not (especially cctools)... This seems to be working, I download for my OSX the correct gcc, run on my Mac gcc -v and get the target, that I copy the /Developer/SDKs directory, that I would use, to the Linux box and run this commands mkdir darwin cd darwin ../gcc_42-5577/configure --prefix=/opt/osxtoolchain/snowleopard/ --enable-languages=c,c++ --target=i686-apple-darwin10 --with-sysroot=/opt/osxtoolchain/snowleopard/MacOSX10.6.sdk/ make configure runs, but the make creates an error: # APPLE LOCAL use -mlongcall for large text support /root/darwin/./gcc/xgcc -B/root/darwin/./gcc/ -B/opt/osxtoolchain/snowleopard//i686-apple-darwin10/bin/ -B/opt/osxtoolchain/snowleopard//i686-apple-darwin10/lib/ -isystem /opt/osxtoolchain/snowleopard//i686-apple-darwin10/include -isystem /opt/osxtoolchain/snowleopard//i686-apple-darwin10/sys-include -O2 -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -I. -I. -I../../gcc_42-5577/gcc -I../../gcc_42-5577/gcc/. -I../../gcc_42-5577/gcc/../include -I../../gcc_42-5577/gcc/../libcpp/include -I../../gcc_42-5577/gcc/../libdecnumber -I../libdecnumber -mlongcall \ -fno-tree-dominator-opts \ \ -c ../../gcc_42-5577/gcc/config/darwin-crt3.c -o crt3.o rch: invalid option -- 'f' rch: invalid option -- 'o' rch: invalid option -- 'r' rch: invalid option -- 'c' rch: invalid option -- 'e' rch: invalid option -- '_' rch: invalid option -- 'c' rch: invalid option -- 'p' rch: invalid option -- 'u' rch: invalid option -- 's' rch: invalid option -- 'u' rch: invalid option -- 'b' rch: invalid option -- 't' rch: invalid option -- 'y' rch: invalid option -- 'p' rch: invalid option -- 'e' rch: invalid option -- '_' rch: invalid option -- 'A' rch: invalid option -- 'o' rch: rch: Unrecognized architecture make[4]: *** [crt3.o] Error 1 make[4]: Leaving directory `/root/darwin/gcc' make[3]: *** [extra] Error 2 make[3]: Leaving directory `/root/darwin/gcc' make[2]: *** [stmp-multilib] Error 2 make[2]: Leaving directory `/root/darwin/gcc' make[1]: *** [all-gcc] Error 2 make[1]: Leaving directory `/root/darwin' make: *** [all] Error 2 Do you have any idea to solve the problem? Phil
[gentoo-user] distcc cross-compiling for OSX
Hello, I have installed distccd on my Gentoo box and I would like to use it from a OSX Snow Leopard. The distcc daemon runs on the Gentoo box and my OSX clients connect the box. I can run distcc on my OSX and it send the code to the Gentoo box and compile it. But my cross-compiling does not work at the moment: distcc[6233] ERROR: compile mytest.cpp on gentoo failed distcc[6233] (dcc_build_somewhere) Warning: remote compilation of 'mytest.cpp' failed, retrying locally I have checked the content of the directory /usr/lib/distcc/bin there are only the local compiler calls: lrwxrwxrwx 1 root root 15 Sep 27 11:17 c++ - /usr/bin/distcc lrwxrwxrwx 1 root root 15 Sep 27 11:17 cc - /usr/bin/distcc lrwxrwxrwx 1 root root 15 Sep 27 11:17 g++ - /usr/bin/distcc lrwxrwxrwx 1 root root 15 Sep 27 11:17 gcc - /usr/bin/distcc lrwxrwxrwx 1 root root 15 Sep 27 11:17 x86_64-pc-linux-gnu-c++ - /usr/bin/distcc lrwxrwxrwx 1 root root 15 Sep 27 11:17 x86_64-pc-linux-gnu-g++ - /usr/bin/distcc lrwxrwxrwx 1 root root 15 Sep 27 11:17 x86_64-pc-linux-gnu-gcc - /usr/bin/distcc I think I must add a OSX specified symbolic link. Which tools / configuration must be set for cross-compiling OSX code on my Gentoo box? Thanks Phil
Re: [gentoo-user] distcc cross-compiling for OSX
Am 27.09.2012 um 20:33 schrieb Andrea Conti: I think I must add a OSX specified symbolic link. Symlinks are only needed on the distcc client, not on the server running distccd. But that is a trivial matter. Which tools / configuration must be set for cross-compiling OSX code on my Gentoo box? You need to put together a complete OSX cross toolchain. This basically means building cctools (osx's equivalent of binutils) and apple's compiler from source. Then you have to do some additional plumbing on both ends to get it all to work. An overview of the process for 10.4: http://myownlittleworld.com/miscellaneous/computers/darwin-cross-distcc.html Do note that quite a lot of things have changed from back then, so those instructions are probably not going to work. Thanks for this link, I have read it before I write the post. Did I understand thr problem correct: I need a full OSX compatible toolchain !? So I download all Apple developer tools, compile it under my Gentoo box and add all header files which I used under OSX to my Linux box? Thanks Phil
[gentoo-user] modem configuration
Hello, I have got a modem US Robotics 5637 and I would like to use it with Hylafax+. Hylafax works fine, all clients can create jobs, but now I would like to configure / test the modem. Can anybody explain me how I can test / configure my modem. I have installed minicom and the modem is setup under /dev/modem with this udev rules SUBSYSTEM==usb, SYSFS{idProduct}==0303, SYSFS{idVendor}==0baf, RUN+=/sbin/modprobe usbserial vendor=0x0baf product=0x0303 SUBSYSTEM==usb, SYSFS{idProduct}==0303, SYSFS{idVendor}==0baf, RUN+=/sbin/modprobe ppp_generic SYMLINK=modem I think I must setup pulse dial and I would like to test first the modem, if it dials under the correct number because it is conected to a telefon facility. I have tried minicom, but minicom shows under /dev/modem in the right corner offline. How I can install my modem in the correct way? Thanks Phil
[gentoo-user] mdadm device removed
Hello, I'm using a software raid with mdadm (mirror). A few days ago the mdadm removes during the boot process one disk and sets the raid inactive. The disk contains no errors (smartctl) and nothing is reported in the logs. I reassemble the disk and activate the raid again. Reboot the system and my disk are in sync and everything works fine. I'm a little bit confused about it. Does anybody has got an idea, why the array lost a disk? Thanks
[gentoo-user] vlc jitter / timing problem
Hello, I'm using cvlc for streaming television data from /dev/video0 (on a x64 dual xeon system with 16GB RAM). I'm using a Hauppauge HVR 1900 with the unstable branche and self-build 3.2.11 kernel. The device /dev/video0 is created and if I run cat /dev/video0 x.mpg the stream of the video device is saved and is shown without any sync problems. IMHO the hardware / kernel works fine. Now I try to send a multicast stream with the cvlc device (in some test I'm using a http stream) to the netwerok (gigabit) with: su tv -c /usr/bin/cvlc pvr:///dev/video0 --ttl 1 --sout '#std{access=http,dest=192.168.20.1:8080,mux=ts}' After running the command the error: [0x6bfa68] main input error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 2329 ms) [0x6bfa68] main input error: ES_OUT_RESET_PCR called is shown. I have build vlc with this options aac avcodec avformat dts dvbpsi elibc_glibc encode ffmpeg gcrypt httpd mmx mp3 mpeg ncurses ogg postproc pvr rtsp sse swscale udev v4l vlm x264 xcb (other are disabled) If I change the http to a multicast stream or try to send a h264 stream the problem is also shown. I can not received any data on a network client, streaming data are received, but video / audio are not in sync and the video signal are create sync problems or the movie runs sometimes faster and other times slower. Does anyone have got an idea how I can solve the problem. I'm using at the moment VLC media player 2.0.0 Twoflower (revision 2.0.0-0-g421a4fc) Thanks Phil
Re: [gentoo-user] IDE DVD device with kernel 3.2.11
Hi, Am 26.03.2012 um 02:25 schrieb Sebastian Pipping: Do you have /dev/sr0 in your system? I noticed that recently my /dev/dvd disappeared while /dev/sr0 is present and works fine -- maybe its related. no, I don't have any /dev/sr* devices, so I think it a kernel problem. sd* and st* devices are exists. I have just opened a bug for my view on the issue: https://bugs.gentoo.org/show_bug.cgi?id=409709 Thanks for this link, I will tested my udev and kernel parameters Phil
[gentoo-user] IDE DVD device with kernel 3.2.11
Hello, I have update my system to ther 3.2.11 kernel and udev 171-rc5. Everything works fine, except the IDE DVD ROM Device. lspci shows the IDE controller 00:1f.1 IDE interface: Intel Corporation 631xESB/632xESB IDE Controller (rev 09) and I have build this kernel options: CONFIG_HAVE_IDE=y # CONFIG_IDE is not set # SCSI device support CONFIG_SCSI_MOD=y CONFIG_SCSI=y CONFIG_SCSI_DMA=y CONFIG_SCSI_TGT=m CONFIG_SCSI_NETLINK=y CONFIG_SCSI_PROC_FS=y # SCSI support type (disk, tape, CD-ROM) CONFIG_SCSI_MULTI_LUN=y CONFIG_SCSI_CONSTANTS=y CONFIG_SCSI_LOGGING=y CONFIG_SCSI_SCAN_ASYNC=y CONFIG_SCSI_WAIT_SCAN=m # SCSI Transports CONFIG_SCSI_SPI_ATTRS=m CONFIG_SCSI_FC_ATTRS=m CONFIG_SCSI_FC_TGT_ATTRS=y CONFIG_SCSI_ISCSI_ATTRS=y CONFIG_SCSI_SAS_ATTRS=m CONFIG_SCSI_SAS_LIBSAS=m CONFIG_SCSI_SAS_ATA=y CONFIG_SCSI_SAS_HOST_SMP=y CONFIG_SCSI_SRP_ATTRS=m CONFIG_SCSI_SRP_TGT_ATTRS=y CONFIG_SCSI_LOWLEVEL=y I have added the line persistent_cd_disable=no to my /etc/udev/udec.conf and remove the /etc/udev/rules/70-presistent-cd.rule I don't have buld in the ATA/ATAPI/MFM/RLL support (DEPRECATED) dubpackages, should I need them for using my old DVD ROM? I have build only the Serial ATA and Parallel ATA drivers and SCSI systems, can I use the IDE device with this drivers only? Thanks Phil
Re: [gentoo-user] cryptsetup with static libs
Am 23.03.2012 um 01:14 schrieb Neil Bothwick: On Fri, 23 Mar 2012 00:26:24 +0100, Kraus Philipp wrote: I try to build the cryptsetup tools, but all depended library should be build with +static-libs use flag. I have set my packages.use to: sys-fs/cryptsetup-static-libs dev-libs/libgcrypt static-libs dev-libs/poptstatic-libs dev-libs/libgpg-errorstatic-libs sys-apps/util-linux static-libs Can I build the cryptsetup without the static libs? Is there a reason that I must build it with static libs? cryptsetup does not have a static-libs USE flag. It has a static flag, [...] Thanks, it was my mistake Phil
[gentoo-user] LIRC with kernel 3.2.11
Hello, I'm using a Hauppauge WinTV HVR 1900 (usb), with a self-compiled kernel 3.2.11. The USB device works very well, but I would like to use LIRC 0.9.0 with my kernel. So I have set the LIRC_DEVICES=hauppauge within my make.conf and run emerge. Emerge fetches this packages: [ebuild N ] sys-kernel/gentoo-sources-3.2.11 USE=-build -deblob -symlink [ebuild N ] virtual/linux-sources-0 [ebuild N ] app-misc/lirc-0.9.0 On emerging this error is shown: /var/tmp/portage/app-misc/lirc-0.9.0/work/lirc-0.9.0/drivers/lirc_i2c/lirc_i2c.c /var/tmp/portage/app-misc/lirc-0.9.0/work/lirc-0.9.0/drivers/lirc_i2c/lirc_i2c.c: In function 'ir_probe': /var/tmp/portage/app-misc/lirc-0.9.0/work/lirc-0.9.0/drivers/lirc_i2c/lirc_i2c.c:559:13: error: 'struct i2c_adapter' has no member named 'id' /var/tmp/portage/app-misc/lirc-0.9.0/work/lirc-0.9.0/drivers/lirc_i2c/lirc_i2c.c: At top level: /var/tmp/portage/app-misc/lirc-0.9.0/work/lirc-0.9.0/drivers/lirc_i2c/lirc_i2c.c:232:12: warning: 'add_to_buf_pvr2000' defined but not used (How) Can I solve this problem? Thanks Phil
[gentoo-user] cryptsetup with static libs
Hello, I try to build the cryptsetup tools, but all depended library should be build with +static-libs use flag. I have set my packages.use to: sys-fs/cryptsetup -static-libs dev-libs/libgcrypt static-libs dev-libs/popt static-libs dev-libs/libgpg-error static-libs sys-apps/util-linux static-libs Can I build the cryptsetup without the static libs? Is there a reason that I must build it with static libs? Thanks Phil
[gentoo-user] mt-daapd automake error
Hello, I'm updating my system and I will emerge the mt-daapd package. revdep-rebuild shows no errors and the system is working. The emerge call builds the depended packages exception net-dns/avahi and the media-sound/mt-daapd. I'm building it with: [ebuild N ] net-dns/avahi-0.6.30-r2 USE=dbus gdbm introspection -autoipd -bookmarks -doc -gtk -gtk3 -howl-compat -ipv6 -mdnsresponder-compat -mono -python -qt4 -test -utils [ebuild N ] media-sound/mt-daapd-0.2.4.2 USE=avahi vorbis The avahi package breaks with: * Failed Running automake ! * * Include in your bugreport the contents of: * * /var/tmp/portage/net-dns/avahi-0.6.30-r2/temp/automake.out * ERROR: net-dns/avahi-0.6.30-r2 failed (prepare phase): * Failed Running automake ! * * Call stack: * ebuild.sh, line 85: Called src_prepare * environment, line 5772: Called eautoreconf * environment, line 1596: Called eautomake * environment, line 1565: Called autotools_run_tool 'automake' '--add-missing' '--copy' '--foreign' * environment, line 1248: Called die * The specific snippet of code: * die Failed Running $1 !; * * If you need support, post the output of 'emerge --info =net-dns/avahi-0.6.30-r2', * the complete build log and the output of 'emerge -pqv =net-dns/avahi-0.6.30-r2'. * The complete build log is located at '/var/tmp/portage/net-dns/avahi-0.6.30-r2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-dns/avahi-0.6.30-r2/temp/environment'. * S: '/var/tmp/portage/net-dns/avahi-0.6.30-r2/work/avahi-0.6.30' The automake.out creates the error: * automake * * PWD: /var/tmp/portage/net-dns/avahi-0.6.30-r2/work/avahi-0.6.30 * automake --add-missing --copy --foreign configure.ac:143: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body ../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from... ../../lib/autoconf/general.m4:2591: _AC_COMPILE_IFELSE is expanded from... ../../lib/autoconf/general.m4:2607: AC_COMPILE_IFELSE is expanded from... ../../lib/m4sugar/m4sh.m4:606: AS_IF is expanded from... ../../lib/autoconf/general.m4:2032: AC_CACHE_VAL is expanded from... ../../lib/autoconf/general.m4:2053: AC_CACHE_CHECK is expanded from... configure.ac:143: the top level configure.ac:300: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body ../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from... configure.ac:300: the top level service-type-database/Makefile.am:21: `pkglibdir' is not a legitimate directory for `DATA' How I can fix this problem? Thanks Phil
[gentoo-user] NFSv4 idmapd.conf
Hello, I try to setup a NFSv4 server with idmapd.conf and OSX clients. I have setup my /etc/exports with the share names and I can mount them from the OSX client, but I need a uid / gid mapping. The account data (user / groups) are within a LDAP server on the same host. I try to configure idmapd.conf for mapping the user ids, because I need this for two users on two hosts only. I have set this to the idmapd.conf [General] Domain = mydomain [Translation] Method = nsswitch- I test this also with static, or static,nsswitch [Static] user1@osx1 = mylocaluser Mounting on the client works and SSH login works with the user data also. How can I setup the user mapping on my NFS server? Thx Phil
[gentoo-user] automake 1.4
Hello, I would like to emerge a new automake version. At this time emerge shows the 1.11.1 version but I need the version 1.4. I have found a security information that the package is masked because a vulnerabily. I need only the 1.4 version to compiling a source, after compiling I can remove the 1.4 version. I have emerged the sys-devel/automake- wrapper and try to emerge automake 1.4 with emerge -av = automake-1.4 or add them to my portage,mask. How can I install the 1.4 version temporary? Thanks Phil
[gentoo-user] emerge dev-lang/perl-5.12.3 failed
Hello, I've try to emerge my world target new, but the dev-lang/perl-5.12.3 failes. I've found on the gentoo pages the hint to sync the portage tree again, but that does not solve the problem. The messages during emerge are: IO.xs: In function 'XS_IO__File_new_tmpfile': IO.xs:229: warning: value computed is not used IO.xs: In function 'XS_IO__Poll__poll': IO.xs:249: error: invalid application of 'sizeof' to incomplete type 'struct pollfd' IO.xs:253: error: invalid use of undefined type 'struct pollfd' IO.xs:253: error: dereferencing pointer to incomplete type IO.xs:255: error: invalid use of undefined type 'struct pollfd' IO.xs:255: error: dereferencing pointer to incomplete type IO.xs:257: error: invalid use of undefined type 'struct pollfd' IO.xs:257: error: dereferencing pointer to incomplete type IO.xs:259: warning: implicit declaration of function 'poll' IO.xs:261: error: invalid use of undefined type 'struct pollfd' IO.xs:261: error: dereferencing pointer to incomplete type IO.xs:262: error: invalid use of undefined type 'struct pollfd' IO.xs:262: error: dereferencing pointer to incomplete type make[1]: *** [IO.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/dev-lang/perl-5.12.3/work/ perl-5.12.3/dist/IO' Unsuccessful make(dist/IO): code=512 at make_ext.pl line 449. make: *** [lib/auto/IO/IO.so] Error 25 I've try to mask the 5.12.3 package to a previous version, but the same problemes are shown. Now I've have a hanging portage. Perl is needed for my eg. LDAP... Does anyone have any idea to solve the error? Thanks Phil
Re: [gentoo-user] sys-apps/acl with nfs support
On 05.11.2010 Arttu V. wrote: On 5/11/10, Kraus Philipp philipp.kr...@flashpixx.de wrote: Hello, I try to compile the sys-apps/acl package with the nfs option, but I can't set the flag. I add to my portage.use sysapps/acl and nfs but if I emerge the acl or virtual/acl emerge doesn't use the nfs flag. Now I have installed sys-apps/acl Installed versions: 2.2.49(23:33:57 05/09/10)(nls -nfs) and I need the acl support on the nfs share. How can I recompile the acl package with nfs support? First check that the reason for the masking does not apply to your situation (bug #149472), then I think you can just force-override it by adding the package atom and USE flag in /etc/portage/profile/package.use.force (haven't tried myself). I had try this in a VM but the emerge command don't use the package.use.force Thx Phil
Re: [gentoo-user] sys-apps/acl with nfs support
On 05.12.2010 at 22:50 wrote Neil Bothwick: On Wed, 12 May 2010 21:54:54 +0200, Kraus Philipp wrote: and I need the acl support on the nfs share. How can I recompile the acl package with nfs support? First check that the reason for the masking does not apply to your situation (bug #149472), then I think you can just force-override it by adding the package atom and USE flag in /etc/portage/profile/package.use.force (haven't tried myself). I had try this in a VM but the emerge command don't use the package.use.force It's package.use.mask, add this sys-apps/acl -nfs Thanks, everything's fine. My ACLs over NFS work now perfect
[gentoo-user] sys-apps/acl with nfs support
Hello, I try to compile the sys-apps/acl package with the nfs option, but I can't set the flag. I add to my portage.use sysapps/acl and nfs but if I emerge the acl or virtual/acl emerge doesn't use the nfs flag. Now I have installed sys-apps/acl Installed versions: 2.2.49(23:33:57 05/09/10)(nls -nfs) and I need the acl support on the nfs share. How can I recompile the acl package with nfs support? Thanks Phil
Re: [gentoo-user] two glibcs with different version
Am 04.05.2010 um 13:09 schrieb Neil Bothwick: On Sat, 1 May 2010 12:58:34 +0200, Kraus Philipp wrote: I would suggest dual-booting... Sorry, that's no solution, because it is only one network service, that need's a older glibc. I can't reboot a server at any time or create a new physical server Have you considered virtualisation? That's a problem, because I need the older glib for running VMware Server. Hen or Egg Problem :-P
Re: [gentoo-user] two glibcs with different version
On 01.05.2010 um 09:48 wrote Graham Murray: I think that the only way you can do this is to create a chroot jail, in which you build everything using the old version of glibc (in a very similar way to building a new Gentoo system) and run your application in that. That's a very goog idea, because the programm is a network service. Do you know a tutorial for creating root jails in this way? Thanks
Re: [gentoo-user] two glibcs with different version
On 01.05.2010 um 10:32 wrote Volker Armin Hemmann: On Samstag 01 Mai 2010, Graham Murray wrote: Kraus Philipp philipp.kr...@flashpixx.de writes: Hello, I must test a software with a older version of the glibc. I run the 2.11.1 now but for one tool I need a previous version (2.6.1). How can I compile the glibc without changing my system glibc. I would like to set the previous glibc with the LD_PATH. Can I run two different versions or is a better solution to downgrade the system glib? I think that the only way you can do this is to create a chroot jail, in which you build everything using the old version of glibc (in a very similar way to building a new Gentoo system) and run your application in that. no, you can install glibc in /usr/local and then tell apps to either use the libs in /usr/local or /usr. It is just not easy because it easily breaks stuff in horrrible to fix ways. Okay, can I downgrade my glibc? My Gentoo isn't a big system, it's a server installation, so I can recompile the whole system. I had forgotten to mask the glibc on the last update. I have add a line to the portage.mask but emerge says that it can't compile the older version, because will damage the system.
Re: [gentoo-user] two glibcs with different version
Am 01.05.2010 um 11:48 schrieb William Kenworthy: On Sat, 2010-05-01 at 10:57 +0200, Kraus Philipp wrote: On 01.05.2010 um 10:32 wrote Volker Armin Hemmann: On Samstag 01 Mai 2010, Graham Murray wrote: Kraus Philipp philipp.kr...@flashpixx.de writes: Hello, I must test a software with a older version of the glibc. I run the 2.11.1 now but for one tool I need a previous version (2.6.1). How can I compile the glibc without changing my system glibc. I would like to set the previous glibc with the LD_PATH. Can I run two different versions or is a better solution to downgrade the system glib? I think that the only way you can do this is to create a chroot jail, in which you build everything using the old version of glibc (in a very similar way to building a new Gentoo system) and run your application in that. no, you can install glibc in /usr/local and then tell apps to either use the libs in /usr/local or /usr. It is just not easy because it easily breaks stuff in horrrible to fix ways. Okay, can I downgrade my glibc? My Gentoo isn't a big system, it's a server installation, so I can recompile the whole system. I had forgotten to mask the glibc on the last update. I have add a line to the portage.mask but emerge says that it can't compile the older version, because will damage the system. Would LD_PRELOAD solve your problem? - worked for me when needing to run a legacy redhat app in the past on a more up-to-date gentoo system. I think that can solve my problem, because it's only this one lib all other libs work very well. There is also a LD_LIBRARY_PATH variable. Get a binary copy of the libs you need and put em somewhere convenient and let the rest of the system stay as is. I don't have the glibc binary. I can't emerge it and if I try to compile from the sources. The configure script says: These critical programs are missing or too old: as ld How I can compile the from the sources (http://ftp.gnu.org/gnu/glibc/glibc-2.10.1.tar.gz ) ? Thanks Phil
Re: [gentoo-user] two glibcs with different version
Am 01.05.2010 um 12:40 schrieb William Kenworthy: On Sat, 2010-05-01 at 12:25 +0200, Kraus Philipp wrote: Am 01.05.2010 um 11:48 schrieb William Kenworthy: On Sat, 2010-05-01 at 10:57 +0200, Kraus Philipp wrote: On 01.05.2010 um 10:32 wrote Volker Armin Hemmann: On Samstag 01 Mai 2010, Graham Murray wrote: Kraus Philipp philipp.kr...@flashpixx.de writes: Hello, I must test a software with a older version of the glibc. I run the 2.11.1 now but for one tool I need a previous version (2.6.1). How can I compile the glibc without changing my system glibc. I would like to set the previous glibc with the LD_PATH. Can I run two different versions or is a better solution to downgrade the system glib? I think that the only way you can do this is to create a chroot jail, in which you build everything using the old version of glibc (in a very similar way to building a new Gentoo system) and run your application in that. no, you can install glibc in /usr/local and then tell apps to either use the libs in /usr/local or /usr. It is just not easy because it easily breaks stuff in horrrible to fix ways. Okay, can I downgrade my glibc? My Gentoo isn't a big system, it's a server installation, so I can recompile the whole system. I had forgotten to mask the glibc on the last update. I have add a line to the portage.mask but emerge says that it can't compile the older version, because will damage the system. Would LD_PRELOAD solve your problem? - worked for me when needing to run a legacy redhat app in the past on a more up-to-date gentoo system. I think that can solve my problem, because it's only this one lib all other libs work very well. There is also a LD_LIBRARY_PATH variable. Get a binary copy of the libs you need and put em somewhere convenient and let the rest of the system stay as is. I don't have the glibc binary. I can't emerge it and if I try to compile from the sources. The configure script says: These critical programs are missing or too old: as ld How I can compile the from the sources (http://ftp.gnu.org/gnu/glibc/glibc-2.10.1.tar.gz) ? You can use ebuild to build a package, but not install it - then just un-compress it and grab the wanted libs. I will try it on my system first, because I can lean something new. Or if you tell us what arch, someone (me if its compatible) can create a binary pkg for you using quickpkg. It might also be on the livecd/install medium as well - dont have one here to check. I run my Gentoo on amd64 (intel xeon), thank's for help.
Re: [gentoo-user] two glibcs with different version
Am 01.05.2010 um 12:53 schrieb pk: On 2010-04-30 15:24, Kraus Philipp wrote: I must test a software with a older version of the glibc. I run the 2.11.1 now but for one tool I need a previous version (2.6.1). How can I compile the glibc without changing my system glibc. I would like to set the previous glibc with the LD_PATH. Can I run two different versions or is a better solution to downgrade the system glib? I would suggest dual-booting... Sorry, that's no solution, because it is only one network service, that need's a older glibc. I can't reboot a server at any time or create a new physical server Phil
[gentoo-user] two glibcs with different version
Hello, I must test a software with a older version of the glibc. I run the 2.11.1 now but for one tool I need a previous version (2.6.1). How can I compile the glibc without changing my system glibc. I would like to set the previous glibc with the LD_PATH. Can I run two different versions or is a better solution to downgrade the system glib? Thanks Phil
[gentoo-user] emerge update gcc downgrade
Hi, I run in a virtual machine a gentoo (~x86) system. I synced the portage tree at the weekend an run emerge --update The update runs without errors, but emerge installed the gcc 4.3.4, but on the system is the 4.4.3 installed [ebuild NS ] sys-devel/gcc-4.3.4 [4.4.3] USE=hardened mudflap nls nptl openmp (-altivec) -bootstrap -build -doc (-fixed-point) -fortran - gcj -gtk (-libffi) (-multilib) -multislot (-n32) (-n64) -nocxx -nopie - objc -objc++ -objc-gc -test -vanilla After the update I run emerge --depclean and the 4.3.4 is unmerged and now I run emerge --update the gcc should installed again gcc-config -l shows only i686-pc-linux-gnu-4.4.3 whitch is set gcc-version: gcc (Gentoo 4.4.3 p1.0) 4.4.3 and I mask only 2 packages =net-fs/netatalk-2.0.3 app-emulation/open-vm-tools-0.0.20090824.187411 I run the kernel (kernel.org) 2.6.33.2 and I don't use distcc at the machine Can anybody help me to fix the gcc problem? I only need the 4.4.3 gcc Thanks Phil