((bool) -0.5) mishandled by Sun C 5.9 alpha, which causes configure failure

In <http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00027.html>
Bruno Haible reports that Sun C 5.9 alpha for Linux/x86 mishandles the
following test case:
#include <stdbool.h>
char d[(bool) -0.5 == true ? 1 : -1];
This is strictly conforming C99 code, and GCC accepts it, but Sun C
5.9 alpha apparently rejects it with the diagnostic "integral constant
expression expected".
((bool) -0.5) is an integer constant expression, because bool is an
integer type (Bruno's analysis of this particular point is incorrect,
as you'll be able to see when I post my followup to his email). Hence
Sun C 5.9 alpha is buggy.
This bug causes 'configure' to conclude that Sun C 5.9's
implementation of 'bool' is inadequate, and programs typically use
their own (inferior) substitute for 'bool'.
Can you please fix this?
Thanks.
PS. One minor point of terminology. The C standard now uses the term
"integer constant expression", not "integral constant expression". (I
vaguely recall that "integral" was the old term.) So you should
update the wording in your diagnostics.

Here is a test case.
============================= boolcast.c =============================
#include <stdbool.h>
char ac[(int) 3.999 == 3 ? 1 : -1];
char am[((int) 3.999 == 3) * 2 - 1];
char dc[(bool) -0.5 == true ? 1 : -1];
char dm[((bool) -0.5 == true) * 2 - 1];
char fc[(_Bool) -0.0 == false ? 1 : -1];
char fm[((_Bool) -0.0 == false) * 2 - 1];======================================================================
$ c99 -Xa -c boolcast.c
"boolcast.c", line 6: integral constant expression expected
"boolcast.c", line 6: zero or negative subscript
"boolcast.c", line 7: warning: can not declare variably modified type at file scope
"boolcast.c", line 9: integral constant expression expected
"boolcast.c", line 9: zero or negative subscript
"boolcast.c", line 10: warning: can not declare variably modified type at file scopeThe argumentation is as follows:
- ISO C 99, section 6.2.5 paragraph 6, says that _Bool is an unsigned integer type.
- ISO C 99, section 6.2.5 paragraph 17, then implies that _Bool is an integer type.
- ISO C 99, section 6.6 paragraph 6, defines the term "integer constant
expression":
An integer constant expression shall have integer type and shall
only have operands that are integer constants, enumeration constants,
character constants, sizeof expressions whose results are integer
constants, and floating constants that are the immediate operands of
casts. Cast operators in an integer constant expression shall only
convert arithmetic types to integer types, except as part of an operand
to the sizeof operator.
This is practically relevant: These kinds of constructions are used by the
GNU autoconf AC_HEADER_STDBOOL macro.
Bruno

Similar Messages

  • What is the latest Sun One webserver with SP #, which we can use it  in pro

    What is the latest Sun One webserver with SP #, which we can use it in production environment.
    thanks
    siva

    6.1 Service pack 5 is our latest release.
    you can get this software from
    http://www.sun.com/webserver
    hope this helps

  • JMS-related sun-appserver-pe8.0.0_01 default server start failure

    On Dell Dimension 2400 XP system, appserver startup always fails after trying for 60 seconds to verify if the JMS service startup succeeded. This condition started 10 July. What is JMS? Why does it fail? What to do? Rich

    Hi
    The Java Message Service (JMS) is a messaging standard that allows application components based on the Java 2 Platform, Enterprise Edition (J2EE) to create, send, receive, and read messages. It enables distributed communication that is loosely coupled, reliable, and asynchronous.
    JMS is bundled and installed with Application Server 8. JMS runs on a port 17676. If this port is occupied by any other process, the JMS will not start. Please check if this port is occupied by any other process or change the default JMS port in domain.xml (<Creator-root>/Appserver8/domains/creator/config/domain.xml)
    Thanks
    SG

  • ATI 3D Rage LT Pro AGP-133 (Mach64) Xorg DRI

    This is where I'll be posting my crazy adventures in getting this AGP card working with DRI (Direct Rendering) in Xorg.
    I've done it in Debian Lenny, so, surely it must be possible in Archlinux!
    This card is integrated into my PII 400Mhz Micron Trek II Laptop from 1999 era.  Supposedly, this is the very first integrated AGP video card used in laptops.  Ever.  Although, I have my doubts as to Wikipedia's accuracy in this regards because I believe the Trident Cyber 9397 AGP came out sooner.  It's one of those questions we may never know the answer to.
    I'm new to Arch (coming from debian), so I'd like to take a paragraph and comment on it.  What drew me to it is the i686 optimized packages.  The first thing I noticed is that I like it's fast boot time.  I haven't run bootchart yet, but I can tell it's significantly faster than debian out of the box.  Hopefully there's headroom for additional speed tweaks, but that's for later.   The second thing I noticed is that it's about 200 megs larger than debian's comparably minimal install.  I found that odd, but, oh well. 
    Anyways, back to Xorg... one of the final hurdles in setting up a linux box.  Getting a display working is simple enough, and maybe 12 years ago having any kind of GUI would have been good enough, but not anymore.  On older hardware you need DRI in order to play video properly... not to mention run an snes emulator at a decent fps  
    Note: for mplayer I can actually use -vo xv, since Xorg supports 2D accelleration by default.
    I noticed that Arch has a package named xf86-video-mach64 6.8.1-1.  I thought to myself, "Can this be?  Will I get dri working out of the box with Arch?!"  The answer is no.  How stupid of me to think that may be true.  So, I'll be adding to this post as developments arise in my little quest.  Feel free to chime in with helpful knowledge, pats on the head, threats, and/or flames.
    So, here's what I have so far... luckily, I have a pretty decent xorg.conf already setup and ready to go for this card... all I need are mach64 drivers, DRI, DRM, and all the other module goodies. 
    /etc/X11/xorg.conf
    Section "ServerLayout"
    Identifier "X.org Configured"
    Screen 0 "Screen0" 0 0
    InputDevice "Mouse0" "CorePointer"
    InputDevice "Keyboard0" "CoreKeyboard"
    EndSection
    Section "ServerFlags"
    Option "DontVTSwitch" "true" # causes kernel panic for me
    EndSection
    Section "Files"
    RgbPath "/etc/X11/rgb"
    ModulePath "/usr/lib/xorg/modules"
    FontPath "/usr/share/fonts/X11/misc"
    EndSection
    Section "Module" # most of these load by default
    Load "GLcore"
    Load "extmod"
    Load "xtrap"
    Load "dri"
    Load "dbe"
    Load "record"
    Load "glx"
    EndSection
    Section "InputDevice"
    Identifier "Keyboard0"
    Driver "kbd"
    EndSection
    Section "InputDevice"
    Identifier "Mouse0"
    Driver "mouse"
    Option "Protocol" "auto"
    Option "Device" "/dev/input/mice"
    Option "ZAxisMapping" "4 5 6 7"
    EndSection
    Section "Monitor"
    Identifier "Monitor0"
    VendorName "Monitor Vendor"
    ModelName "Monitor Model"
    HorizSync 30 - 60
    VertRefresh 70 - 90
    Modeline "1024x768" 65 1024 1032 1176 1344 768 771 777 806 -hsync -vsync
    Modeline "800x600" 36 800 824 896 1024 600 601 603 625
    Modeline "640x480" 25.175 640 664 760 800 480 491 493 525
    #Modeline "640x400" 25.175 640 664 760 800 400 409 411 450
    Modeline "320x200" 12.588 320 336 384 400 200 204 205 225 Doublescan
    # Option "Gamma" ".6" # doesn't work
    EndSection
    Section "Device"
    ### Available Driver options are:-
    ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
    ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
    ### [arg]: arg optional
    Option "probe_sparse" "False" # ? No noticeable effect
    Option "lcdblend" "True" # saw in source code
    Option "LCDSync" "True"
    Option "accel" "True"
    Option "crt_display" "false"
    Option "composite_sync" "True"
    Option "hw_cursor" "True"
    #Option "force_pci_mode" "True" # rather use AGP (the default)
    Option "dma_mode" "async" # async is best
    Option "agp_mode" "2"
    Option "agp_size" "64" # Aperture
    Option "local_textures" "True" # ? No idea, sounds nice though.
    Option "buffer_size" "2"
    Option "tv_out" "false"
    #Option "tv_standard" # <str>
    Option "mmio_cache" "True"# [<bool>]
    Option "test_mmio_cache" "false"# [<bool>]
    #Option "panel_display" # [<bool>]
    #Option "reference_clock" # <freq>
    Option "shadow_fb" "False" # Can't shadow accelerated fb, +5 FPS
    Option "sw_cursor" "false"
    Option "AccelMethod" "XAA" # EXA or XAA (XAA is slightly faster)
    #Option "AccelDFS" "True" # saw on interwebz, but seems bogus for this driver
    Option "RenderAccel" "True" # sounds hot
    Identifier "Card0"
    Driver "mach64"
    #Option "ForcePCIMode" "True"
    #Option "TVOut"
    VendorName "ATI Technologies Inc"
    BoardName "3D Rage LT Pro AGP-133"
    BusID "PCI:1:0:0"
    EndSection
    Section "Screen"
    Identifier "Screen0"
    Device "Card0"
    Monitor "Monitor0"
    DefaultDepth 16
    # SubSection "Display"
    # Viewport 0 0
    # Depth 1
    # EndSubSection
    # SubSection "Display"
    # Viewport 0 0
    # Depth 4
    # EndSubSection
    # SubSection "Display"
    # Viewport 0 0
    # Depth 8
    # EndSubSection
    # SubSection "Display"
    # Viewport 0 0
    # Depth 15
    # EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 16
    Modes "1024x768" "800x600" "640x480" "320x200"
    EndSubSection
    # SubSection "Display"
    # Viewport 0 0
    # Depth 24
    # EndSubSection
    EndSection
    Section "DRI"
    Mode 0666
    EndSection
    I can get into X, by typing startx... I get some nice default windows... First thing I notice is that ctrl-alt-backspace does not shutdown X!  I have to type exit into a console?!  That's a PITA, so I change that by inserting: Option    "DontZap" "false"   AND  Option  "XkbOptions" "terminate:ctrl_alt_bksp" AND editing /etc/X11/xinit/xinitrc to add in some lines...
    As per the instructions at: http://wiki.archlinux.org/index.php/Xorg (thank you)
    [gripe]Whoever was hitting ctrl-alt-backspace by accident... well... I won't say anything bad about anyone... but come on, people.  It sure as hell shouldn't  be neccessary to have to add multiple lines of code in multiple configuration files to re-enable the feature...  Which will probably break anyways once I add a window manager.[/gripe]
    So, anyways, here's the errors so far:
    Relevant Errors to console:
    FATAL: Module mach64 not found.
    (EE) [drm] drmOpen failed.
    (EE) MACH64(0): [dri] DRIScreenInit Failed.
    Relevant Errors in /var/log/Xorg.0.log:
    Short story: the fatal error above is due to a failure in loading the mach64 kernel module, which caused the failure of the drm module, which caused
    dri to not load, either.  So I learned I need to get/find a mach64 kernel module!  Using the locate command, I see I don't have a mach64.ko file.
    So I found this old thread relating to the subject: http://bbs.archlinux.org/viewtopic.php?id=53071
    ^^^ which refers to packages that haven't been maintained since january...
    PKGBUILD?!  What's that?  haha... So I learned about it here: http://wiki.archlinux.org/index.php/ABS … ild_System
    I found the tarball on AUR for an unnsupported package (the one from february), and looked at the readme.txt
    Preinstall:
    You need your own kernel with the following options or the kernel from aur: kernel26-nodrm
    Please make sure your kernel has been compiled without built in DRM:
    Device Drivers --->
    Graphics Support --->
    < > Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) ---> (CONFIG_DRM=n) Must be disabled.
    While you are at it, if your mach64 card is agp: (These agp options are optional but recommended)
    Device Drivers --->
    Graphics Support --->
    <M or *> /dev/agpgart (AGP Support) ---> (CONFIG_AGP=m or CONFIG_AGP=y)
    <M or *> YOUR CHIPSET (CONFIG_AGP_**CHIPSET**=m or CONFIG_AGP_**CHIPSET**=y)
    For example, my motherboard is via-based:
    <*> VIA chipset support (CONFIG_AGP_VIA=y)
    The standard arch kernel has DRM, so it will *not* work
    If you need pacman -Uf to install, chances are that your drm.ko still is in your kernel directory, meaning that
    ... meaning what?  The text just ends, like a the directions to some lost, sunken treasure...  Sounds like I'd have to recompile my kernel.  Not a big deal (only a matter of time before I'd do it for fun), but I want to verify that I actually have to.  So, I checked the config for the Archlinux kernel and CONFIG_DRM=m... so it's modular... isn't that I want?  It's going to have to load drm.ko right?! 
    I'm going to try building mach64.ko and drm.ko against the kernel headers for the arch kernel and see how it goes...
    Update 1:
    Ok, it looks like I do, in fact, need to recompile the kernel... or atleast, that's the next thing I'm going to try....
    I can currently get glxinfo to report everything's fine... DRI enabled and such... however, glxgears has an abortion.   
    Update 2:
    After recompiling the kernel, I've learned that I didn't have to.  The information in the Arch Wiki must be outdated, because there's no reason to recompile to disable the modular support of DRM from the kernel.  Anyways, it still doesn't work (of course, I didn't have to recompile)... so the problem is with either the mesa, drm, or dri packages.
    SOOOO... I'm going to downgrade until I find a version that works... stay tuned...
    More to come!
    Last edited by Daemonjax (2009-07-06 00:10:42)

    I'm not able to resolve these errors.  Maybe someone more knowledgable than I could help...  Here's every log I could think of... starting with the good, and ending with the bad:
    lspci (everything looks good)
    00:00.0 Host bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 03)
    ***00:01.0 PCI bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 03)
    00:04.0 Multimedia audio controller: ESS Technology ES1978 Maestro 2E (rev 10)
    00:07.0 ISA bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 02)
    00:07.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
    00:07.2 USB Controller: Intel Corporation 82371AB/EB/MB PIIX4 USB (rev 01)
    00:07.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 02)
    00:0a.0 CardBus bridge: Texas Instruments PCI1251B
    00:0a.1 CardBus bridge: Texas Instruments PCI1251B
    ***01:00.0 VGA compatible controller: ATI Technologies Inc 3D Rage LT Pro AGP-133 (rev dc)
    lsmod (everything looks good)
    Module Size Used by
    ***mach64 43652 2
    ***drm 94284 3 mach64
    snd_seq_dummy 2696 0
    snd_seq_oss 31168 0
    snd_es1968 26720 0
    snd_seq_midi_event 7012 1 snd_seq_oss
    gameport 11280 1 snd_es1968
    snd_seq 53744 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
    snd_ac97_codec 106088 1 snd_es1968
    snd_pcm_oss 40352 0
    snd_mixer_oss 17540 1 snd_pcm_oss
    ac97_bus 1540 1 snd_ac97_codec
    snd_pcm 73768 3 snd_es1968,snd_ac97_codec,snd_pcm_oss
    snd_timer 21068 2 snd_seq,snd_pcm
    snd_page_alloc 8812 2 snd_es1968,snd_pcm
    snd_mpu401_uart 7524 1 snd_es1968
    usb_storage 51456 0
    snd_rawmidi 21824 1 snd_mpu401_uart
    pcmcia 36268 0
    snd_seq_device 6768 4 snd_seq_dummy,snd_seq_oss,snd_seq,snd_rawmidi
    snd 58404 11 snd_seq_oss,snd_es1968,snd_seq,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
    soundcore 6784 1 snd
    uhci_hcd 23476 0
    ehci_hcd 35824 0
    radio_maestro 6500 0
    psmouse 59644 0
    yenta_socket 25136 2
    i2c_piix4 9876 0
    v4l2_common 14244 1 radio_maestro
    serio_raw 5704 0
    intel_agp 27484 1
    pcspkr 2404 0
    rsrc_nonstatic 12292 1 yenta_socket
    pcmcia_core 35128 3 pcmcia,yenta_socket,rsrc_nonstatic
    usbcore 149936 4 usb_storage,uhci_hcd,ehci_hcd
    i2c_core 22776 2 i2c_piix4,v4l2_common
    shpchp 34424 0
    sg 27896 0
    container 3460 0
    videodev 37088 2 radio_maestro,v4l2_common
    v4l1_compat 15720 1 videodev
    pci_hotplug 28964 1 shpchp
    agpgart 32756 2 drm,intel_agp
    thermal 13888 0
    evdev 10176 6
    processor 35864 0
    fan 4392 0
    button 5588 0
    battery 10984 0
    ac 4360 0
    rtc_cmos 11244 0
    rtc_core 18048 1 rtc_cmos
    rtc_lib 2500 1 rtc_core
    ext4 242244 2
    mbcache 7112 1 ext4
    jbd2 58108 1 ext4
    crc16 1636 1 ext4
    sr_mod 16676 0
    cdrom 36032 1 sr_mod
    sd_mod 27808 4
    ata_piix 23112 3
    pata_acpi 4228 0
    ata_generic 4680 0
    libata 168428 3 ata_piix,pata_acpi,ata_generic
    floppy 55780 0
    scsi_mod 110516 5 usb_storage,sg,sr_mod,sd_mod,libata
    dmesg (everything looks good)
    agpgart-intel 0000:00:00.0: AGP 1.0 bridge
    ***agpgart-intel 0000:00:00.0: putting AGP V2 device into 2x mode
    pci 0000:01:00.0: putting AGP V2 device into 2x mode
    [drm] descriptor ring: cpu addr cc820000, bus addr: 0x18000000
    ***DMA test succeeded, using asynchronous DMA mode
    /var/log/Xorg.0.log (everything as expected)
    This is a pre-release version of the X server from The X.Org Foundation.
    It is not supported in any way.
    Bugs may be filed in the bugzilla at http://bugs.freedesktop.org/.
    Select the "xorg" product for bugs you find in this release.
    Before reporting bugs in pre-release versions please check the
    latest version in the X.Org Foundation git repository.
    See http://wiki.x.org/wiki/GitPage for git access instructions.
    X.Org X Server 1.6.1.901 (1.6.2 RC 1)
    Release Date: 2009-5-8
    X Protocol Version 11, Revision 0
    Build Operating System: Linux 2.6.30-ARCH i686
    Current Operating System: Linux atropos 2.6.30.1-CUSTNODRM #4 SMP PREEMPT Sat Jul 4 23:40:25 EDT 2009 i686
    Build Date: 28 June 2009 11:20:52AM
    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
    Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    (==) Log file: "/var/log/Xorg.0.log", Time: Sun Jul 5 13:22:21 2009
    (==) Using config file: "/etc/X11/xorg.conf"
    Parse error on line 15 of section Files in file /etc/X11/xorg.conf
    Ignoring obsolete keyword "RgbPath".
    (==) ServerLayout "X.org Configured"
    (**) |-->Screen "Screen0" (0)
    (**) | |-->Monitor "Monitor0"
    (**) | |-->Device "Card0"
    (**) |-->Input Device "Mouse0"
    (**) |-->Input Device "Keyboard0"
    (**) Option "DontVTSwitch" "true"
    (**) Option "DontZap" "false"
    (==) Automatically adding devices
    (==) Automatically enabling devices
    (WW) The directory "/usr/share/fonts/X11/misc" does not exist.
    Entry deleted from font path.
    (WW) The directory "/usr/share/fonts/Type1" does not exist.
    Entry deleted from font path.
    (**) FontPath set to:
    /usr/share/fonts/misc,
    /usr/share/fonts/100dpi:unscaled,
    /usr/share/fonts/75dpi:unscaled,
    /usr/share/fonts/TTF,
    built-ins
    (**) ModulePath set to "/usr/lib/xorg/modules"
    (WW) AllowEmptyInput is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
    (WW) Disabling Mouse0
    (WW) Disabling Keyboard0
    (II) Loader magic: 0x640
    (II) Module ABI versions:
    X.Org ANSI C Emulation: 0.4
    X.Org Video Driver: 5.0
    X.Org XInput driver : 4.0
    X.Org Server Extension : 2.0
    (II) Loader running on linux
    (--) using VT number 7
    (--) PCI:*(0:1:0:0) 1002:4c42:1002:4c42 ATI Technologies Inc 3D Rage LT Pro AGP-133 rev 220, Mem @ 0xfd000000/16777216, 0xfedfe000/4096, I/O @ 0x0000e800/256, BIOS @ 0x????????/131072
    (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
    (II) No APM support in BIOS or kernel
    (II) System resource ranges:
    [0] -1 0 0xffffffff - 0xffffffff (0x1) MX[b]
    [1] -1 0 0x000f0000 - 0x000fffff (0x10000) MX[b]
    [2] -1 0 0x000c0000 - 0x000effff (0x30000) MX[b]
    [3] -1 0 0x00000000 - 0x0009ffff (0xa0000) MX[b]
    [4] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[b]
    [5] -1 0 0x00000000 - 0x00000000 (0x1) IX[b]
    (II) "extmod" will be loaded. This was enabled by default and also specified in the config file.
    (II) "dbe" will be loaded. This was enabled by default and also specified in the config file.
    (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
    (II) "record" will be loaded. This was enabled by default and also specified in the config file.
    (II) "dri" will be loaded. This was enabled by default and also specified in the config file.
    (II) "dri2" will be loaded by default.
    (II) LoadModule: "extmod"
    (II) Loading /usr/lib/xorg/modules/extensions//libextmod.so
    (II) Module extmod: vendor="X.Org Foundation"
    compiled for 1.6.1.901, module version = 1.0.0
    Module class: X.Org Server Extension
    ABI class: X.Org Server Extension, version 2.0
    (II) Loading extension MIT-SCREEN-SAVER
    (II) Loading extension XFree86-VidModeExtension
    (II) Loading extension XFree86-DGA
    (II) Loading extension DPMS
    (II) Loading extension XVideo
    (II) Loading extension XVideo-MotionCompensation
    (II) Loading extension X-Resource
    (II) LoadModule: "xtrap"
    (WW) Warning, couldn't open module xtrap
    (II) UnloadModule: "xtrap"
    (EE) Failed to load module "xtrap" (module does not exist, 0)
    (II) LoadModule: "dri"
    (II) Loading /usr/lib/xorg/modules/extensions//libdri.so
    (II) Module dri: vendor="X.Org Foundation"
    compiled for 1.6.1.901, module version = 1.0.0
    ABI class: X.Org Server Extension, version 2.0
    (II) Loading extension XFree86-DRI
    (II) LoadModule: "dbe"
    (II) Loading /usr/lib/xorg/modules/extensions//libdbe.so
    (II) Module dbe: vendor="X.Org Foundation"
    compiled for 1.6.1.901, module version = 1.0.0
    Module class: X.Org Server Extension
    ABI class: X.Org Server Extension, version 2.0
    (II) Loading extension DOUBLE-BUFFER
    (II) LoadModule: "record"
    (II) Loading /usr/lib/xorg/modules/extensions//librecord.so
    (II) Module record: vendor="X.Org Foundation"
    compiled for 1.6.1.901, module version = 1.13.0
    Module class: X.Org Server Extension
    ABI class: X.Org Server Extension, version 2.0
    (II) Loading extension RECORD
    (II) LoadModule: "glx"
    (II) Loading /usr/lib/xorg/modules/extensions//libglx.so
    (II) Module glx: vendor="X.Org Foundation"
    compiled for 1.6.1.901, module version = 1.0.0
    ABI class: X.Org Server Extension, version 2.0
    (==) AIGLX enabled
    (II) Loading extension GLX
    (II) LoadModule: "dri2"
    (II) Loading /usr/lib/xorg/modules/extensions//libdri2.so
    (II) Module dri2: vendor="X.Org Foundation"
    compiled for 1.6.1.901, module version = 1.0.0
    ABI class: X.Org Server Extension, version 2.0
    (II) Loading extension DRI2
    (II) LoadModule: "mach64"
    (II) Loading /usr/lib/xorg/modules/drivers//mach64_drv.so
    (II) Module mach64: vendor="X.Org Foundation"
    compiled for 1.6.1, module version = 6.8.1
    Module class: X.Org Video Driver
    ABI class: X.Org Video Driver, version 5.0
    (II) MACH64: Driver for ATI Mach64 chipsets
    (II) Primary Device is: PCI 01@00:00:0
    (II) resource ranges after probing:
    [0] -1 0 0xffffffff - 0xffffffff (0x1) MX[b]
    [1] -1 0 0x000f0000 - 0x000fffff (0x10000) MX[b]
    [2] -1 0 0x000c0000 - 0x000effff (0x30000) MX[b]
    [3] -1 0 0x00000000 - 0x0009ffff (0xa0000) MX[b]
    [4] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[b]
    [5] -1 0 0x00000000 - 0x00000000 (0x1) IX[b]
    (**) MACH64(0): Depth 16, (--) framebuffer bpp 16
    (**) MACH64(0): Option "probe_sparse" "False"
    (**) MACH64(0): Option "accel" "True"
    (**) MACH64(0): Option "crt_display" "false"
    (**) MACH64(0): Option "composite_sync" "True"
    (**) MACH64(0): Option "hw_cursor" "True"
    (**) MACH64(0): Option "dma_mode" "async"
    (**) MACH64(0): Option "agp_mode" "2"
    (**) MACH64(0): Option "agp_size" "64"
    (**) MACH64(0): Option "local_textures" "True"
    (**) MACH64(0): Option "buffer_size" "2"
    (**) MACH64(0): Option "tv_out" "false"
    (**) MACH64(0): Option "mmio_cache" "True"
    (**) MACH64(0): Option "test_mmio_cache" "false"
    (**) MACH64(0): Option "shadow_fb" "False"
    (**) MACH64(0): Option "sw_cursor" "false"
    (**) MACH64(0): Option "AccelMethod" "XAA"
    (**) MACH64(0): Option "RenderAccel" "True"
    (**) MACH64(0): Option "lcdblend" "True"
    (**) MACH64(0): Option "lcdsync" "True"
    (**) MACH64(0): Using XAA acceleration architecture
    (II) MACH64: Mach64 in slot 1:0:0 detected.
    (II) resource ranges after xf86ClaimFixedResources() call:
    [0] -1 0 0xffffffff - 0xffffffff (0x1) MX[b]
    [1] -1 0 0x000f0000 - 0x000fffff (0x10000) MX[b]
    [2] -1 0 0x000c0000 - 0x000effff (0x30000) MX[b]
    [3] -1 0 0x00000000 - 0x0009ffff (0xa0000) MX[b]
    [4] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[b]
    [5] -1 0 0x00000000 - 0x00000000 (0x1) IX[b]
    (II) Loading sub module "int10"
    (II) LoadModule: "int10"
    (II) Loading /usr/lib/xorg/modules//libint10.so
    (II) Module int10: vendor="X.Org Foundation"
    compiled for 1.6.1.901, module version = 1.0.0
    ABI class: X.Org Video Driver, version 5.0
    (II) MACH64(0): Primary V_BIOS segment is: 0xc000
    (II) Loading sub module "ddc"
    (II) LoadModule: "ddc"
    (II) Module "ddc" already built-in
    (II) Loading sub module "vbe"
    (II) LoadModule: "vbe"
    (II) Loading /usr/lib/xorg/modules//libvbe.so
    (II) Module vbe: vendor="X.Org Foundation"
    compiled for 1.6.1.901, module version = 1.1.0
    ABI class: X.Org Video Driver, version 5.0
    (II) MACH64(0): VESA BIOS detected
    (II) MACH64(0): VESA VBE Version 2.0
    (II) MACH64(0): VESA VBE Total Mem: 8128 kB
    (II) MACH64(0): VESA VBE OEM: ATI MACH64
    (II) MACH64(0): VESA VBE OEM Software Rev: 1.0
    (II) MACH64(0): VESA VBE OEM Vendor: ATI Technologies Inc.
    (II) MACH64(0): VESA VBE OEM Product: MACH64LP
    (II) MACH64(0): VESA VBE OEM Product Rev: 01.00
    (II) MACH64(0): VESA VBE DDC supported
    (II) MACH64(0): VESA VBE DDC Level none
    (II) MACH64(0): VESA VBE DDC transfer in appr. 2 sec.
    (II) MACH64(0): VESA VBE DDC read failed
    (--) MACH64(0): Panel model LG LP141X2-A.
    (II) MACH64(0): BIOS Data: BIOSSize=0xF000, ROMTable=0x010A.
    (II) MACH64(0): BIOS Data: ClockTable=0x08A7, FrequencyTable=0x0000.
    (II) MACH64(0): BIOS Data: LCDTable=0x0184.
    (II) MACH64(0): BIOS Data: VideoTable=0x0000, HardwareTable=0x015A.
    (II) MACH64(0): BIOS Data: I2CType=0x0F, Tuner=0x00, Decoder=0x00, Audio=0x0F.
    (--) MACH64(0): ATI 3D Rage LT Pro graphics controller detected.
    (--) MACH64(0): Chip type 4C42 "LB", version 4, foundry UMC, class 0, revision 0x03.
    (--) MACH64(0): AGP bus interface detected; block I/O base is 0xE800.
    (--) MACH64(0): ATI Mach64 adapter detected.
    (!!) MACH64(0): For information on using the multimedia capabilities
    of this adapter, please see http://gatos.sf.net.
    (--) MACH64(0): Internal RAMDAC (subtype 1) detected.
    (==) MACH64(0): RGB weight 565
    (==) MACH64(0): Default visual is TrueColor
    (==) MACH64(0): Using gamma correction (1.0, 1.0, 1.0)
    (II) MACH64(0): Using Mach64 accelerator CRTC.
    (WW) MACH64(0): Logic error setting operating state for VGA I/O.
    (--) MACH64(0): 1024x768 panel (ID 1) detected.
    (--) MACH64(0): Panel clock is 65.146 MHz.
    (II) MACH64(0): Using digital flat panel interface.
    (II) MACH64(0): Storing hardware cursor image at 0xFD7FFC00.
    (II) MACH64(0): Using 8 MB linear aperture at 0xFD000000.
    (!!) MACH64(0): Virtual resolutions will be limited to 8191 kB
    due to linear aperture size and/or placement of hardware cursor image area.
    (II) MACH64(0): Using Block 0 MMIO aperture at 0xFEDFE400.
    (II) MACH64(0): Using Block 1 MMIO aperture at 0xFEDFE000.
    (WW) MACH64(0): Logic error setting operating state for VGA memory aperture.
    (II) MACH64(0): MMIO write caching enabled.
    (--) MACH64(0): 8192 kB of SGRAM (1:1) detected (using 8191 kB).
    (II) MACH64(0): Engine XCLK 79.742 MHz; Refresh rate code 6.
    (--) MACH64(0): Internal programmable clock generator detected.
    (--) MACH64(0): Reference clock 29.500 MHz.
    (WW) MACH64(0): Extraneous XF86Config HorizSync specification(s) ignored.
    (!!) MACH64(0): Conflicting XF86Config VertRefresh specification(s) ignored.
    (II) MACH64(0): Maximum clock: 200.00 MHz
    (II) MACH64(0): Not using default mode "1152x864" (exceeds panel dimensions)
    (II) MACH64(0): Not using default mode "576x432" (exceeds panel dimensions)
    (II) MACH64(0): Not using default mode "1280x960" (exceeds panel dimensions)
    (II) MACH64(0): Not using default mode "1280x960" (exceeds panel dimensions)
    (II) MACH64(0): Not using default mode "1280x1024" (exceeds panel dimensions)
    (II) MACH64(0): Not using default mode "640x512" (exceeds panel dimensions)
    (II) MACH64(0): Not using default mode "1280x1024" (exceeds panel dimensions)
    (II) MACH64(0): Not using default mode "640x512" (exceeds panel dimensions)
    (II) MACH64(0): Not using default mode "1280x1024" (exceeds panel dimensions)
    (II) MACH64(0): Not using default mode "640x512" (exceeds panel dimensions)
    (II) MACH64(0): Not using default mode "1600x1200" (exceeds panel dimensions)
    (II) MACH64(0): Not using default mode "1600x1200" (exceeds panel dimensions)
    (II) MACH64(0): Not using default mode "1600x1200" (exceeds panel dimensions)
    (II) MACH64(0): Not using default mode "1600x1200" (bad mode clock/interlace/doublescan)
    (II) MACH64(0): Not using default mode "1600x1200" (bad mode clock/interlace/doublescan)
    (II) MACH64(0): Not using default mode "1792x1344" (bad mode clock/interlace/doublescan)
    (II) MACH64(0): Not using default mode "896x672" (exceeds panel dimensions)
    (II) MACH64(0): Not using default mode "1792x1344" (bad mode clock/interlace/doublescan)
    (II) MACH64(0): Not using default mode "896x672" (exceeds panel dimensions)
    (II) MACH64(0): Not using default mode "1856x1392" (bad mode clock/interlace/doublescan)
    (II) MACH64(0): Not using default mode "928x696" (exceeds panel dimensions)
    (II) MACH64(0): Not using default mode "1856x1392" (bad mode clock/interlace/doublescan)
    (II) MACH64(0): Not using default mode "928x696" (exceeds panel dimensions)
    (II) MACH64(0): Not using default mode "1920x1440" (bad mode clock/interlace/doublescan)
    (II) MACH64(0): Not using default mode "960x720" (exceeds panel dimensions)
    (II) MACH64(0): Not using default mode "1920x1440" (bad mode clock/interlace/doublescan)
    (II) MACH64(0): Not using default mode "960x720" (exceeds panel dimensions)
    (II) MACH64(0): Not using default mode "1400x1050" (exceeds panel dimensions)
    (II) MACH64(0): Not using default mode "700x525" (exceeds panel dimensions)
    (II) MACH64(0): Not using default mode "1400x1050" (exceeds panel dimensions)
    (II) MACH64(0): Not using default mode "700x525" (exceeds panel dimensions)
    (II) MACH64(0): Not using default mode "1920x1440" (bad mode clock/interlace/doublescan)
    (II) MACH64(0): Not using default mode "960x720" (exceeds panel dimensions)
    (II) MACH64(0): Not using default mode "2048x1536" (bad mode clock/interlace/doublescan)
    (II) MACH64(0): Not using default mode "2048x1536" (bad mode clock/interlace/doublescan)
    (II) MACH64(0): Not using default mode "2048x1536" (bad mode clock/interlace/doublescan)
    (--) MACH64(0): Virtual size is 1024x768 (pitch 1024)
    (**) MACH64(0): *Mode "1024x768": 65.1 MHz, 48.5 kHz, 60.8 Hz
    (II) MACH64(0): Modeline "1024x768"x60.8 65.15 1024 1032 1176 1344 768 770 775 797 -hsync -vsync (48.5 kHz)
    (**) MACH64(0): *Mode "800x600": 65.1 MHz, 49.7 kHz, 63.1 Hz
    (II) MACH64(0): Modeline "800x600"x63.1 65.15 800 824 928 1088 600 600 603 619 (49.7 kHz)
    (**) MACH64(0): *Mode "640x480": 65.1 MHz, 50.9 kHz, 63.5 Hz
    (II) MACH64(0): Modeline "640x480"x63.5 65.15 640 672 832 896 480 488 490 514 (50.9 kHz)
    (**) MACH64(0): *Mode "320x200": 65.1 MHz, 50.9 kHz, 63.1 Hz (D)
    (II) MACH64(0): Modeline "320x200"x63.1 65.15 320 368 528 576 200 203 204 219 doublescan (50.9 kHz)
    (**) MACH64(0): Built-in mode "Native panel mode": 65.1 MHz, 62.6 kHz, 81.4 Hz
    (II) MACH64(0): Modeline "Native panel mode"x81.4 65.15 1024 1024 1032 1040 768 768 769 770 (62.6 kHz)
    (**) MACH64(0): Default mode "832x624": 65.1 MHz, 45.7 kHz, 57.1 Hz
    (II) MACH64(0): Modeline "832x624"x57.1 65.15 832 864 952 1232 624 624 627 657 -hsync -vsync (45.7 kHz)
    (**) MACH64(0): Default mode "720x400": 65.1 MHz, 48.8 kHz, 60.7 Hz
    (II) MACH64(0): Modeline "720x400"x60.7 65.15 720 768 880 1032 400 400 403 435 -hsync +vsync (48.8 kHz)
    (**) MACH64(0): Default mode "640x400": 65.1 MHz, 48.8 kHz, 60.8 Hz
    (II) MACH64(0): Modeline "640x400"x60.8 65.15 640 688 800 952 400 400 403 434 -hsync +vsync (48.8 kHz)
    (**) MACH64(0): Default mode "640x350": 65.1 MHz, 48.8 kHz, 58.0 Hz
    (II) MACH64(0): Modeline "640x350"x58.0 65.15 640 688 800 952 350 374 377 422 +hsync -vsync (48.8 kHz)
    (**) MACH64(0): Default mode "512x384": 65.1 MHz, 49.7 kHz, 62.7 Hz (D)
    (II) MACH64(0): Modeline "512x384"x62.7 65.15 512 528 624 800 384 384 385 396 doublescan +hsync +vsync (49.7 kHz)
    (**) MACH64(0): Default mode "512x384": 65.1 MHz, 49.1 kHz, 61.6 Hz (D)
    (II) MACH64(0): Modeline "512x384"x61.6 65.15 512 536 672 816 384 384 387 398 doublescan -hsync -vsync (49.1 kHz)
    (**) MACH64(0): Default mode "512x384": 65.1 MHz, 48.5 kHz, 60.8 Hz (D)
    (II) MACH64(0): Modeline "512x384"x60.8 65.15 512 536 672 832 384 384 387 398 doublescan -hsync -vsync (48.5 kHz)
    (**) MACH64(0): Default mode "512x384": 65.1 MHz, 47.3 kHz, 59.3 Hz (D)
    (II) MACH64(0): Modeline "512x384"x59.3 65.15 512 560 656 864 384 384 385 399 doublescan +hsync +vsync (47.3 kHz)
    (**) MACH64(0): Default mode "512x384": 65.1 MHz, 51.5 kHz, 65.4 Hz (D)
    (II) MACH64(0): Modeline "512x384"x65.4 65.15 512 520 696 752 384 384 387 405 interlace doublescan +hsync +vsync (51.5 kHz)
    (**) MACH64(0): Default mode "416x312": 65.1 MHz, 45.7 kHz, 57.2 Hz (D)
    (II) MACH64(0): Modeline "416x312"x57.2 65.15 416 448 536 816 312 312 313 328 doublescan -hsync -vsync (45.7 kHz)
    (**) MACH64(0): Default mode "400x300": 65.1 MHz, 49.7 kHz, 63.2 Hz (D)
    (II) MACH64(0): Modeline "400x300"x63.2 65.15 400 424 528 688 300 300 301 309 doublescan +hsync +vsync (49.7 kHz)
    (**) MACH64(0): Default mode "400x300": 65.1 MHz, 48.2 kHz, 61.3 Hz (D)
    (II) MACH64(0): Modeline "400x300"x61.3 65.15 400 416 528 728 300 300 301 309 doublescan +hsync +vsync (48.2 kHz)
    (**) MACH64(0): Default mode "400x300": 65.1 MHz, 48.5 kHz, 61.3 Hz (D)
    (II) MACH64(0): Modeline "400x300"x61.3 65.15 400 440 528 720 300 300 301 311 doublescan +hsync +vsync (48.5 kHz)
    (**) MACH64(0): Default mode "400x300": 65.1 MHz, 48.2 kHz, 61.1 Hz (D)
    (II) MACH64(0): Modeline "400x300"x61.1 65.15 400 448 616 728 300 300 301 310 doublescan +hsync +vsync (48.2 kHz)
    (**) MACH64(0): Default mode "400x300": 65.1 MHz, 48.8 kHz, 59.6 Hz (D)
    (II) MACH64(0): Modeline "400x300"x59.6 65.15 400 464 632 712 300 313 316 325 doublescan +hsync +vsync (48.8 kHz)
    (**) MACH64(0): Default mode "320x240": 65.1 MHz, 50.9 kHz, 63.5 Hz (D)
    (II) MACH64(0): Modeline "320x240"x63.5 65.15 320 344 504 576 240 243 244 256 doublescan -hsync -vsync (50.9 kHz)
    (**) MACH64(0): Default mode "320x240": 65.1 MHz, 48.5 kHz, 61.9 Hz (D)
    (II) MACH64(0): Modeline "320x240"x61.9 65.15 320 344 448 640 240 240 241 247 doublescan -hsync -vsync (48.5 kHz)
    (**) MACH64(0): Default mode "320x240": 65.1 MHz, 48.8 kHz, 61.8 Hz (D)
    (II) MACH64(0): Modeline "320x240"x61.8 65.15 320 408 504 632 240 240 241 250 doublescan -hsync -vsync (48.8 kHz)
    (**) MACH64(0): Default mode "320x240": 65.1 MHz, 48.8 kHz, 61.1 Hz (D)
    (II) MACH64(0): Modeline "320x240"x61.1 65.15 320 352 424 632 240 243 244 255 doublescan -hsync -vsync (48.8 kHz)
    (**) MACH64(0): Default mode "360x200": 65.1 MHz, 48.8 kHz, 60.7 Hz (D)
    (II) MACH64(0): Modeline "360x200"x60.7 65.15 360 408 520 672 200 200 201 217 doublescan -hsync +vsync (48.8 kHz)
    (**) MACH64(0): Default mode "320x175": 65.1 MHz, 48.8 kHz, 58.1 Hz (D)
    (II) MACH64(0): Modeline "320x175"x58.1 65.15 320 368 480 632 175 187 188 210 doublescan +hsync -vsync (48.8 kHz)
    (==) MACH64(0): DPI set to (96, 96)
    (II) Loading sub module "fb"
    (II) LoadModule: "fb"
    (II) Loading /usr/lib/xorg/modules//libfb.so
    (II) Module fb: vendor="X.Org Foundation"
    compiled for 1.6.1.901, module version = 1.0.0
    ABI class: X.Org ANSI C Emulation, version 0.4
    (II) Loading sub module "ramdac"
    (II) LoadModule: "ramdac"
    (II) Module "ramdac" already built-in
    (II) Loading sub module "xaa"
    (II) LoadModule: "xaa"
    (II) Loading /usr/lib/xorg/modules//libxaa.so
    (II) Module xaa: vendor="X.Org Foundation"
    compiled for 1.6.1.901, module version = 1.2.1
    ABI class: X.Org Video Driver, version 5.0
    (II) Loading sub module "i2c"
    (II) LoadModule: "i2c"
    (II) Module "i2c" already built-in
    (II) MACH64(0): I2C bus "Mach64" initialized.
    (II) do I need RAC? No, I don't.
    (II) resource ranges after preInit:
    [0] -1 0 0xffffffff - 0xffffffff (0x1) MX[b]
    [1] -1 0 0x000f0000 - 0x000fffff (0x10000) MX[b]
    [2] -1 0 0x000c0000 - 0x000effff (0x30000) MX[b]
    [3] -1 0 0x00000000 - 0x0009ffff (0xa0000) MX[b]
    [4] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[b]
    [5] -1 0 0x00000000 - 0x00000000 (0x1) IX[b]
    (II) MACH64(0): [drm] SAREA 2200+1208: 3408
    drmOpenDevice: node name is /dev/dri/card0
    drmOpenDevice: open result is 9, (OK)
    drmOpenDevice: node name is /dev/dri/card0
    drmOpenDevice: open result is 9, (OK)
    drmOpenByBusid: Searching for BusID pci:0000:01:00.0
    drmOpenDevice: node name is /dev/dri/card0
    drmOpenDevice: open result is 9, (OK)
    drmOpenByBusid: drmOpenMinor returns 9
    drmOpenByBusid: drmGetBusid reports pci:0000:01:00.0
    (II) [drm] DRM interface version 1.3
    (II) [drm] DRM open master succeeded.
    (II) MACH64(0): [drm] Using the DRM lock SAREA also for drawables.
    (II) MACH64(0): [drm] framebuffer handle = 0xfd000000
    (II) MACH64(0): [drm] added 1 reserved context for kernel
    (II) MACH64(0): X context handle = 0x1
    (II) MACH64(0): [drm] installed DRM signal handler
    (II) MACH64(0): [drm] Will request asynchronous DMA mode
    (**) MACH64(0): [agp] Using AGP 2x Mode
    (**) MACH64(0): [agp] Using 64 MB AGP aperture
    (II) MACH64(0): [agp] Mode 0x1f000203 [AGP 0x8086/0x7190; Card 0x1002/0x4c42]
    (II) MACH64(0): [agp] 65536 kB allocated with handle 0x00000001
    (II) MACH64(0): [agp] Using 16 kB for DMA descriptor ring
    (**) MACH64(0): [drm] Using 2 MB for DMA buffers
    (II) MACH64(0): [agp] Using 62464 kB for AGP textures
    (II) MACH64(0): [agp] ring handle = 0x18000000
    (II) MACH64(0): [agp] Ring mapped at 0xb7089000
    (II) MACH64(0): [agp] vertex buffers handle = 0x18004000
    (II) MACH64(0): [agp] Vertex buffers mapped at 0xb6e89000
    (II) MACH64(0): [agp] AGP texture region handle = 0x18204000
    (II) MACH64(0): [agp] AGP Texture region mapped at 0xb3189000
    (II) MACH64(0): [drm] register handle = 0xfedfe000
    (II) MACH64(0): [dri] Visual configs initialized
    (II) MACH64(0): [dri] Block 0 base at 0xfedfe400
    (II) MACH64(0): Memory manager initialized to (0,0) (1024,4095)
    (II) MACH64(0): Largest offscreen area available: 1024 x 3327
    (II) MACH64(0): Will use 1598 kB of offscreen memory for XAA
    (II) MACH64(0): Will use back buffer at offset 0x30f800
    (II) MACH64(0): Will use depth buffer at offset 0x48f800
    (II) MACH64(0): Will use 1985 kB for local textures at offset 0x60f800
    (II) MACH64(0): Using XFree86 Acceleration Architecture (XAA)
    Screen to screen bit blits
    Solid filled rectangles
    8x8 mono pattern filled rectangles
    Indirect CPU to Screen color expansion
    Solid Lines
    Setting up tile and stipple cache:
    32 128x128 slots
    18 256x256 slots
    6 512x512 slots
    (==) MACH64(0): Backing store disabled
    (==) MACH64(0): Silken mouse enabled
    (II) MACH64(0): DPMS enabled
    (II) MACH64(0): [DRI] installation complete
    (II) MACH64(0): [drm] Added 128 16384 byte DMA buffers
    (II) MACH64(0): [drm] Mapped 128 DMA buffers at 0xb2f89000
    (II) MACH64(0): [drm] Installed interrupt handler, using IRQ 11
    (II) MACH64(0): Direct rendering enabled
    (==) RandR enabled
    (II) Initializing built-in extension Generic Event Extension
    (II) Initializing built-in extension SHAPE
    (II) Initializing built-in extension MIT-SHM
    (II) Initializing built-in extension XInputExtension
    (II) Initializing built-in extension XTEST
    (II) Initializing built-in extension BIG-REQUESTS
    (II) Initializing built-in extension SYNC
    (II) Initializing built-in extension XKEYBOARD
    (II) Initializing built-in extension XC-MISC
    (II) Initializing built-in extension SECURITY
    (II) Initializing built-in extension XINERAMA
    (II) Initializing built-in extension XFIXES
    (II) Initializing built-in extension RENDER
    (II) Initializing built-in extension RANDR
    (II) Initializing built-in extension COMPOSITE
    (II) Initializing built-in extension DAMAGE
    (II) AIGLX: Screen 0 is not DRI2 capable
    drmOpenDevice: node name is /dev/dri/card0
    drmOpenDevice: open result is 10, (OK)
    drmOpenByBusid: Searching for BusID pci:0000:01:00.0
    drmOpenDevice: node name is /dev/dri/card0
    drmOpenDevice: open result is 10, (OK)
    drmOpenByBusid: drmOpenMinor returns 10
    drmOpenByBusid: drmGetBusid reports pci:0000:01:00.0
    (II) AIGLX: enabled GLX_SGI_swap_control and GLX_MESA_swap_control
    (II) AIGLX: Loaded and initialized /usr/lib/xorg/modules/dri/mach64_dri.so
    (II) GLX: Initialized DRI GL provider for screen 0
    (II) config/hal: Adding input device Macintosh mouse button emulation
    (II) LoadModule: "evdev"
    (II) Loading /usr/lib/xorg/modules/input//evdev_drv.so
    (II) Module evdev: vendor="X.Org Foundation"
    compiled for 1.6.1, module version = 2.2.2
    Module class: X.Org XInput Driver
    ABI class: X.Org XInput driver, version 4.0
    (**) Macintosh mouse button emulation: always reports core events
    (**) Macintosh mouse button emulation: Device: "/dev/input/event0"
    (II) Macintosh mouse button emulation: Found 3 mouse buttons
    (II) Macintosh mouse button emulation: Found x and y relative axes
    (II) Macintosh mouse button emulation: Configuring as mouse
    (**) Macintosh mouse button emulation: YAxisMapping: buttons 4 and 5
    (**) Macintosh mouse button emulation: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
    (II) XINPUT: Adding extended input device "Macintosh mouse button emulation" (type: MOUSE)
    (**) Macintosh mouse button emulation: (accel) keeping acceleration scheme 1
    (**) Macintosh mouse button emulation: (accel) filter chain progression: 2.00
    (**) Macintosh mouse button emulation: (accel) filter stage 0: 20.00 ms
    (**) Macintosh mouse button emulation: (accel) set acceleration profile 0
    (II) config/hal: Adding input device TPPS/2 IBM TrackPoint
    (**) TPPS/2 IBM TrackPoint: always reports core events
    (**) TPPS/2 IBM TrackPoint: Device: "/dev/input/event5"
    (II) TPPS/2 IBM TrackPoint: Found 3 mouse buttons
    (II) TPPS/2 IBM TrackPoint: Found x and y relative axes
    (II) TPPS/2 IBM TrackPoint: Configuring as mouse
    (**) TPPS/2 IBM TrackPoint: YAxisMapping: buttons 4 and 5
    (**) TPPS/2 IBM TrackPoint: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
    (II) XINPUT: Adding extended input device "TPPS/2 IBM TrackPoint" (type: MOUSE)
    (**) TPPS/2 IBM TrackPoint: (accel) keeping acceleration scheme 1
    (**) TPPS/2 IBM TrackPoint: (accel) filter chain progression: 2.00
    (**) TPPS/2 IBM TrackPoint: (accel) filter stage 0: 20.00 ms
    (**) TPPS/2 IBM TrackPoint: (accel) set acceleration profile 0
    (II) config/hal: Adding input device AT Translated Set 2 keyboard
    (**) AT Translated Set 2 keyboard: always reports core events
    (**) AT Translated Set 2 keyboard: Device: "/dev/input/event1"
    (II) AT Translated Set 2 keyboard: Found keys
    (II) AT Translated Set 2 keyboard: Configuring as keyboard
    (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD)
    (**) Option "xkb_rules" "evdev"
    (**) Option "xkb_model" "evdev"
    (**) Option "xkb_layout" "us"
    xorg.conf (I'm very sure the problem is NOT here, but included for sake of completeness)
    Section "ServerLayout"
    Identifier "X.org Configured"
    Screen 0 "Screen0" 0 0
    InputDevice "Mouse0" "CorePointer"
    InputDevice "Keyboard0" "CoreKeyboard"
    EndSection
    Section "ServerFlags"
    Option "DontVTSwitch" "true" # causes kernel panic
    Option "DontZap" "false" # disabled by default?!
    EndSection
    Section "Files"
    RgbPath "/etc/X11/rgb"
    ModulePath "/usr/lib/xorg/modules"
    FontPath "/usr/share/fonts/X11/misc"
    EndSection
    Section "Module" # most of these load by default
    Load "GLcore"
    Load "extmod"
    Load "xtrap"
    Load "dri"
    Load "dbe"
    Load "record"
    Load "glx"
    EndSection
    Section "InputDevice"
    Identifier "Keyboard0"
    Driver "kbd"
    Option "XkbdOptions" "terminate::ctrl_alt_bksp"
    EndSection
    Section "InputDevice"
    Identifier "Mouse0"
    Driver "mouse"
    Option "Protocol" "auto"
    Option "Device" "/dev/input/mice"
    Option "ZAxisMapping" "4 5 6 7"
    EndSection
    Section "Monitor"
    Identifier "Monitor0"
    VendorName "Monitor Vendor"
    ModelName "Monitor Model"
    HorizSync 30 - 60
    VertRefresh 70 - 90
    Modeline "1024x768" 65 1024 1032 1176 1344 768 771 777 806 -hsync -vsync
    Modeline "800x600" 36 800 824 896 1024 600 601 603 625
    Modeline "640x480" 25.175 640 664 760 800 480 491 493 525
    #Modeline "640x400" 25.175 640 664 760 800 400 409 411 450
    Modeline "320x200" 12.588 320 336 384 400 200 204 205 225 Doublescan
    # Option "Gamma" ".6" # doesn't work
    EndSection
    Section "Device"
    ### Available Driver options are:-
    ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
    ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
    ### [arg]: arg optional
    Option "probe_sparse" "False" # ?
    Option "lcdblend" "True" # saw in source code
    Option "LCDSync" "True"
    Option "accel" "True"
    Option "crt_display" "false"
    Option "composite_sync" "True"
    Option "hw_cursor" "True"
    #Option "force_pci_mode" "True" # rather use AGP
    Option "dma_mode" "async" # async is best
    Option "agp_mode" "2"
    Option "agp_size" "64" # Aperture
    Option "local_textures" "True"# [<bool>]
    Option "buffer_size" "2"
    Option "tv_out" "false"
    #Option "tv_standard" # <str>
    Option "mmio_cache" "True"# [<bool>]
    Option "test_mmio_cache" "false"# [<bool>]
    #Option "panel_display" # [<bool>]
    #Option "reference_clock" # <freq>
    Option "shadow_fb" "False" # Can't shadow accelerated fb
    Option "sw_cursor" "false"
    Option "AccelMethod" "XAA" # EXA or XAA (XAA is slightly faster)
    #Option "AccelDFS" "True" # saw on internetz
    Option "RenderAccel" "True"
    Identifier "Card0"
    Driver "mach64"
    #Option "ForcePCIMode" "True"
    #Option "TVOut"
    VendorName "ATI Technologies Inc"
    BoardName "3D Rage LT Pro AGP-133"
    BusID "PCI:1:0:0"
    EndSection
    Section "Screen"
    Identifier "Screen0"
    Device "Card0"
    Monitor "Monitor0"
    DefaultDepth 16
    # SubSection "Display"
    # Viewport 0 0
    # Depth 1
    # EndSubSection
    # SubSection "Display"
    # Viewport 0 0
    # Depth 4
    # EndSubSection
    # SubSection "Display"
    # Viewport 0 0
    # Depth 8
    # EndSubSection
    # SubSection "Display"
    # Viewport 0 0
    # Depth 15
    # EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 16
    Modes "1024x768" "800x600" "640x480" "320x200"
    EndSubSection
    # SubSection "Display"
    # Viewport 0 0
    # Depth 24
    # EndSubSection
    EndSection
    Section "DRI"
    Mode 0666
    EndSection
    glxinfo (everything looks good)
    name of display: :0.0
    display: :0 screen: 0
    direct rendering: Yes
    server glx vendor string: SGI
    server glx version string: 1.2
    server glx extensions:
    GLX_ARB_multisample, GLX_EXT_import_context, GLX_EXT_texture_from_pixmap,
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_OML_swap_method,
    GLX_SGI_swap_control, GLX_SGIS_multisample, GLX_SGIX_fbconfig,
    GLX_SGIX_visual_select_group
    client glx vendor string: SGI
    client glx version string: 1.4
    client glx extensions:
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_allocate_memory,
    GLX_MESA_copy_sub_buffer, GLX_MESA_swap_control,
    GLX_MESA_swap_frame_usage, GLX_OML_swap_method, GLX_OML_sync_control,
    GLX_SGI_make_current_read, GLX_SGI_swap_control, GLX_SGI_video_sync,
    GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,
    GLX_SGIX_visual_select_group, GLX_EXT_texture_from_pixmap
    GLX version: 1.2
    GLX extensions:
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_swap_control,
    GLX_MESA_swap_frame_usage, GLX_OML_swap_method, GLX_SGI_swap_control,
    GLX_SGI_video_sync, GLX_SGIS_multisample, GLX_SGIX_fbconfig,
    GLX_SGIX_visual_select_group
    OpenGL vendor string: Gareth Hughes, Leif Delgass, José Fonseca
    OpenGL renderer string: Mesa DRI Mach64 [Rage Pro] 20051019 AGP 2x x86/MMX
    OpenGL version string: 1.2 Mesa 7.4.4
    OpenGL extensions:
    GL_ARB_imaging, GL_ARB_multisample, GL_ARB_multitexture,
    GL_ARB_transpose_matrix, GL_ARB_vertex_buffer_object, GL_ARB_window_pos,
    GL_EXT_abgr, GL_EXT_bgra, GL_EXT_blend_color, GL_EXT_blend_logic_op,
    GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_clip_volume_hint,
    GL_EXT_compiled_vertex_array, GL_EXT_convolution, GL_EXT_copy_texture,
    GL_EXT_draw_range_elements, GL_EXT_histogram, GL_EXT_packed_pixels,
    GL_EXT_polygon_offset, GL_EXT_rescale_normal,
    GL_EXT_separate_specular_color, GL_EXT_subtexture, GL_EXT_texture,
    GL_EXT_texture3D, GL_EXT_texture_edge_clamp, GL_EXT_texture_object,
    GL_EXT_vertex_array, GL_APPLE_packed_pixels, GL_IBM_rasterpos_clip,
    GL_MESA_ycbcr_texture, GL_MESA_window_pos, GL_NV_light_max_exponent,
    GL_NV_texgen_reflection, GL_OES_read_format, GL_SGI_color_matrix,
    GL_SGI_color_table, GL_SGIS_generate_mipmap, GL_SGIS_texture_edge_clamp,
    GL_SGIS_texture_lod
    16 GLX Visuals
    visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav
    id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat
    0x21 16 tc 0 16 0 r y . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
    0x22 16 dc 0 16 0 r y . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
    0x4e 16 tc 0 16 0 r . . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
    0x4f 16 tc 0 16 0 r . . 5 6 5 0 0 16 0 16 16 16 0 0 0 Slow
    0x50 16 tc 0 16 0 r y . 5 6 5 0 0 16 0 16 16 16 0 0 0 Slow
    0x51 16 tc 0 16 0 r . . 5 6 5 0 0 16 8 0 0 0 0 0 0 Slow
    0x52 16 tc 0 16 0 r . . 5 6 5 0 0 16 8 16 16 16 0 0 0 Slow
    0x53 16 tc 0 16 0 r y . 5 6 5 0 0 16 8 0 0 0 0 0 0 Slow
    0x54 16 tc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 0 0 0 Slow
    0x55 16 dc 0 16 0 r . . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
    0x56 16 dc 0 16 0 r . . 5 6 5 0 0 16 0 16 16 16 0 0 0 Slow
    0x57 16 dc 0 16 0 r y . 5 6 5 0 0 16 0 16 16 16 0 0 0 Slow
    0x58 16 dc 0 16 0 r . . 5 6 5 0 0 16 8 0 0 0 0 0 0 Slow
    0x59 16 dc 0 16 0 r . . 5 6 5 0 0 16 8 16 16 16 0 0 0 Slow
    0x5a 16 dc 0 16 0 r y . 5 6 5 0 0 16 8 0 0 0 0 0 0 Slow
    0x5b 16 dc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 0 0 0 Slow
    16 GLXFBConfigs:
    visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav
    id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat
    0x3e 0 tc 0 16 0 r . . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
    0x3f 0 tc 0 16 0 r . . 5 6 5 0 0 16 0 16 16 16 0 0 0 Slow
    0x40 0 tc 0 16 0 r y . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
    0x41 0 tc 0 16 0 r y . 5 6 5 0 0 16 0 16 16 16 0 0 0 Slow
    0x42 0 tc 0 16 0 r . . 5 6 5 0 0 16 8 0 0 0 0 0 0 Slow
    0x43 0 tc 0 16 0 r . . 5 6 5 0 0 16 8 16 16 16 0 0 0 Slow
    0x44 0 tc 0 16 0 r y . 5 6 5 0 0 16 8 0 0 0 0 0 0 Slow
    0x45 0 tc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 0 0 0 Slow
    0x46 0 dc 0 16 0 r . . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
    0x47 0 dc 0 16 0 r . . 5 6 5 0 0 16 0 16 16 16 0 0 0 Slow
    0x48 0 dc 0 16 0 r y . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
    0x49 0 dc 0 16 0 r y . 5 6 5 0 0 16 0 16 16 16 0 0 0 Slow
    0x4a 0 dc 0 16 0 r . . 5 6 5 0 0 16 8 0 0 0 0 0 0 Slow
    0x4b 0 dc 0 16 0 r . . 5 6 5 0 0 16 8 16 16 16 0 0 0 Slow
    0x4c 0 dc 0 16 0 r y . 5 6 5 0 0 16 8 0 0 0 0 0 0 Slow
    0x4d 0 dc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 0 0 0 Slow
    ldd $path/glxgears (everything looks good, once again)
    linux-gate.so.1 => (0xb7f6c000)
    libGL.so.1 => /usr/lib/libGL.so.1 (0xb7efb000)
    libm.so.6 => /lib/libm.so.6 (0xb7ed5000)
    libc.so.6 => /lib/libc.so.6 (0xb7d8d000)
    libX11.so.6 => /usr/lib/libX11.so.6 (0xb7c70000)
    libXext.so.6 => /usr/lib/libXext.so.6 (0xb7c61000)
    libXxf86vm.so.1 => /usr/lib/libXxf86vm.so.1 (0xb7c5c000)
    libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0xb7c58000)
    libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0xb7c53000)
    libX11-xcb.so.1 => /usr/lib/libX11-xcb.so.1 (0xb7c51000)
    libxcb-glx.so.0 => /usr/lib/libxcb-glx.so.0 (0xb7c40000)
    libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb7c27000)
    libdrm.so.2 => /usr/lib/libdrm.so.2 (0xb7c1e000)
    libpthread.so.0 => /lib/libpthread.so.0 (0xb7c05000)
    libdl.so.2 => /lib/libdl.so.2 (0xb7c01000)
    /lib/ld-linux.so.2 (0xb7f6d000)
    libXau.so.6 => /usr/lib/libXau.so.6 (0xb7bfe000)
    libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb7bf9000)
    librt.so.1 => /lib/librt.so.1 (0xb7bf0000)
    name of display: :0.0
    display: :0 screen: 0
    direct rendering: Yes
    server glx vendor string: SGI
    server glx version string: 1.2
    server glx extensions:
    GLX_ARB_multisample, GLX_EXT_import_context, GLX_EXT_texture_from_pixmap,
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_OML_swap_method,
    GLX_SGI_swap_control, GLX_SGIS_multisample, GLX_SGIX_fbconfig,
    GLX_SGIX_visual_select_group
    client glx vendor string: SGI
    client glx version string: 1.4
    client glx extensions:
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_allocate_memory,
    GLX_MESA_copy_sub_buffer, GLX_MESA_swap_control,
    GLX_MESA_swap_frame_usage, GLX_OML_swap_method, GLX_OML_sync_control,
    GLX_SGI_make_current_read, GLX_SGI_swap_control, GLX_SGI_video_sync,
    GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,
    GLX_SGIX_visual_select_group, GLX_EXT_texture_from_pixmap
    GLX version: 1.2
    GLX extensions:
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_swap_control,
    GLX_MESA_swap_frame_usage, GLX_OML_swap_method, GLX_SGI_swap_control,
    GLX_SGI_video_sync, GLX_SGIS_multisample, GLX_SGIX_fbconfig,
    GLX_SGIX_visual_select_group
    OpenGL vendor string: Gareth Hughes, Leif Delgass, José Fonseca
    OpenGL renderer string: Mesa DRI Mach64 [Rage Pro] 20051019 AGP 2x x86/MMX
    OpenGL version string: 1.2 Mesa 7.4.4
    OpenGL extensions:
    GL_ARB_imaging, GL_ARB_multisample, GL_ARB_multitexture,
    GL_ARB_transpose_matrix, GL_ARB_vertex_buffer_object, GL_ARB_window_pos,
    GL_EXT_abgr, GL_EXT_bgra, GL_EXT_blend_color, GL_EXT_blend_logic_op,
    GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_clip_volume_hint,
    GL_EXT_compiled_vertex_array, GL_EXT_convolution, GL_EXT_copy_texture,
    GL_EXT_draw_range_elements, GL_EXT_histogram, GL_EXT_packed_pixels,
    GL_EXT_polygon_offset, GL_EXT_rescale_normal,
    GL_EXT_separate_specular_color, GL_EXT_subtexture, GL_EXT_texture,
    GL_EXT_texture3D, GL_EXT_texture_edge_clamp, GL_EXT_texture_object,
    GL_EXT_vertex_array, GL_APPLE_packed_pixels, GL_IBM_rasterpos_clip,
    GL_MESA_ycbcr_texture, GL_MESA_window_pos, GL_NV_light_max_exponent,
    GL_NV_texgen_reflection, GL_OES_read_format, GL_SGI_color_matrix,
    GL_SGI_color_table, GL_SGIS_generate_mipmap, GL_SGIS_texture_edge_clamp,
    GL_SGIS_texture_lod
    16 GLX Visuals
    visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav
    id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat
    0x21 16 tc 0 16 0 r y . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
    0x22 16 dc 0 16 0 r y . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
    0x4e 16 tc 0 16 0 r . . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
    0x4f 16 tc 0 16 0 r . . 5 6 5 0 0 16 0 16 16 16 0 0 0 Slow
    0x50 16 tc 0 16 0 r y . 5 6 5 0 0 16 0 16 16 16 0 0 0 Slow
    0x51 16 tc 0 16 0 r . . 5 6 5 0 0 16 8 0 0 0 0 0 0 Slow
    0x52 16 tc 0 16 0 r . . 5 6 5 0 0 16 8 16 16 16 0 0 0 Slow
    0x53 16 tc 0 16 0 r y . 5 6 5 0 0 16 8 0 0 0 0 0 0 Slow
    0x54 16 tc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 0 0 0 Slow
    0x55 16 dc 0 16 0 r . . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
    0x56 16 dc 0 16 0 r . . 5 6 5 0 0 16 0 16 16 16 0 0 0 Slow
    0x57 16 dc 0 16 0 r y . 5 6 5 0 0 16 0 16 16 16 0 0 0 Slow
    0x58 16 dc 0 16 0 r . . 5 6 5 0 0 16 8 0 0 0 0 0 0 Slow
    0x59 16 dc 0 16 0 r . . 5 6 5 0 0 16 8 16 16 16 0 0 0 Slow
    0x5a 16 dc 0 16 0 r y . 5 6 5 0 0 16 8 0 0 0 0 0 0 Slow
    0x5b 16 dc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 0 0 0 Slow
    16 GLXFBConfigs:
    visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav
    id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat
    0x3e 0 tc 0 16 0 r . . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
    0x3f 0 tc 0 16 0 r . . 5 6 5 0 0 16 0 16 16 16 0 0 0 Slow
    0x40 0 tc 0 16 0 r y . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
    0x41 0 tc 0 16 0 r y . 5 6 5 0 0 16 0 16 16 16 0 0 0 Slow
    0x42 0 tc 0 16 0 r . . 5 6 5 0 0 16 8 0 0 0 0 0 0 Slow
    0x43 0 tc 0 16 0 r . . 5 6 5 0 0 16 8 16 16 16 0 0 0 Slow
    0x44 0 tc 0 16 0 r y . 5 6 5 0 0 16 8 0 0 0 0 0 0 Slow
    0x45 0 tc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 0 0 0 Slow
    0x46 0 dc 0 16 0 r . . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
    0x47 0 dc 0 16 0 r . . 5 6 5 0 0 16 0 16 16 16 0 0 0 Slow
    0x48 0 dc 0 16 0 r y . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
    0x49 0 dc 0 16 0 r y . 5 6 5 0 0 16 0 16 16 16 0 0 0 Slow
    0x4a 0 dc 0 16 0 r . . 5 6 5 0 0 16 8 0 0 0 0 0 0 Slow
    0x4b 0 dc 0 16 0 r . . 5 6 5 0 0 16 8 16 16 16 0 0 0 Slow
    0x4c 0 dc 0 16 0 r y . 5 6 5 0 0 16 8 0 0 0 0 0 0 Slow
    0x4d 0 dc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 0 0 0 Slow
    glxgears (here's where it just crashes, though X continues to function just fine...)
    Note1: I get roughly the same problem using any applications that use GL
    Note2: The error for the drirc isn't a fatal error, so isn't a big deal in my experience.
    Note3: No seg fault reported in dmesg.
    libGL: XF86DRIGetClientDriverName: 6.7.0 mach64 (screen 0)
    libGL: OpenDriver: trying /usr/lib/xorg/modules/dri/tls/mach64_dri.so
    libGL: OpenDriver: trying /usr/lib/xorg/modules/dri/mach64_dri.so
    drmOpenDevice: node name is /dev/dri/card0
    drmOpenDevice: open result is 4, (OK)
    drmOpenByBusid: Searching for BusID pci:0000:01:00.0
    drmOpenDevice: node name is /dev/dri/card0
    drmOpenDevice: open result is 4, (OK)
    drmOpenByBusid: drmOpenMinor returns 4
    drmOpenByBusid: drmGetBusid reports pci:0000:01:00.0
    libGL error:
    Can't open configuration file /etc/drirc: No such file or directory.
    libGL error:
    Can't open configuration file /root/.drirc: No such file or directory.
    *** glibc detected *** glxgears: free(): invalid next size (fast): 0x097031d8 ***
    ======= Backtrace: =========
    /lib/libc.so.6[0xb7f12281]
    /lib/libc.so.6[0xb7f139ba]
    /lib/libc.so.6(cfree+0x6d)[0xb7f16abd]
    /usr/lib/libX11.so.6(_XReply+0x2c7)[0xb7dcd667]
    /usr/lib/libGL.so.1(XF86DRICreateDrawable+0x9c)[0xb8052d3c]
    /usr/lib/libGL.so.1[0xb80524f3]
    /usr/lib/libGL.so.1[0xb802f50e]
    /usr/lib/libGL.so.1(glXMakeCurrentReadSGI+0xaa)[0xb802f78a]
    /usr/lib/libGL.so.1(glXMakeCurrent+0x23)[0xb802faf3]
    glxgears[0x804a35e]
    /lib/libc.so.6(__libc_start_main+0xe6)[0xb7ebca36]
    glxgears[0x8049101]
    ======= Memory map: ========
    08048000-0804c000 r-xp 00000000 08:02 66014 /usr/bin/glxgears
    0804c000-0804d000 rwxp 00003000 08:02 66014 /usr/bin/glxgears
    0949d000-09717000 rwxp 00000000 00:00 0 [heap]
    b2f00000-b2f21000 rwxp 00000000 00:00 0
    b2f21000-b3000000 ---p 00000000 00:00 0
    b30be000-b30db000 r-xp 00000000 08:02 6925 /usr/lib/libgcc_s.so.1
    b30db000-b30dc000 rwxp 0001c000 08:02 6925 /usr/lib/libgcc_s.so.1
    b30e7000-b339b000 rwxp 00000000 00:00 0
    b339b000-b709b000 rwxs 18204000 00:0c 5948 /dev/dri/card0
    b709b000-b729b000 rwxs 18004000 00:0c 5948 /dev/dri/card0
    b729b000-b7a9b000 rwxs fd000000 00:0c 5948 /dev/dri/card0
    b7a9b000-b7abf000 r-xp 00000000 08:02 34101 /usr/lib/libexpat.so.1.5.2
    b7abf000-b7ac1000 rwxp 00023000 08:02 34101 /usr/lib/libexpat.so.1.5.2
    b7ac1000-b7c9a000 r-xp 00000000 08:02 59243 /usr/lib/xorg/modules/dri/libdricore.so
    b7c9a000-b7cae000 rwxp 001d9000 08:02 59243 /usr/lib/xorg/modules/dri/libdricore.so
    b7cae000-b7cb9000 rwxp 00000000 00:00 0
    b7cb9000-b7d04000 r-xp 00000000 08:02 60911 /usr/lib/xorg/modules/dri/mach64_dri.so
    b7d04000-b7d06000 rwxp 0004a000 08:02 60911 /usr/lib/xorg/modules/dri/mach64_dri.so
    b7d06000-b7d09000 rwxp 00000000 00:00 0
    b7bb0000-b7bb7000 r-xp 00000000 08:02 2676 /lib/librt-2.10.1.so
    b7bb7000-b7bb8000 r-xp 00006000 08:02 2676 /lib/librt-2.10.1.so
    b7bb8000-b7bb9000 rwxp 00007000 08:02 2676 /lib/librt-2.10.1.so
    b7bb9000-b7bbd000 r-xp 00000000 08:02 34750 /usr/lib/libXdmcp.so.6.0.0
    b7bbd000-b7bbe000 rwxp 00003000 08:02 34750 /usr/lib/libXdmcp.so.6.0.0
    b7bbe000-b7bc0000 r-xp 00000000 08:02 34742 /usr/lib/libXau.so.6.0.0
    b7bc0000-b7bc1000 rwxp 00001000 08:02 34742 /usr/lib/libXau.so.6.0.0
    b7bc1000-b7bc3000 r-xp 00000000 08:02 2687 /lib/libdl-2.10.1.so
    b7bc3000-b7bc4000 r-xp 00001000 08:02 2687 /lib/libdl-2.10.1.so
    b7bc4000-b7bc5000 rwxp 00002000 08:02 2687 /lib/libdl-2.10.1.so
    b7bc5000-b7bd9000 r-xp 00000000 08:02 2673 /lib/libpthread-2.10.1.so
    b7bd9000-b7bda000 r-xp 00014000 08:02 2673 /lib/libpthread-2.10.1.so
    b7bda000-b7bdb000 rwxp 00015000 08:02 2673 /lib/libpthread-2.10.1.so
    b7bdb000-b7bde000 rwxp 00000000 00:00 0
    b7bde000-b7be6000 r-xp 00000000 08:02 59196 /usr/lib/libdrm.so.2.4.0
    b7be6000-b7be7000 rwxp 00008000 08:02 59196 /usr/lib/libdrm.so.2.4.0
    b7be7000-b7bff000 r-xp 00000000 08:02 34843 /usr/lib/libxcb.so.1.1.0
    b7bff000-b7c00000 rwxp 00017000 08:02 34843 /usr/lib/libxcb.so.1.1.0
    b7c00000-b7c10000 r-xp 00000000 08:02 34851 /usr/lib/libxcb-glx.so.0.0.0
    b7c10000-b7c11000 rwxp 00010000 08:02 34851 /usr/lib/libxcb-glx.so.0.0.0
    b7c11000-b7c12000 r-xp 00000000 08:02 36038 /usr/lib/libX11-xcb.so.1.0.0
    b7c12000-b7c13000 rwxp 00000000 08:02 36038 /usr/lib/libX11-xcb.so.1.0.0
    b7c13000-b7c17000 r-xp 00000000 08:02 59215 /usr/lib/libXfixes.so.3.1.0
    b7c17000-b7c18000 rwxp 00003000 08:02 59215 /usr/lib/libXfixes.so.3.1.0
    b7c18000-b7c1a000 r-xp 00000000 08:02 59234 /usr/lib/libXdamage.so.1.1.0
    b7c1a000-b7c1b000 rwxp 00001000 08:02 59234 /usr/lib/libXdamage.so.1.1.0
    b7c1b000-b7c1c000 rwxp 00000000 00:00 0
    b7c1c000-b7c20000 r-xp 00000000 08:02 58625 /usr/lib/libXxf86vm.so.1.0.0
    b7c20000-b7c21000 rwxp 00003000 08:02 58625 /usr/lib/libXxf86vm.so.1.0.0
    b7c21000-b7c2f000 r-xp 00000000 08:02 57974 /usr/lib/libXext.so.6.4.0
    b7c2f000-b7c30000 rwxp 0000d000 08:02 57974 /usr/lib/libXext.so.6.4.0
    b7c30000-b7d49000 r-xp 00000000 08:02 36044 Aborted
    So there it is.  I'm using the latest and greatest archlinux has to offer.  I've followed every wiki, and every forum post since 2004 that relates to DRI on the Mach64 on linux.  I've spent a solid 5 days on this, and can't resolve it.
    I believe the problem to solve is this error:
    *** glibc detected *** glxgears: free(): invalid next size (fast): 0x097031d8 ***
    I also believe it's related to this reported bug:
    http://bugs.archlinux.org/task/15354
    Although, he was able to solve the problem by using newer drivers for his video card... I believe that the ones available in extra for the mach64 card actually are the latest.
    I'm not a C guru (I'm more of a java guy), so memory management isn't my thing.  I don't believe that I could hack the source to solve any memory allocation errors (even if I could find the specific source file to modify). 
    Perhaps I should try recompiling the mach64 drivers using the new mesa?  I don't actually know enough about that to know where to start, but it's the best idea I have.
    The more I look into the problem, the more it appears to be a mach64 driver problem related to memory mismanagement.
    Note:  I can get this to work in Debian Lenny, so it is possible.
    UPDATE: I can't figure out how to compile xf86-video-mach64... I can get the latest with git, but it doesn't seem to include a Makefile... so I'm stumped. 
    UPDATE2: Ok, I got them to compile (had to use autogen.sh), but it didn't solve my problem... So I'm onto recompiling mesa from git...  I'm currently stuck on:
    makedepend: command not found
    Ideas welcome.
    Last edited by Daemonjax (2009-07-06 02:43:56)

  • Installation failed when using Jumpstart Server to install SUN Netra T1 200

    I have a problem to install a couple of Sun Netra T1 200 Servers with a Jumpstart Server. The Jumpstart Server is set up and I have executed the add_install_client Script. If I boot the Server which should to be installed the server crashes after getting the assigned IP-Address with a software fault.
    Attached i will sent the Jumpstart-Client-Output and the config Files of the Jumpstart-Server.
    ****Netra T1 Server Output, while configured as an Jumpstart client:****
    ok boot net -install
    Resetti
    LOM event: +2h28m47s host reset
    ng ...
    `
    Netra T1 200 (UltraSPARC-IIe 500MHz), No Keyboard
    OpenBoot 4.0, 1024 MB memory installed, Serial #16692502.
    Ethernet address 8:0:20:fe:b5:16, Host ID: 80feb516.
    Executing last command: boot net -install
    Boot device: /pci@1f,0/pci@1,1/network@c,1 File and args: -install
    Timeout waiting for ARP/RARP packet
    Timeout waiting for ARP/RARP packet
    Timeout waiting for ARP/RARP packet
    Timeout waiting for ARP/RARP packet
    2ae00 Warning: boot will not enable cache
    Requesting Internet address for 8:0:20:fe:b5:16
    Enter filename [kernel/sparcv9/unix]:
    Enter default directory for modules [platform/SUNW,UltraAX-i2/kernel /platform/sun4u/kernel /kernel /usr/kernel]:
    SunOS Release 5.8 Version Generic_108528-13 64-bit
    Copyright 1983-2001 Sun Microsystems, Inc. All rights reserved.
    whoami: no domain name
    panic[cpu0]/thread=300010a9ba0: Can't invoke , error 2
    000002a1000f7a40 genunix:icode+274 (ffbefff0, 0, 300010a7b88, 0, ffbefffc, ffffffffffffffff)
    %l0-3: 00000000ffbefffc 0000000000000000 0000000000002000 000002a10000fd20
    %l4-7: 0000000000000bb8 0000000010423a00 000000001041b2f8 00000000000007a9
    syncing file systems... done
    skipping system dump - no dump device configured
    rebooting...
    Resetti
    LOM event: +2h36m51s host reset
    ng ...
    p
    Netra T1 200 (UltraSPARC-IIe 500MHz), No Keyboard
    OpenBoot 4.0, 1024 MB memory installed, Serial #16692502.
    Ethernet address 8:0:20:fe:b5:16, Host ID: 80feb516.
    Executing last command: boot
    Boot device: disk File and args:
    SunOS Release 5.8 Version Generic_108528-13 64-bit
    Copyright 1983-2001 Sun Microsystems, Inc. All rights reserved.
    configuring IPv4 interfaces: eri0.
    Hostname: infrasrv
    The system is coming up. Please wait.
    checking ufs filesystems
    /dev/rdsk/c1t0d0s4: is stable.
    /dev/rdsk/c1t0d0s6: is stable.
    Starting IPv4 routing daemon.
    starting rpc services: rpcbind done.
    Setting netmask of eri0 to 255.255.255.0
    Setting default IPv4 interface for multicast: add net 224.0/4: gateway infrasrv
    syslog service starting.
    Print services started.
    Jun 26 04:48:14 infrasrv sendmail[220]: My unqualified host name (infrasrv) unknown; sleeping for retry
    volume management starting.
    The system is ready.
    infrasrv console login: root
    Password:
    Last login: Thu Jun 26 02:13:59 on console
    Jun 26 04:48:24 infrasrv login: ROOT LOGIN /dev/console
    Sun Microsystems Inc. SunOS 5.8 Generic Patch October 2001
    Sun Microsystems Inc. SunOS 5.8 Generic Patch October 2001
    # uname -i
    SUNW,UltraAX-i2
    # ^[[A
    ^[[A: not found
    # uname -m
    sun4u
    *****Config Files of the Jumpstart-Server******************
    Sysidcfg
    bootparams
    bash-2.03# more bootparams
    infrasrv  root=adminws:/cdrom/sol_8_202_sparc/s0/Solaris_8/Tools/Boot install=ad
    minws:/export/install boottype=:in sysid_config=adminws:/export/sysidcfg install
    _config=adminws:/export/config rootopts=:rsize=32768
    bash-2.03#
    rules
    bash-2.03# more rules
    #       @(#)rules 1.12 94/07/27 SMI
    # The rules file is a text file used to create the rules.ok file for
    # a custom JumpStart installation. The rules file is a lookup table
    # consisting of one or more rules that define matches between system
    # attributes and profiles.
    # This example rules file contains:
    #   o syntax of a rule used in the rules file
    #   o rule_keyword and rule_value descriptions
    #   o rule examples
    # See the installation manual for a complete description of the rules file.
    # RULE SYNTAX:
    # [!]rule_keyword rule_value [&& [!]rule_keyword rule_value]... begin profile fi
    # nish
    # "[ ]" indicates an optional expression or field
    # "..." indicates the preceding expression may be repeated
    # "&&" used to "logically AND" rule_keyword and rule_value pairs together
    # "!" indicates negation of the following rule_keyword
    # rule_keyword a predefined keyword that describes a general system
    # attribute. It is used with the rule_value to match a
    # system with the same attribute to a profile.
    # rule_value a value that provides the specific system attribute
    # for the corresponding rule_keyword. A rule_value can
    # be text or a range of values (NN-MM).
    # To match a range of values, a system's value must be
    # greater than or equal to NN and less than or equal to MM.
    # begin a file name of an optional Bourne shell script
    # that will be executed before the installation begins.
    # If no begin script exists, you must enter a minus sign (-)
    # in this field.
    # profile a file name of a text file used as a template by the
    # custom JumpStart installation software that defines how
    # to install Solaris on a system.
    # finish a file name of an optional Bourne shell script
    # that will be executed after the installation completes.
    # If no finish script exists, you must enter a minus sign (-)
    # in this field.
    # Notes:
    # 1. You can add comments after the pound sign (#) anywhere on a line.
    # 2. Rules are matched in descending order: first rule through the last rule.
    # 3. Rules can be continued to a new line by using the backslash (\) before
    # the carriage return.
    # 4. Don't use the "*" character or other shell wildcards, because the rules
    # file is interpreted by a Bourne shell script.
    # RULE_KEYWORD AND RULE_VALUE DESCRIPTIONS
    # rule_keyword rule_value Type rule_value Description
    # any minus sign (-) always matches
    # arch text system's architecture type
    # domainname text system's domain name
    # disksize text range system's disk size
    # disk device name (text)
    # disk size (MBytes range)
    # hostname text system's host name
    # installed text text system's installed version of Solaris
    # disk device name (text)
    # OS release (text)
    # karch text system's kernel architecture
    # memsize range system's memory size (MBytes range)
    # model 'text' system's model number
    # network text system's IP address
    # totaldisk range system's total disk size (MBytes range)
    # RULE EXAMPLES
    # The following rule matches only one system:
    # hostname sample_host - host_class set_root_pw
    # The following rule matches any system that is on the 924.222.43.0 network
    # and has the sun4c kernel architecture:
    # Note: The backslash (\) is used to continue the rule to a new line.
    #network 924.222.43.0 && \
    # karch sun4c - net924_sun4c -
    # The following rule matches any sparc system with a c0t3d0 disk that is
    # between 400 to 600 MBytes and has Solaris 2.1 installed on it:
    #arch sparc && \
    # disksize c0t3d0 400-600 && \
    # installed c0t3d0s0 solaris_2.1 - upgrade -
    # The following rule matches all x86 systems:
    #arch i386 x86-begin x86-class -
    # The following rule matches any system:
    #any - - any_machine -
    hostname infrasrv - infrasrv_class -
    hostname msm_srv1 - msm_srv_class -
    hostname msm_srv2 - msm_srv_class -
    bash-2.03#
    class
    bash-2.03# more infrasrv_class
    install_type initial_install
    system_type standalone
    partitioning explicit
    filesys c0t0d0s0 2048 /
    filesys c0t0d0s1 10
    filesys c0t0d0s3 1024 swap
    filesys c0t0d0s4 2048 /var
    filesys c0t0d0s5 2048 /opt
    filesys c0t0d0s6 free /export
    cluster SUNWCXall
    bash-2.03# more msm_srv_class
    install_type initial_install
    system_type standalone
    partitioning explicit
    filesys c0t0d0s0 2048 /
    filesys c0t0d0s1 10
    filesys c0t0d0s3 1024 swap
    filesys c0t0d0s4 2048 /var
    filesys c0t0d0s5 free /opt
    cluster SUNWCXall
    bash-2.03#
    ethers
    bash-2.03# more ethers
    8:00:20:fe:b5:16 infrasrv
    bash-2.03#
    hosts
    bash-2.03# more hosts
    # Internet host table
    127.0.0.1 localhost
    192.168.0.220 adminws loghost
    192.168.0.210 infrasrv
    192.168.0.200 tc
    bash-2.03#
    dfstab
    bash-2.03# more dfstab
    # Place share(1M) commands here for automatic execution
    # on entering init state 3.
    # Issue the command '/etc/init.d/nfs.server start' to run the NFS
    # daemon processes and the share commands, after adding the very
    # first entry to this file.
    # share [-F fstype] [ -o options] [-d "<text>"] <pathname> [resource]
    # .e.g,
    # share -F nfs -o rw=engineering -d "home dirs" /export/home2
    share -d "jumpstart conf dir" /export/config
    share -F nfs -o ro,anon=0 /export/install
    share -F nfs -o ro,anon=0 /cdrom/sol_8_202_sparc/s0/Solaris_8/Tools/Boot
    bash-2.03#
    tftpboot
    bash-2.03# pwd
    /tftpboot
    bash-2.03# ls -al
    total 348
    drwxrwxr-x 2 root other 512 Jun 26 11:45 .
    drwxr-xr-x 24 root root 512 Jun 26 11:45 ..
    lrwxrwxrwx 1 root other 26 Jun 26 11:45 C0A800D2 -> inetboot.SUN4U.Solaris_8-1
    lrwxrwxrwx 1 root other 26 Jun 26 11:45 C0A800D2.SUN4U -> inetboot.SUN4U.Solaris_8-1
    -rwxr-xr-x 1 root other 159416 Jun 26 11:45 inetboot.SUN4U.Solaris_8-1
    -rw-r--r-- 1 root other 318 Jun 26 11:45 rm.192.168.0.210
    lrwxrwxrwx 1 root other 1 Jun 26 11:45 tftpboot -> .
    bash-2.03#

    Hi,
    It seems to me that you have not created a proper sysidcfg file. From your post, it looks to me like your sysidcfg contains no entries. This is why it prompts you to enter the kernel path. Look on docs.sun.com for a guide to creating the sysidcfg file .

  • Sun Directory Server 5.2 installation problem on AIX 5.2

    Hi,
    Am newbie to sun ds5.2 and I got stuck during installation for last 2 days. Could you pls guide to resolve this issue. Please error msg below
    Checking disk space...
    The following items for the product Directory Server will be installed:
    Product: Directory Server
    Location: /Sun/mps
    Space Required: 141.70 MB
    Sun ONE Directory Suite
    Sun ONE Directory Server
    Sun ONE Directory Console Support
    Sun ONE Administration Services
    Sun ONE Administration Server
    Sun ONE Administration Console
    Sun ONE Server Console
    Sun ONE Server Console Core
    Java Runtime Environment
    Sun ONE Server Basic Libraries
    Ready to Install
    1. Install Now
    2. Start Over
    3. Exit Installation
    What would you like to do [1] {"<" goes back, "!" exits}? 1
    Installing Directory Server
    |-1%--------------25%-----------------50%-----------------75%--------------100%|
    [slapd-bmpdev4]: starting up server ...
    error:server:The server could not be started due to invalid command syntax or
    operating system resource limits.
    system_errno:2
    Configuration of the Directory Server failed.
    Warning creating dbswitch.conf
    Warning creating ssusers.conf
    Error Directory Server configuration failure
    Checking connection to the Configuration Directory Server... failed.
    The Admininistration Server cannot be configured.
    Error Administration Server configuration failure
    Error Configuration of the server(s) failed.
    Installation Details:
    Product Result More Information
    1. Directory Server Partially Installed. Refer to "Details..." for more
    information. Available
    2. Done
    Enter the number corresponding to the desired selection for more
    information, or enter 2 to continue [2] {"!" exits}: 2
    thanks
    Bala

    You are correct. Dir 5.2 is not certified for AIX 5.2. It does install though. Like a previous reponse stated. Check the permissions for the user you are installing with and the file system you are installing to. Make certain you have enough disk space. My install took 150 MB of disk space. Finally, Dir 5.2 creates the file "/var/adm/sw/productregistry" during install. If you do not have permissions to /var/adm/sw, you may have troubles.
    Tim
    Computer Systems Engineer
    Komatsu Canada Limited

  • SUN ONE Directory Server installation Problem on Win XP

    Can some one look at the installation error on WIndows XP
    ERROR: Ldap authentication failed for url ldap://santoshlaptop.cook.com:51303/o=NetscapeRoot user id admin (151:Unknown error.)
    Fatal Slapd Did not add Directory Server information to Configuration Server.
    Configuration of the Directory Server failed.
    Error Directory Server configuration failure
    Checking connection to the Configuration Directory Server... failed.
    The Admininistration Server cannot be configured.
    Error Administration Server configuration failure
    Error Configuration of the server(s) failed
    Thanks a lot
    Santosh

    HI everyone,
    I tried installing directory server 5.2 p4 on WIN XP Professional machine and got the following error:
    [slapd-Teja]: starting up server ...
    [slapd-Teja]: [22/Sep/2006:13:25:52 -0400] - Sun Java(TM) System Directory Server/5.2_Patch_4 B2005.230.0301 (32-bit) starting up
    [slapd-Teja]: [22/Sep/2006:13:25:54 -0400] - Listening on all interfaces port 30145 for LDAP requests
    [slapd-Teja]: [22/Sep/2006:13:25:54 -0400] - slapd started.
    Your new directory server has been started.
    Created new Directory Server
    Start Slapd Starting Slapd server configuration.
    ERROR: Ldap authentication failed for url ldap://ldapteja.hcs.com:30145/o=NetscapeRoot user id admin (151:Unknown error.)
    Fatal Slapd Did not add Directory Server information to Configuration Server.
    Configuration of the Directory Server failed.
    Error Directory Server configuration failure
    Checking connection to the Configuration Directory Server... done.
    Registering Administration Server with Configuration Directory Server... done.
    Loading Administration Server tasks... done.
    Loading global Administration Server configuration... done.
    Generating configuration files ... done.
    Writing Administration Server keys to the Windows registry... done.
    Configuration of the Administration Server succeeded.
    Administration server started properly.
    Error Configuration of the server(s) failed.
    Click Next to continue.
    In fact I did install 5.2 before on my machine but I think it was 5.2 p2. I then installed 5.1 on the same machine.. as the machine was running slow I uninstalled both 5.1 and 5.2 as well.. but from then on I cannot install 5.2 on my lasptop .. can please suggest me some thing that can fix this problem..
    I had this in my host file
    192.168.1.107 Teja.hcs.com..
    Any help is reatly appreciated ..

  • Replace Quotes, Connection Pooling, and Sun Web Server with MySQL, Oracle

    This is code I use to insert data into my MySQL and Oracle databases.
    I takes care of quotes and shows use of context, i.e. when you use Sun Web Server's
    ConnectionPooling. This code works. Feel free to reply if you have questions on how to set up connection pooling using Sun Web Server 6.1SP - it took quite a long time to learn and I couldn't find much information throughout the web, so I hope this helps...
    This is not a question and I am not looking for an answer, but please post comments or suggestions.
    dailysun
    This is in one class where I have a hashtable containing the
    column name / value pairs that I want to enter into my table.
    This class simply creates the SQL string from the values in the
    hashtable. It then passes that hashtable including the database
    name to a class which executes that sql statement (second code
    portion).
    /* Insert data into sf_parts. Create the column strings from
             * the provided hash table. Be sure to parse out hash elements which
             * are used for the createTemplate process
            StringBuffer values = new StringBuffer();
            StringBuffer fields = new StringBuffer();
            Enumeration keys = fieldHash.keys();
            while(keys.hasMoreElements()){
                Object currentKey = keys.nextElement();
                    String fieldValue = (String) fieldHash.get(currentKey);
                    if(values.length() >0){
                        values.append(",");
                    values.append("'"+fieldValue.replaceAll("'","''")+"'"); // Takes care of quotes and various other special characters!
                    if(fields.length() >0){
                        fields.append(",");
                    fields.append(currentKey);
            sql = "INSERT INTO myTable (" + fields.toString() + ") VALUES (" + values.toString() + ");";
            String insertResult = caq.getInsertDelete(sql,"myDatabaseName"); // your database name is defined in web.xml and sun-web.xml when you use Sun Web Server's Connection Pooling.
            returnValue += "<br><br><b>Rows inserted into table(myTable): </b>" + insertResult + "<br>\n";
            And, like I describe above, this method executes the sql statement.
         * Takes care of insert, update and delete requests.
         * Must have set both dbName as well as the sql String.
         * Will return number of rows affected as String.
         * @return String Number of rows affected
         * @exception SQLException
         * @exception Exception
        public String getInsertDelete() {
            checkData(); // this simply checks if the variables dbName and sql are not empty ;-)
            InitialContext initContext = null;
            int rv = 0;
            try{
                // Get connection from configured pool
                initContext = new InitialContext();
                source = (DataSource) initContext.lookup("java:comp/env/jdbc/" + dbName); // I have this set up in web.xml and sun-web.xml (I use Sun Web Server 6.1SP which does connection pooling for me)
                conn = source.getConnection();
                if(conn != null){
                    stmt = conn.createStatement();
                    rv = stmt.executeUpdate(sql);
            }catch (SQLException e){
                // do something
            }catch (Exception e){
                // do something
            }finally{
                try{
                    stmt.close();
                }catch(Exception e){
                    // do something
                try{
                    conn.close();
                }catch(Exception e){
                    // do something
                try{
                    initContext.close();
                }catch(Exception e){
                    // do something
            return rv+"";
        }  

    This is code I use to insert data into my MySQL and
    Oracle databases.
    I takes care of quotes and shows use of context, i.e.
    when you use Sun Web Server's
    ConnectionPooling. This code works. Feel free to
    reply if you have questions on how to set up
    connection pooling using Sun Web Server 6.1SP - it
    took quite a long time to learn and I couldn't find
    much information throughout the web, so I hope this
    helps...
    This is not a question and I am not looking for an
    answer, but please post comments or suggestions.Using prepared statements would mean that you wouldn't have to worry about quotes.
    You should be closing the result set.
    You are handling all fields as strings. That won't work with time fields and might not work for numeric fields.
    Presumably most of your variables are member variables. They should be local variables because that is the scope of the usage.
    You must do something with the exceptions.
    Hashtables although convienent mean that problems with usage can only be resolved at run time rather than compile time.

  • How to install oracle 9i report server on sun sparc 280 system

    hello to all
    may i get any help to install report server on the sun sparc 280 R system which is running oracle 9i database,forms and reports
    thanks in adv.
    Mohan

    hello,
    what kind of information are you looing for abve and beyond whats documented in the install guide for the particular platforms.
    thanks,
    ph.

  • Exception not always caught in Sun Studio 12

    Hi,
    We're using Sun Studio 12 (Sun C++ 5.9 SunOS_sparc Patch 124863-01 2007/07/25) on a Solaris 10 SPARC machine. In our applications an exception thrown is sometimes not caught in the try/catch statement and the program continues at an outer catch statement (which usually leads to the program exiting). So far I've not been able to reduce the code down to a simple example and I don't yet know what conditions causes this behaviour.
    In general the code has a big try/catch statement in main. Somewhere deep in the code there is a second try/catch statement which protects against a piece of code which we know may throw an exception. This is usually a smart pointer being dereferenced. The act of dereferencing the smart pointer in turn causes an exception to be thrown which is caught internally in a third try/catch inside the dereference code. The exception is successfully caught and some clean up is done. Then the exception is re-thrown by either using a throw; statement or a new throw xmsg("...");. All our exceptions are always of type xmsg which simply takes a string argument.
    When the problem manifests itself the second try/catch is ignored and the re-thrown exception is instead caught in the outer catch statement in main which causes the program to log an error and exit.
    We have lots of code which is structured the same way and the same style of code works in many cases only to fail in some specific case. It's an elusive problem because the problem moves around and it also depends on how the program is compiled. It only seems to happen when compiled in debug mode. If I compile with -xO4 the problem seems to go away.
    The problem also goes away or moves to a different place if the code has changed somewhere between compiles, i.e. some other developer has modified some code, not necessarily in the same are where the problem originally happened.
    One thing we have is a function we call DoThrow (used to suppress a warning on an older compiler) defined like this:
    void DoThrow(const std::string& msg)
      throw xmsg(msg);
    }As an experiment I replaced the call to DoThrow with a straight throw xmsg(...) at a place where the first exception was thrown and the problem went away. I'm not sure if removing the call to DoThrow fixed the problem or if the minor restructuring of the code was enough to move the problem elsewhere.
    For production releases we still use WorkShop 6, update 2 which does not have any problems like this. We really would like to upgrade to Sun Studio 12 because it's a much better compiler over all. We can't upgrade until we feel confident we have a workaround.
    Does anyone have any thoughts on what might be wrong or any ideas on what I can do to narrow down the problem?
    Thanks,
    Krister

    Many thanks. You've given me a few areas to focus on and I'll bring my house in order.
    The only external C++ library we depend on is STLport 5.0.2 which we compile ourselves. It's currently compiled with 5.3 on Solaris 8 and I will recompile it with 5.9 on Solaris 10. All other external libraries are C libraries. Our own code is put in static libraries and linked statically. I've read that exceptions thrown in shared libraries can be problematic.
    Your comment about complex conditional expressions (a ? f() : g()) is interesting. We've been bitten before by compiler bugs affecting those types of expressions. Destructors called twice or destructors called for temporaries never created. We may still have some conditional expressions like that.
    The exception is of type xmsg, defined this way:
    class xmsg
      public:
        xmsg(const char* s) : _msg(s) {}
        xmsg(const std::string& s) : _msg(s) {}
        const std::string& why() const { return _msg; }
      private:
        const std::string _msg;
    };There are three catch blocks involved and all the try/catch statement look like this:
    try
    catch(const xmsg& msg)
    }Here is a stack trace from dbx at the point where the exception is thrown the first time.
      [1] __exdbg_notify_of_throw(0xffbf4ae8, 0xffbf4ad0, 0x959b292c, 0xffff0000, 0x0, 0xfc00), at 0xfb6549b4
      [2] _ex_debug_handshake1(0x0, 0x101cb84, 0x1, 0x14ffc, 0xfb66a67c, 0xfb66ad38), at 0xfb655728
      [3] _ex_throw_body(0xfb66af80, 0x80b2ac, 0xfb66a67c, 0x14d9c, 0x0, 0xfb66af80), at 0xfb655934
      [4] __Crun::ex_throw(0xfb66afd0, 0x1460bf8, 0x7ead20, 0x0, 0x16538, 0x1), at 0xfb6558bc
    =>[5] TransportSource<User>::Activate(this = 0x1624810, r = CLASS, _ARG3 = CLASS), line 39 in "TransportSource.H"
      [6] Source<User>::DoActivate(this = 0x162486c, r = CLASS, e = CLASS), line 272 in "Factory.H"
      [7] BaseFactory::Load(this = 0x16020a8, e = CLASS), line 2799 in "BaseFactory.C"
      [8] GPAuthorizationSource::Load(this = 0x15d2440), line 110 in "GPAuthorization.C"
      [9] ExchangeServer::ExchangeServer(this = 0xffbfa95c, argc = 8, argv = 0xffbfbaec), line 380 in "exchangeServer.C"
      [10] main(argc = 8, argv = 0xffbfbaec), line 1525 in "exchangeServer.C"Here is the code for the Activate function in stack frame 5. The exception thrown is the second one.
        virtual T& Activate(const Reference& r, Exemplar<T>&)
          _transport->In().Write(r);
          DemarshallStream out;
          _transport->Method(Process::Activate, out);
          if(!out.Data())
         throw xmsg("Failed to call Activate on server " + _transport->Name());
          if(!out.GetBool())
         throw xmsg("Server returned error: " + out.GetString());
          const ClassHandle& h = out.GetClassHandle(&_connection);
          // don't need to pass refresh flag here because a call to Activate
          // means the object is being loaded for the first time.
          BaseExemplar* x = _handle.GetFactory().Demarshall(h, out, false,
         &_connection, this);
          BaseTransportSource::DoActivate(out);
          if(!x)
         throw xmsg("Failed to activate ref: " + r.ExternalValue());
          return static_cast<T&>(*x->GetInstance());
        }The exception is caught (frame 7 in the stack trace above) and re-thrown in the below code, at the last throw statement.
    void BaseFactory::Load(BaseExemplar& e)
      SourceMap::iterator p = _sources.find(&e._key->Type());
      if(p == _sources.end())
        throw xmsg("Factory<" + _handle.Name() + ">::Load - no source for: "
          + e._key->ExternalValue());
      AutoPointer<BaseGuard> g(Guard());
      std::list<BaseSource*>::iterator i = p->second.begin();
      while(true)
        try
          (*i)->_currentExemplar = &e;
          BO& x = (*i)->DoActivate(*e._key, e);
          (*i)->_currentExemplar = 0;
          if(!e._instance)
         e._instance = &x;
         Activate(e, ActivatedOld, 0);
          return;
        catch(const xmsg& msg)
          (*i)->_currentExemplar = 0;
          ++i;
          if(i == p->second.end())
         throw;
    }There is a second try/catch one level up (stack frame 8, the call to GPAuthorizationSource::Load). Here's a snippet of that piece of code.
        try
          const Exemplar<User>& user = UserFactory::Instance().CreateExemplar(
         *new UserReference(authorizationTable._login.Value()));
          *user;
        catch(const xmsg& msg)
          Logger::Instance() << LogHeader << MsgClass(MsgClass::Error)
         << "Error PMAutorizationSource: " << msg.why() << EndMsg;
        // ...I put a break-point in the catch block in the above code but I never hit the break point and the exception is caught in an outer try/catch, an error is printed and the program exits.
      try
      catch(const xmsg& msg)
        std::cerr << "ERROR: " << msg.why() << std::endl;
      }I'm sorry I have not yet been able to produce a smaller example that can be compiled and tested in isolation. I know that's important in order to track down the problem. It seems like the smallest change in seemingly unrelated parts of the code makes the problem come or go.

  • JATO 2.0 Licensing for Sun ONE Studio 4 Update 1 EE

    I have a serial number for Sun ONE Studio 4 EE which I'm also able to use
    for Sun ONE Studio 4 Update 1 EE. I downloaded JATO 2.0 as offered in the
    Studio Update Center. It asked for a serial number so I tried my Studio
    serial number but it didn't work. Should it have? Are you giving away JATO
    with the EE version of Studio?
    - Jim
    James Watkin
    The Anderson School at UCLA
    james.watkin@a...
    Voice: 1-310-825-5030
    Fax: 1-310-825-4835

    In order to compile from the IDE, you need a few things
    1. If the class is in a jar you must mount the jar in the filesystem -- that is, the jar file must be a top node (not under a node) in the Filesystems window. If this is not the case, use File > Mount Filesystem > Archive Files.
    2. If the class is not in a jar, mount the directory above the package root. For example, if you have c:\myWork\src\javax.microedition.lcdui.game then mount c:\myWork\src
    3. You have to either have an appropriate import statement or use the fully qualified class name.
    Import statement:
    import javax.microedition.lcdui.game.*;
    or
    javax.microedition.lcdui.game.someName x;
    More information about package problems can be found at http://swforum.sun.com/jive/thread.jspa?forumID=78&threadID=22820
    It has a web-tier bent but some of this info applies to Java apps.

  • Connect Laptop to Sun 5500

    Hello,
    I am new to Sun hardware, but have spent many many hours using the Solaris O/S. I have recently been asked to set up a lab for my team and was given a Sun 5500 as my first project. They have given me complete control to do whatever I want with it, but I am having trouble just getting started. This server has not been touched in quite some time and has no console attached to it. I believe this is called a "headless" server from what I've been reading. It does have the keyboard and mouse attached, though.
    Can anyone advise me on how to get a display up so that I can begin looking at this server?
    I would really like to just be able to connect my laptop to the server but have not been able to find much information on how to do this. I keep finding articles that explain how to connect the serial A db25 port from the clock board to a serial port on the laptop, but I have no serial port on my laptop.
    I started looking up part numbers found on the server's cards and figured out that I have a Sun/LSI graphics card with a female 13w3 port on it.
    If the laptop is not an option and I can actually round up a spare VGA monitor that works, can I get away with buying a male 13w3 to female db15 vga adapter? If so, can I use basically any VGA monitor?
    There is a Sun 6500 beside this one which has no console either, but does have what looks like a female db25 to rj45 adapter sitting in the rack. Would this be another option somehow?
    Thanks in advance!

    If you do have a graphics card in the server then you can use that. However, it would not be my first option as it is much easier and nicer to be able to use the console port. This way you can if you wish connect it to a terminal server and have access to the console port anywhere on the network.
    With regard to how you connect to the server via serial port A. There is a good section here on that:
    http://supportforum.sun.com/hardware/index.php?t=tree&th =3542&start=0&rid=6690&SQ=602d74baf80cb7a3f4e132 7298286441
    As a side note, if the server has not been used in a while I would highly recommend that when you do get connected to it that you do the following.
    1. Break the server to the ok prompt, if needed.
    2. At ok prompt type 'setenv auto-boot? false' (stops the server booting automatically, can be set to false / true)
    3. At ok prompt type 'setenv diag-level max' (sets the level of diagnostics normally set to min / max)
    4. At the ok prompt type 'setenv diag-switch? true' (sets whether diagnostics are run or not, normally true / false)
    Once the above is done you should pass the server through diagnostics for 2 or 3 hours by powering it on using the switch and powering it off using the 'power-off' command from the ok prompt. There are ways to loop diagnostics on the server using the '<shift>+L' key sequence, but it is often nicer to do a complete power off before doing diagnostics.<br /><br />If errors occur you should see then during post or on the LEDs on the server. As well as this you can have a summary of the diagnostics results using the 'show-post-results' command from the ok prompt.<br /><br />After everything is finished and you are happy that the hardware is ok, you can set auto-boot back to true and diag-switch back to false and continue setting up your system with an OS, etc.

  • Sun One application server connection problem for Oracle DB

    On our project in live environments we have six Sun One application servers that have been configured to connect to RAC Oracle database using OCI drivers. ( JDBC thick driver)
    Sun one application server : Version 7.0.0
    Oracle Database : Version 9.2.0.4.0
    Following are two scenarios where Sun one server receives an error while attempting to perform any DML operations onto the database e.g. when you will try to send a insert/update msg through sun One.
    Case 1: - If the Oracle package/procedure/function is compiled using �Alter package/function/procedure....� command
    problem
    Any attempt to perform a DML operation using RMI calls though Sun one application server with already established oracle connection will fail.
    Sun One application server needs to be bounced to get an up-to-date state of the package.
    Case 2: If the Oracle package/procedure/function is compiled using �Create or Replace package/function/procedure....� command
    problem
    First attempt to perform any DML operation using RMI calls though Sun one application server with already established oracle connection will always fail. Any subsequent attempts will be successful.
    We are using JDBC OCI think drivers. I tried flushing Shared pool at the Oracle side but it didn't help. For some reason Sun One seems to Cache the session information for already establised connections with Oracle database. As its live system we don't want any outage. i.e we know bouncing oracle app server will solve the problem.
    So just wondering is there way/workaround to make aware the already estlised connection from sun one appserver to Oracle DB about changed packages/proceduress in the DB?
    Any thoughts on this would be much appreciated.
    txns
    Ravi

    Forgot one thing: when I use remote debugging , it works.

  • Real Application Cluster on Sun Solaris 8 and Sun Cluster 3

    Hello,
    we want to install Oracle 9i Enterprise Edition in combination with Oracle Real Application Cluster-Option on 2 Nodes. Every node (12-CPU-SMP-Machine) should running Sun Solaris 8 and Sun Cluster 3 Service.
    Does this configuration work with ORAC? I found nowhere informations about. Is there anything I have to pay special attention for during installation?
    Thank you for helping and best regards from Berlin/Germany
    Michael Wuttke

    Forms and report services work fine on solaris 8.
    My problem is on the client side.
    I have to use solaris 8 with netscape like forms clients
    and I wasn't able to make it work with java plugins.
    Any solution?
    Mauro

  • Siebel 8 installation on Sun Solaris 10 - Siebel server failed

    Hi Expert,
    I am currently installing Siebel 8.0.0.0 on Sun Solaris 10.
    I had successfully configured a New Gateway Name Server, a New Enterpise in a Gateway Name Server and a New Siebel Web Server Extension Logical Profile.
    Then, I tried to configure a Siebel Server, however the result of that is Execution Failed and popup the following error message:
    Setup.product.install, Utility, err, unable to launch: "ksh export LD_LIBRARY_PATH=/siebel/siebelv8/siebsrvr/lib;PATH=${PATH}:.;/var/tmp/isjAAAC8aGVc/bin/java -Dtemp.dir=/var/tmp -cp /siebel/siebelv8/siebsrvr/bin/setup.jar run -args LANG=ENU REPEAT=FALSE MODE=LIVE MODEL_FILE=/siebel/siebelv8/siebsrvr/admin/siebel_server_sia.scm" error code: "255"(SBL-STJ-00152)
    I have tried to uninstall Siebel and re-install Siebel couple of times. I got the above same error all the time.
    Searching on supportWeb, I don't find much information regarding "error code: "255"(SBL-STJ-00152)"
    Does anyone know what does "error code: "255"" mean?
    Does anyone have any ideas on how to resolve it?
    Appreciate all your help.
    Thanks in advance!!

    No....I don't find any port conflict.
    However, in the log.txt I saw the following error at the beginning of the log:
    (Apr 30, 2008 11:03:40 AM), Setup.product.install, Utility, msg1, Launching: hostname
    (Apr 30, 2008 11:03:41 AM), Setup.product.install, Initialize, err, Unable to determine OS Service Level.(SBL-STJ-00176)
    ServiceException: (error code = 305; severity = 0)
    (Apr 30, 2008 11:03:55 AM), Setup.product.install, Utility, msg1, Launching: ksh -c env | grep SIEBEL
    (Apr 30, 2008 11:04:18 AM), Setup.product.install, Utility, msg1, Launching: groups
    (Apr 30, 2008 11:04:19 AM), Setup.product.install, Utility, msg1, Launching: groups
    (Apr 30, 2008 11:06:03 AM), Setup.product.install, Utility, msg1, Launching: ksh -c uname -r
    (Apr 30, 2008 11:06:03 AM), Setup.product.install, CheckPrerequisites, err, Solaris.Base.OS required version 5.9, version found: 5.10
    (Apr 30, 2008 11:06:03 AM), Setup.product.install, CheckPrerequisites, wrn, Solaris.Base.OS is not installed. Sun Solaris 9 or above is required to install Siebel Applications
    (Apr 30, 2008 11:06:05 AM), Setup.product.install, ConfigureBuildType, err, ServiceException: (error code = 315; message = "product bean Db\CONFIG does not exist"; severity = 0)
    (Apr 30, 2008 11:06:05 AM), Setup.product.install, ConfigureBuildType, err, ServiceException: (error code = 315; message = "product bean Eai\CONFIG does not exist"; severity = 0)
    Not sure if that is a problem but the installation went fine.
    Just when I tried to configure Siebel Server, I got the execution failed with the error that I mentioned in my first posting.

Maybe you are looking for

  • "DBIF_RSQL_SQL_ERROR" CX_SY_OPEN_SQL_DBC   --- Error in BW

    Hi All, Short dump is occuring while trying to activate the data in the ods. The ods consists of 5 million records. I have gone through the short dump analysis. The error is showing that the file system is full. Database error text........: "SQL0968C

  • Problem in N-STEP Approval BADI

    Hi , I'am new to Workflows,I need your guidance in finishing the Item_level Approval BADI. I'am working on N-Step Approval Badi(Item Level Implementation) I have pasted the code here.There will be Multiple levels(Max 15 Levels) of Approvals. When a n

  • Siri won't work in data mode

    siri does not respond in data mode.  I have tried resetting, restarting, turning siri on/off, data mode on/off.  Siri is not available in data mode.  My carrier is AT&T.

  • Berkeley DB with SQL API: Where to start?

    Hi, I am an Oracle DBA and just starting to look at Berkeley DB for a new project at work. I intend to use the SQL API, so I have downloaded and installed Berkeley 11g R2 (using the windows msi). However, I have been browsing around the documentation

  • Branch switching: closed projects

    I'm a new user with EGit (after years working with Subclipse). What I like very much with git, is the easy and fast way to switch from one branch to another. This is also a feature of EGit. But, there I have some problems. We have an Eclipse workspac