Compiling dbxml with berkeley 5.1.19

I'm trying to compile dbxml using 5.1.19 source. E.g.:
+sh buildall.sh with-berkeleydb=/home/mariano/Code/srcs/db-5.1.19 prefix=/home/mariano/Code/compiled/dbxml/+
however I'm getting the following error:
Start DB XML build: Tue Dec 14 00:13:58 ART 2010
Configuring DB XML
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
+checking if --enable-debug option specified... no+
+checking if --enable-test option specified... no+
+checking if --with-berkeleydb=DIR option specified... /home/mariano/Code/compiled/dbxml+
+checking if --with-dbbuild=DIR option specified... ../..//home/mariano/Code/srcs/db-5.1.19+
checking for Berkeley DB version from install tree... 4.8
+5.1+
configure: error: /home/mariano/Code/compiled/dbxml is version 4.8
+5.1, which is not a supported version of Berkeley DB. The version must be at least 4.3+
First error is obvious: it seems dbxml cannot be compiled with somethin newer than 4.8. Is this right?
The second error is in the following line:
+checking if --with-berkeleydb=DIR option specified... /home/mariano/Code/compiled/dbxml+
it tells me the berkeleydb option is set to */home/mariano/Code/compiled/dbxml* when I specified with-berkeleydb=/home/mariano/Code/srcs/db-5.1.19.
Can someone offer a tip on the problem?
TIA

Hi,
A generated configure script for DB XML 2.5.16 checks only for versions of BDB starting from 4.3 to 4.8, hence the misleading error message.
if test "$db_version" != "4.3" && test "$db_version" != "4.4" && test "$db_version" != "4.5" && test "$db_version" != "4.6" && test "$db_version" != "4.7" && test "$db_version" != "4.8"; then
                { { echo "$as_me:$LINENO: error: $with_berkeleydb is version $db_version, which is not a supported version of Berkeley DB. The version must be at least 4.3" >&5
echo "$as_me: error: $with_berkeleydb is version $db_version, which is not a supported version of Berkeley DB. The version must be at least 4.3" >&2;}
   { (exit 1); exit 1; }; }
fiI'm not sure whether I understood your second problem, but you can try to fix the first one by using BDB 4.8 or even actually omit the --with-berkeleydb parameter and then the distributed with DB XML version of BDB will be used, and then see whether the second problem is eliminated.
Any reasons that you opt to use BDB 5.1?
Vyacheslav

Similar Messages

  • Compiling DBXML 6.0.17 with JDK 8

    Hi,
    I'm working on compiling dbxml-6.0.17 on solaris 11.2 using jdk 1.8.0.  I'm using:
    buildall.sh --enable-java
    getting error:
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    env CLASSPATH="./classes" java -classpath ./classes \
        com.sleepycat.persist.model.ClassEnhancer ./classes
    java.lang.IllegalArgumentException
      at com.sleepycat.asm.ClassReader.<init>(ClassReader.java:167)
      at com.sleepycat.asm.ClassReader.<init>(ClassReader.java:153)
      at com.sleepycat.persist.model.ClassEnhancer.enhanceBytes(ClassEnhancer.java:297)
      at com.sleepycat.persist.model.ClassEnhancer.enhanceFile(ClassEnhancer.java:246)
      at com.sleepycat.persist.model.ClassEnhancer.enhanceFile(ClassEnhancer.java:242)
      at com.sleepycat.persist.model.ClassEnhancer.enhanceFile(ClassEnhancer.java:242)
      at com.sleepycat.persist.model.ClassEnhancer.enhanceFile(ClassEnhancer.java:242)
      at com.sleepycat.persist.model.ClassEnhancer.enhanceFile(ClassEnhancer.java:242)
      at com.sleepycat.persist.model.ClassEnhancer.main(ClassEnhancer.java:108)
    Exception in thread "main" java.lang.IllegalArgumentException
      at com.sleepycat.asm.ClassReader.<init>(ClassReader.java:167)
      at com.sleepycat.asm.ClassReader.<init>(ClassReader.java:153)
      at com.sleepycat.persist.model.ClassEnhancer.enhanceBytes(ClassEnhancer.java:297)
      at com.sleepycat.persist.model.ClassEnhancer.enhanceFile(ClassEnhancer.java:246)
      at com.sleepycat.persist.model.ClassEnhancer.enhanceFile(ClassEnhancer.java:242)
      at com.sleepycat.persist.model.ClassEnhancer.enhanceFile(ClassEnhancer.java:242)
      at com.sleepycat.persist.model.ClassEnhancer.enhanceFile(ClassEnhancer.java:242)
      at com.sleepycat.persist.model.ClassEnhancer.enhanceFile(ClassEnhancer.java:242)
      at com.sleepycat.persist.model.ClassEnhancer.main(ClassEnhancer.java:108)
    *** Error code 1
    make: Fatal error: Command failed for target `db.jar'
    Has anyone been able to compile for jdk 8?  Thanks in advance.

    I'm trying to debug/reduce-stop-world-GC times.Put it on a box that you can install whatever you want.
    Set the max heap size to be a low value. Start at 500 meg and move it down. You want to get to the point where the app works but where it starts thrashing very soon (with little load.)
    Then debug/profile away using appropriate tools.
    Once you have an idea, up the max heap on that box, increase the load, and validate the idea.

  • Need help with Berkeley XML DB Performance

    We need help with maximizing performance of our use of Berkeley XML DB. I am filling most of the 29 part question as listed by Oracle's BDB team.
    Berkeley DB XML Performance Questionnaire
    1. Describe the Performance area that you are measuring? What is the
    current performance? What are your performance goals you hope to
    achieve?
    We are measuring the performance while loading a document during
    web application startup. It is currently taking 10-12 seconds when
    only one user is on the system. We are trying to do some testing to
    get the load time when several users are on the system.
    We would like the load time to be 5 seconds or less.
    2. What Berkeley DB XML Version? Any optional configuration flags
    specified? Are you running with any special patches? Please specify?
    dbxml 2.4.13. No special patches.
    3. What Berkeley DB Version? Any optional configuration flags
    specified? Are you running with any special patches? Please Specify.
    bdb 4.6.21. No special patches.
    4. Processor name, speed and chipset?
    Intel Xeon CPU 5150 2.66GHz
    5. Operating System and Version?
    Red Hat Enterprise Linux Relase 4 Update 6
    6. Disk Drive Type and speed?
    Don't have that information
    7. File System Type? (such as EXT2, NTFS, Reiser)
    EXT3
    8. Physical Memory Available?
    4GB
    9. Are you using Replication (HA) with Berkeley DB XML? If so, please
    describe the network you are using, and the number of Replica’s.
    No
    10. Are you using a Remote Filesystem (NFS) ? If so, for which
    Berkeley DB XML/DB files?
    No
    11. What type of mutexes do you have configured? Did you specify
    –with-mutex=? Specify what you find inn your config.log, search
    for db_cv_mutex?
    None. Did not specify -with-mutex during bdb compilation
    12. Which API are you using (C++, Java, Perl, PHP, Python, other) ?
    Which compiler and version?
    Java 1.5
    13. If you are using an Application Server or Web Server, please
    provide the name and version?
    Oracle Appication Server 10.1.3.4.0
    14. Please provide your exact Environment Configuration Flags (include
    anything specified in you DB_CONFIG file)
    Default.
    15. Please provide your Container Configuration Flags?
    final EnvironmentConfig envConf = new EnvironmentConfig();
    envConf.setAllowCreate(true); // If the environment does not
    // exist, create it.
    envConf.setInitializeCache(true); // Turn on the shared memory
    // region.
    envConf.setInitializeLocking(true); // Turn on the locking subsystem.
    envConf.setInitializeLogging(true); // Turn on the logging subsystem.
    envConf.setTransactional(true); // Turn on the transactional
    // subsystem.
    envConf.setLockDetectMode(LockDetectMode.MINWRITE);
    envConf.setThreaded(true);
    envConf.setErrorStream(System.err);
    envConf.setCacheSize(1024*1024*64);
    envConf.setMaxLockers(2000);
    envConf.setMaxLocks(2000);
    envConf.setMaxLockObjects(2000);
    envConf.setTxnMaxActive(200);
    envConf.setTxnWriteNoSync(true);
    envConf.setMaxMutexes(40000);
    16. How many XML Containers do you have? For each one please specify:
    One.
    1. The Container Configuration Flags
              XmlContainerConfig xmlContainerConfig = new XmlContainerConfig();
              xmlContainerConfig.setTransactional(true);
    xmlContainerConfig.setIndexNodes(true);
    xmlContainerConfig.setReadUncommitted(true);
    2. How many documents?
    Everytime the user logs in, the current xml document is loaded from
    a oracle database table and put it in the Berkeley XML DB.
    The documents get deleted from XML DB when the Oracle application
    server container is stopped.
    The number of documents should start with zero initially and it
    will grow with every login.
    3. What type (node or wholedoc)?
    Node
    4. Please indicate the minimum, maximum and average size of
    documents?
    The minimum is about 2MB and the maximum could 20MB. The average
    mostly about 5MB.
    5. Are you using document data? If so please describe how?
    We are using document data only to save changes made
    to the application data in a web application. The final save goes
    to the relational database. Berkeley XML DB is just used to store
    temporary data since going to the relational database for each change
    will cause severe performance issues.
    17. Please describe the shape of one of your typical documents? Please
    do this by sending us a skeleton XML document.
    Due to the sensitive nature of the data, I can provide XML schema instead.
    18. What is the rate of document insertion/update required or
    expected? Are you doing partial node updates (via XmlModify) or
    replacing the document?
    The document is inserted during user login. Any change made to the application
    data grid or other data components gets saved in Berkeley DB. We also have
    an automatic save every two minutes. The final save from the application
    gets saved in a relational database.
    19. What is the query rate required/expected?
    Users will not be entering data rapidly. There will be lot of think time
    before the users enter/modify data in the web application. This is a pilot
    project but when we go live with this application, we will expect 25 users
    at the same time.
    20. XQuery -- supply some sample queries
    1. Please provide the Query Plan
    2. Are you using DBXML_INDEX_NODES?
    Yes.
    3. Display the indices you have defined for the specific query.
         XmlIndexSpecification spec = container.getIndexSpecification();
         // ids
         spec.addIndex("", "id", XmlIndexSpecification.PATH_NODE | XmlIndexSpecification.NODE_ATTRIBUTE | XmlIndexSpecification.KEY_EQUALITY, XmlValue.STRING);
         spec.addIndex("", "idref", XmlIndexSpecification.PATH_NODE | XmlIndexSpecification.NODE_ATTRIBUTE | XmlIndexSpecification.KEY_EQUALITY, XmlValue.STRING);
         // index to cover AttributeValue/Description
         spec.addIndex("", "Description", XmlIndexSpecification.PATH_EDGE | XmlIndexSpecification.NODE_ELEMENT | XmlIndexSpecification.KEY_SUBSTRING, XmlValue.STRING);
         // cover AttributeValue/@value
         spec.addIndex("", "value", XmlIndexSpecification.PATH_EDGE | XmlIndexSpecification.NODE_ATTRIBUTE | XmlIndexSpecification.KEY_EQUALITY, XmlValue.STRING);
         // item attribute values
         spec.addIndex("", "type", XmlIndexSpecification.PATH_EDGE | XmlIndexSpecification.NODE_ATTRIBUTE | XmlIndexSpecification.KEY_EQUALITY, XmlValue.STRING);
         // default index
         spec.addDefaultIndex(XmlIndexSpecification.PATH_NODE | XmlIndexSpecification.NODE_ELEMENT | XmlIndexSpecification.KEY_EQUALITY, XmlValue.STRING);
         spec.addDefaultIndex(XmlIndexSpecification.PATH_NODE | XmlIndexSpecification.NODE_ATTRIBUTE | XmlIndexSpecification.KEY_EQUALITY, XmlValue.STRING);
         // save the spec to the container
         XmlUpdateContext uc = xmlManager.createUpdateContext();
         container.setIndexSpecification(spec, uc);
    4. If this is a large query, please consider sending a smaller
    query (and query plan) that demonstrates the problem.
    21. Are you running with Transactions? If so please provide any
    transactions flags you specify with any API calls.
    Yes. READ_UNCOMMITED in some and READ_COMMITTED in other transactions.
    22. If your application is transactional, are your log files stored on
    the same disk as your containers/databases?
    Yes.
    23. Do you use AUTO_COMMIT?
         No.
    24. Please list any non-transactional operations performed?
    No.
    25. How many threads of control are running? How many threads in read
    only mode? How many threads are updating?
    We use Berkeley XML DB within the context of a struts web application.
    Each user logged into the web application will be running a bdb transactoin
    within the context of a struts action thread.
    26. Please include a paragraph describing the performance measurements
    you have made. Please specifically list any Berkeley DB operations
    where the performance is currently insufficient.
    We are clocking 10-12 seconds of loading a document from dbd when
    five users are on the system.
    getContainer().getDocument(documentName);
    27. What performance level do you hope to achieve?
    We would like to get less than 5 seconds when 25 users are on the system.
    28. Please send us the output of the following db_stat utility commands
    after your application has been running under "normal" load for some
    period of time:
    % db_stat -h database environment -c
    % db_stat -h database environment -l
    % db_stat -h database environment -m
    % db_stat -h database environment -r
    % db_stat -h database environment -t
    (These commands require the db_stat utility access a shared database
    environment. If your application has a private environment, please
    remove the DB_PRIVATE flag used when the environment is created, so
    you can obtain these measurements. If removing the DB_PRIVATE flag
    is not possible, let us know and we can discuss alternatives with
    you.)
    If your application has periods of "good" and "bad" performance,
    please run the above list of commands several times, during both
    good and bad periods, and additionally specify the -Z flags (so
    the output of each command isn't cumulative).
    When possible, please run basic system performance reporting tools
    during the time you are measuring the application's performance.
    For example, on UNIX systems, the vmstat and iostat utilities are
    good choices.
    Will give this information soon.
    29. Are there any other significant applications running on this
    system? Are you using Berkeley DB outside of Berkeley DB XML?
    Please describe the application?
    No to the first two questions.
    The web application is an online review of test questions. The users
    login and then review the items one by one. The relational database
    holds the data in xml. During application load, the application
    retrieves the xml and then saves it to bdb. While the user
    is making changes to the data in the application, it writes those
    changes to bdb. Finally when the user hits the SAVE button, the data
    gets saved to the relational database. We also have an automatic save
    every two minues, which saves bdb xml data and saves it to relational
    database.
    Thanks,
    Madhav
    [email protected]

    Could it be that you simply do not have set up indexes to support your query? If so, you could do some basic testing using the dbxml shell:
    milu@colinux:~/xpg > dbxml -h ~/dbenv
    Joined existing environment
    dbxml> setverbose 7 2
    dbxml> open tv.dbxml
    dbxml> listIndexes
    dbxml> query     { collection()[//@date-tip]/*[@chID = ('ard','zdf')] (: example :) }
    dbxml> queryplan { collection()[//@date-tip]/*[@chID = ('ard','zdf')] (: example :) }Verbosity will make the engine display some (rather cryptic) information on index usage. I can't remember where the output is explained; my feeling is that "V(...)" means the index is being used (which is good), but that observation may not be accurate. Note that some details in the setVerbose command could differ, as I'm using 2.4.16 while you're using 2.4.13.
    Also, take a look at the query plan. You can post it here and some people will be able to diagnose it.
    Michael Ludwig

  • Copy a compiled DBXML from one Linux machine to another Linux machine?

    Hello
    I am currently preparing two Linux machines for a DBXML application. One machine is for testing and the other for production. They are almost identical:
    Test machine:
    >
    root@jumasiri:~# uname -a
    Linux jumasiri 2.6.29.6 #2 Mon Aug 17 01:31:42 CDT 2009 i686 AMD Athlon(tm) AuthenticAMD GNU/Linux
    root@jumasiri:~# gcc --version
    gcc (GCC) 4.3.3
    root@jumasiri:/etc# mount
    /dev/root on / type ext2 (rw,errors=continue)
    ... (some lines left out for clarity)
    >
    Production machine
    >
    root@jumasiri:/etc/udev/rules.d# uname -a
    Linux jumasiri 2.6.29.6-smp #2 SMP Mon Aug 17 00:52:54 CDT 2009 i686 AMD Athlon(tm) XP 2800+ AuthenticAMD GNU/Linux
    root@jumasiri:/etc/udev/rules.d# gcc --version
    gcc (GCC) 4.3.3
    root@jumasiri:/etc# mount
    /dev/root on / type ext3 (rw,errors=continue,data=ordered)
    ... (some lines left out for clarity)
    /dev/hda3 on /usr/local type ext3 (rw)
    /dev/hda4 on /home type ext3 (rw)
    >
    As you can see the test machine has everything mounted on 1 partition only, whereas the production uses several. The test machine has a ext2 filesystem and the production machine ext3 filesystems. The dbxml binaries and libraries are installed in /usr/local/dbxml on both machines. The databases are installed somewhere in /home/koen/.
    I've compiled dbxml succssfully on both machines, but ran into severe compilation problems on the production machine when compiling Xerces. Instead of digging and solving into the problem I have simply copied the successful compilation of the test machine to the production machine. Everything seems to work.
    My question is very simple. Can one do that, copying one compilation to another machine with the same OS but with a different filesystem?
    Thank you
    Koen

    Hello
    Thank you. One can never be sure enough, isn't it? For your information, the copy is running fine. My question was more related to the file system. As we don't know the inner workings of dbxml, we can never tell if the knowledge of type of file system is used internally.
    Bye
    Koen

  • Segmentation fault when using snapshot isolation with Berkeley DB 6.1.19 and 5.1.29

    Hello,
    I have been experimenting with snapshot isolation with Berkeley DB, but I find that it frequently triggers a segmentation fault when write transactions are in progress.  The following test program reliably demonstrates the problem in Linux using either 5.1.29 or 6.1.19. 
    https://anl.app.box.com/s/3qq2yiij2676cg3vkgik
    Compilation instructions are at the top of the file.  The test program creates a temporary directory in /tmp, opens a new environment with the DB_MULTIVERSION flag, and spawns 8 threads.  Each thread performs 100 transactional put operations using DB_TXN_SNAPSHOT.  The stack trace when the program crashes generally looks like this:
    Program received signal SIGSEGV, Segmentation fault.
    [Switching to Thread 0x7ffff7483700 (LWP 11871)]
    0x00007ffff795e190 in __memp_fput ()
       from /usr/lib/x86_64-linux-gnu/libdb-5.1.so
    (gdb) where
    #0  0x00007ffff795e190 in __memp_fput ()
       from /usr/lib/x86_64-linux-gnu/libdb-5.1.so
    #1  0x00007ffff7883c30 in __bam_get_root ()
       from /usr/lib/x86_64-linux-gnu/libdb-5.1.so
    #2  0x00007ffff7883dca in __bam_search ()
       from /usr/lib/x86_64-linux-gnu/libdb-5.1.so
    #3  0x00007ffff7870246 in ?? () from /usr/lib/x86_64-linux-gnu/libdb-5.1.so
    #4  0x00007ffff787468f in ?? () from /usr/lib/x86_64-linux-gnu/libdb-5.1.so
    #5  0x00007ffff79099f4 in __dbc_iput ()
       from /usr/lib/x86_64-linux-gnu/libdb-5.1.so
    #6  0x00007ffff7906c10 in __db_put ()
       from /usr/lib/x86_64-linux-gnu/libdb-5.1.so
    #7  0x00007ffff79191eb in __db_put_pp ()
       from /usr/lib/x86_64-linux-gnu/libdb-5.1.so
    #8  0x0000000000400f14 in thread_fn (foo=0x0)
        at ../tests/transactional-osd/bdb-snapshot-write.c:154
    #9  0x00007ffff7bc4182 in start_thread (arg=0x7ffff7483700)
        at pthread_create.c:312
    #10 0x00007ffff757f38d in clone ()
        at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
    I understand that this test program, with 8 concurrent (and deliberately conflicting) writers, is not an ideal use case for snapshot isolation, but this can be triggered in other scenarios as well.
    You can disable snapshot isolation by toggling the value of the USE_SNAP #define near the top of the source, and the test program then runs fine without it.
    Can someone help me to identify the problem?
    many thanks,
    -Phil

    Hi Phil,
       We have taken a look at this in more detail and there was a bug in the code.   We have fixed the bug.     We will roll it into our next 6.1 release that we do.   If you would like an early patch that will go on top of 6.1.19, please email me at [email protected], reference this forum post and I can get a patch sent out to you.   It will be a .diff file that apply on the source code and then rebuild the library.  Once again thanks for finding the issue, and providing a great test program which tremendously helped in getting this resolved.
    thanks
    mike

  • Simple C++ application with berkeley

    After reading the documentation of the Berkeley DB listed on the Oracle website, I am quite confused and found no way to build a small application. I want to know, what dlls or header files needed in the real application? Anyone could help me with how to build a small C++ application with Berkeley DB, such as: creating a db, how to build a MFC project with the berkeley db? Thanks a lot!

    Hi,
    Here is the related documentation, on how to build, compile and link with Berkeley DB:
    For UNIX/POSIX:
    Building Berkeley DB: http://www.oracle.com/technology/documentation/berkeley-db/db/ref/build_unix/intro.html
    Building a small memory footprint library: http://www.oracle.com/technology/documentation/berkeley-db/db/ref/build_unix/small.html
    For Windows
    Building Berkeley DB: http://www.oracle.com/technology/documentation/berkeley-db/db/ref/build_win/intro.html
    Building a small memory footprint library: http://www.oracle.com/technology/documentation/berkeley-db/db/ref/build_win/small.html
    Building with multiple versions of Berkeley DB: http://www.oracle.com/technology/documentation/berkeley-db/db/ref/install/multiple.html
    Building replicated applications: http://www.oracle.com/technology/documentation/berkeley-db/db/ref/rep/app.html
    And here you can find the c++ APIs: http://www.oracle.com/technology/documentation/berkeley-db/db/api_cxx/frame.html
    Regards,
    Bogdan Coman

  • Can not compile php with "-with-oracle=/usr/local/oracle"

    I work on Linux engine with a x86_64 architecture and use Oracle 10g 10.2.0.1 client for x86_64 linux
    so - when i try to compile php with the oracle argument (-with-oracle=/usr/local/oracle) i get everytime the same error:
    checking Oracle version... configure: error: Oracle needed libraries not found
    I think, maybe i have a problem because configure not found my "64 bit libraries"...
    Can someone help me? I am realy helpless...
    thx

    Did you really want the obsolete "oracle" driver - why not use --with-oci8?
    The user comments in http://www.php.net/oci8 have some good info on 64bit configuration.

  • [ SOLVED ] Compile Error with Java Fonts & IntelliJ

    Hi All
    I have now got a new problem when i compile a flex project.  Yesterday inorder to get the IJ Interface font smoothing sorted, i had to add this line to my ~/.bashrc file
    _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on
    But now when i go to run a flex project, i get the following error message
    Information:Using built-in compiler shell, up to 4 parallel threads
    See compiler settings at File | Settings | Compiler | Flex Compiler page
    Information:Starting Flex compiler:
    /opt/java/jre/bin/java -Dapplication.home=/home/julian/SDK/flex_sdk_4.5.0.17855 -Xmx384m -Dsun.io.useCanonCaches=false -Duser.language=en -Duser.region=en -Xmx1024m -classpath /opt/idea-IU-98.311/plugins/flex/lib/flex-compiler.jar:/home/julian/SDK/flex_sdk_4.5.0.17855/lib/flex-compiler-oem.jar com.intellij.flex.compiler.FlexCompiler 48936
    Information:Compilation completed with 2 errors and 0 warnings
    Information:2 errors
    Information:0 warnings
    Error:Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on
    Error:java.net.SocketException: Socket closed
    Error:java.net.ConnectException: Connection refused
    Error:     at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
         at java.net.Socket.connect(Socket.java:529)
         at java.net.Socket.connect(Socket.java:478)
         at java.net.Socket.<init>(Socket.java:375)
         at java.net.Socket.<init>(Socket.java:218)
         at com.intellij.flex.compiler.FlexCompiler.openSocket(FlexCompiler.java:35)
         at com.intellij.flex.compiler.FlexCompiler.main(FlexCompiler.java:70)
    Any suggestions, besides disabling the _JAVA_OPTION again ?
    Many Thanks
    Last edited by whitetimer (2010-11-14 17:24:11)

    -Dawt.useSystemAAFontSettings=on needs to be added to the end of file
    idea.vmoptions

  • Compiling packages with libapr in it, strange link errors

    On my Solaris 10 boxen, suddenly I cannot build stuff anymore that utilizes Apache's apr.
    This includes Apache 2 (2.0.53 and 2.0.54), and subversion.
    The funny thing is, I did build 2.0.53 a few weeks ago, and did not bump into the problem. Rebuilding it, with identical configure options, environment vars and make invocation, leads to the following errors.
    They make little sense to me. Clues, anyone?
    The following output is from an attempt to build subversion. The same errors occur when building Apache 2:
    ---- Snip ----
    phil@turing> pwd; cat PHIL/build
    /phil/sw/sunos/i386/obj/subversion-1.1.4
    #! /bin/sh
    unset CPPFLAGS
    unset LDFLAGS
    unset LD_LIBRARY_PATH
    LD_RUN_PATH=/phil/sw/sunos/i386/lib; export LD_RUN_PATH
    /phil/sw/src/subversion-1.1.4/configure \
    --prefix=/phil/sw/sunos/i386/pkg/subversion-1.1.4  \
    --disable-mod-activation  \
    --enable-javahl  \
    --with-berkeley-db=/phil/sw/sunos/i386/pkg/db-4.2.52  \
    --with-editor=vi  \
    --with-zlib
    make
    phil@turing> sh ./PHIL/build
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_rwlock_tryrdlock@SUNW_1.2'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_exit@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_attr_setstacksize@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_key_create@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `dlerror@SUNW_1.22'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `write@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_key_delete@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_create@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_setspecific@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `gethostname@SUNWprivate_1.1'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/subversion/libsvn_subr/.libs/libsvn_subr-1.so: undefined reference to `open@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `writev@SUNW_1.2'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_rwlock_trywrlock@SUNW_1.2'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `waitpid@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `fcntl@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_rwlock_init@SUNW_1.2'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_join@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `select@SUNW_1.2'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_sigmask@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_mutex_consistent_np@SUNW_1.3'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_mutexattr_setrobust_np@SUNW_1.3'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_equal@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_rwlock_destroy@SUNW_1.2'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_attr_init@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `dlopen@SUNW_1.22'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_mutexattr_settype@SUNW_1.2'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_attr_getdetachstate@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_detach@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `read@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_getspecific@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `poll@SUNW_1.2'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_attr_setdetachstate@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `dlsym@SUNW_1.22'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_rwlock_rdlock@SUNW_1.2'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_rwlock_wrlock@SUNW_1.2'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_self@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `dlclose@SUNW_1.22'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_rwlock_unlock@SUNW_1.2'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/subversion/libsvn_subr/.libs/libsvn_subr-1.so: undefined reference to `fsync@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_once@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `sigaction@SUNW_0.9'
    collect2: ld returned 1 exit status
    make: *** [subversion/clients/cmdline/svn] Error 1
    ---- Snip ----

    Same thing with curl and others....
    root@sol10[20:50] > gcc -v
    Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.10/3.4.4/specs
    Configured with: ./configure --prefix=/usr/local
    Thread model: posix
    gcc version 3.4.4
    What gives?
    make[2]: Entering directory `/home/src/curl-7.14.0/lib'
    make[2]: Leaving directory `/home/src/curl-7.14.0/lib'
    make[1]: Leaving directory `/home/src/curl-7.14.0/lib'
    Making all in src
    make[1]: Entering directory `/home/src/curl-7.14.0/src'
    make all-am
    make[2]: Entering directory `/home/src/curl-7.14.0/src'
    /bin/ksh ../libtool tag=CC mode=link gcc -g -O2 -o curl main.o hugehelp.o urlglob.o writeout.o writeenv.o getpass.o homedir.o strtoofft.o timeval.o ../lib/libcurl.la -lsocket -lnsl -lz
    gcc -g -O2 -o .libs/curl main.o hugehelp.o urlglob.o writeout.o writeenv.o getpass.o homedir.o strtoofft.o timeval.o ../lib/.libs/libcurl.so -lsocket -lnsl -lz -Wl,--rpath -Wl,/usr/local/lib
    ../lib/.libs/libcurl.so: undefined reference to `dlopen@SUNW_1.22'
    ../lib/.libs/libcurl.so: undefined reference to `dlsym@SUNW_1.22'
    ../lib/.libs/libcurl.so: undefined reference to `dlclose@SUNW_1.22'
    collect2: ld returned 1 exit status
    make[2]: *** [curl] Error 1
    make[2]: Leaving directory `/home/src/curl-7.14.0/src'
    make[1]: *** [all] Error 2
    make[1]: Leaving directory `/home/src/curl-7.14.0/src'
    make: *** [all-recursive] Error 1

  • How to compile less with Dreamweaver in windows?

    i have Dreamweaver cs6 and i am trying to compile it with less , i have watched several tutorial on YouTube but most of them for Mac users not for windows users :/
    some videos suggest to change files inside dreamweaver like "extensions txt" but it's not working as well , Any help please ?

    http://www.dmxzone.com/go/21526/dmxzone-less-css-compiler-released-and-for-free/

  • Ridiculous bug in oracle jdeveloper compiler ojc with jdk1.4

    With simple class:
    public class Test
    public Test()
    public String toString()
    return null;
    public static void main(String[] args) throws Exception
    Test test = new Test();
    System.out.println("ooo" + test);
    After compile it with ojc (ojc Test.java) and run it with jdk 1.4.1_01 (java Test), it throws
    java.lang.NullPointerException
    at java.lang.String.concat(String.java:1541)
    But it works ok if compile it with standard java compiler(javac).

    Hi,
    Thanks for reporting this. It's a bug. I've logged it as 2809860, and you can track this on metalink.oracle.com.
    Brian
    JDev Team

  • Compilation problem with templates while using option -m64

    Hi,
    I have compilation problem with template while using option -m64.
    No problem while using option -m32.
    @ uname -a
    SunOS snt5010 5.10 Generic_127111-11 sun4v sparc SUNW,SPARC-Enterprise-T5220
    $ CC -V
    CC: Sun C++ 5.9 SunOS_sparc Patch 124863-01 2007/07/25
    Here is some C++ program
    ############# foo5.cpp #############
    template <typename T, T N, unsigned long S = sizeof(T) * 8>
    struct static_number_of_ones
    static const T m_value = static_number_of_ones<T, N, S - 1>::m_value >> 1;
    static const unsigned long m_count = static_number_of_ones<T, N, S - 1>::m_count + (static_number_of_ones<T, N, S - 1>::m_value & 0x1);
    template <typename T, T N>
    struct static_number_of_ones<T, N, 0>
    static const T m_value = N;
    static const unsigned long m_count = 0;
    template <typename T, T N>
    struct static_is_power_of_2
    static const bool m_result = (static_number_of_ones<T,N>::m_count == 1);
    template <unsigned long N>
    struct static_number_is_power_of_2
    static const bool m_result = (static_number_of_ones<unsigned long, N>::m_count == 1);
    int main(int argc)
    int ret = 0;
    if (argc > 1)
    ret += static_is_power_of_2<unsigned short, 16>::m_result;
    ret += static_is_power_of_2<unsigned int, 16>::m_result;
    ret += static_is_power_of_2<unsigned long, 16>::m_result;
    ret += static_number_is_power_of_2<16>::m_result;
    else
    ret += static_is_power_of_2<unsigned short, 17>::m_result;
    ret += static_is_power_of_2<unsigned int, 17>::m_result;
    ret += static_is_power_of_2<unsigned long, 17>::m_result;
    ret += static_number_is_power_of_2<17>::m_result;
    return ret;
    Compiation:
    @ CC -m32 foo5.cpp
    // No problem
    @ CC -m64 foo5.cpp
    "foo5.cpp", line 20: Error: An integer constant expression is required here.
    "foo5.cpp", line 36: Where: While specializing "static_is_power_of_2<unsigned long, 16>".
    "foo5.cpp", line 36: Where: Specialized in non-template code.
    "foo5.cpp", line 26: Error: An integer constant expression is required here.
    "foo5.cpp", line 37: Where: While specializing "static_number_is_power_of_2<16>".
    "foo5.cpp", line 37: Where: Specialized in non-template code.
    "foo5.cpp", line 20: Error: An integer constant expression is required here.
    "foo5.cpp", line 43: Where: While specializing "static_is_power_of_2<unsigned long, 17>".
    "foo5.cpp", line 43: Where: Specialized in non-template code.
    "foo5.cpp", line 26: Error: An integer constant expression is required here.
    "foo5.cpp", line 44: Where: While specializing "static_number_is_power_of_2<17>".
    "foo5.cpp", line 44: Where: Specialized in non-template code.
    4 Error(s) detected.
    Predefined macro:
    @ CC -m32 -xdumpmacros=defs foo5.cpp | & tee log32
    @ CC -m64 -xdumpmacros=defs foo5.cpp | & tee log64
    @ diff log32 log64
    7c7
    < #define __TIME__ "09:24:58"
    #define __TIME__ "09:25:38"20c20
    < #define __sparcv8plus 1
    #define __sparcv9 1[snipped]
    =========================
    What is wrong?
    Thanks,
    Alex Vinokur

    Bug 6749491 has been filed for this problem. It will be visible at [http://bugs.sun.com] in a day or two.
    If you have a service contract with Sun, you can ask to have this bug's priority raised, and get a pre-release version of a compiler patch that fixes the problem.
    Otherwise, you can check for new patches from time to time at
    [http://developers.sun.com/sunstudio/downloads/patches/]
    and see whether this bug is listed as fixed.

  • OCCI compilation issue with gcc-3.2.3 on Red Hat ES 2.1

    Hello,
    If I use OCCI of Oracle 10g and try to compile it with gcc-3.2.3 on Red Hat ES 2.1, I get linking errors.
    The same works if I try to compile OCCI on Red Hat ES 3.0.
    Any clues about how to compile the OCCI on RedHat ES/AS 2.1?

    Yes, I downloaded the OCCI for gcc-3.2.3.
    As I said it works on Red Hat 3.0.
    I want to compile it on Red Hat ES 2.1.
    I have installed gcc-3.2.3 on Red Hat ES 2.1. But the occi compilation wont succeed onto it.

  • Can I compiler servlet with java compiler?

    Can I compiler servlet with java compiler?
    Here is an example of it:
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    public class HelloWorldServlet extends HttpServlet
              protected void doGet(HttpServletRequest request,
              HttpServletResponse response) throws ServletException , IOException
                        response.setContentType("text/html");
                        PrintWriter out = response.getWriter();
                        StringBuffer sb = new StringBuffer();
                        sb.append("<html><body><h1>");
                        sb.append("Hello World");
                        sb.append("</h1></body></html>");
                        out.print(sb.toString());
                        out.close();
         }

    Can I compiler servlet with java compiler?
    yes.
    just include the correct jarfiles in your classpath.

  • [svn] 3050: Removed compile warning with JDK1.5

    Revision: 3050
    Author: [email protected]
    Date: 2008-08-29 16:48:58 -0700 (Fri, 29 Aug 2008)
    Log Message:
    Removed compile warning with JDK1.5
    Modified Paths:
    blazeds/trunk/modules/core/src/java/flex/messaging/io/BeanProxy.java

    Did you try this:
    http://forum.java.sun.com/thread.jsp?thread=434718&forum=60&message=1964421

Maybe you are looking for