Can't Build 64-bit Tomcat Connector Module (mod_jk)

I've been using the Tomcat Connector Module on my server so all requests can be logged by Apache, I only need to open port 80 on the firewall, and sites that use jsp with other technologies look more cohesive to the user.
In the past when a new version of the module was released I'd just download the source, unzip it, build it and instal it. Following the included instructions, "for the impatient Apache admins," I used:
./configure --with-apxs=/usr/sbin/apxs
to configure the build, then "make" and "sudo make install" to build and install the module.
This has always worked well (except it always installed the module in the wrong directory, which I never corrected because I liked to test the new module before I got rid of the old one), and when I moved to an Intel Mac, it continued to work. All the Apple-provided modules were universal binaries, but the i386 modules I built worked fine.
Now, with Leopard, we have a new, 64-bit Apache 2. I had been looking forward to working with Apache 2, and 64-bit is nice too, right? But now that it's here I'm not so sure.
My first disillusionment was that, when I downloaded the mod_jk source and built it using the same procedure I had been using, Apache refused to load the module, saying it had the wrong architecture. I checked the provided modules to see what architecture it wanted, and they were all universal binaries with four architectures, which didn't really narrow it down too much, but since I could rule out the ppc and ppc64 architectures, and the "wrong" one I built was i386, that left x86_64 as the only possibility.
Since I barely know what I'm doing, I'm not about to try anything crazy like building a universal binary (although I did try to follow this tutorial, but it didn't work for this project and his instructions didn't provide enough detail for me to even begin to figure out why), but I can't even figure out how to build a 64-bit binary.
I do have Xcode 3.0, so I should have the ability to build 64-bit binaries, and I have the new Java 1.6.0, which is also supposed to be 64-bit, so I should be race-ready, but when I run the configure script, specifying which Java version to use and which architecture to build:
./configure --with-apxs=/usr/sbin/apxs --with-arch-type=x86_64 --with-java-home=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Hom e
I still end up with an i386 binary when the smoke clears, and in the log is a warning:
configure: WARNING: you should use --build, --host, --target
I'd be happy to do that if I had a clue what values to specify for them. Does anybody want to guess? Here's what it keeps taking for default values:
checking build system type... i386-apple-darwin9.2.2
checking host system type... i386-apple-darwin9.2.2
checking target system type... i386-apple-darwin9.2.2
I have a feeling I can't just substitute x86_64 for i386 (i.e. x86_64-apple-darwin9.2.2). The "x86_64-apple-darwin" part might be right, but I don't know about the 9.2.2. I've poked around the filesystem and gotten thoroughly confused. There seem to be all kinds of headers and compilers for i386 and x86_64 and something called i686, which seems to be related to x86_64 somehow, but I have no idea how to point the makefile to the right ones. I don't even know how or why it seems to be perfectly capable of finding everything it needs to build for i386 without my help, and even when I try to mislead it by suggesting I might want it to build for x86_64, it still unerringly finds all the i386 stuff and builds the module with them.
Since no one seems to provide Mac OS binaries of anything, it would be really nice to understand how to do this. I might even want to go crazy and build a 64-bit PostgreSQL or something like that, but if I can't even build a simple Apache module anymore, my hopes are fading.
If anybody is somehow clued-in on how all this stuff works, I'd really appreciate a brain-dump.
Thanks.

Thank you, that works for me too!
At first I was worried because, when I ran configure it said:
checking build system type... i386-apple-darwin9.3.0
checking host system type... i386-apple-darwin9.3.0
checking target system type... i386-apple-darwin9.3.0
But I went ahead and ran make anyway, and here's what I ended up with:
apache-2.0/mod_jk.so: Mach-O 64-bit bundle x86_64
which I could install and test. It even works!
Where did you find this information? I did a lot of digging too, but I must have been digging in the wrong places. I always like to go back to the source and see what else I can learn. Maybe then I can take another run at building a universal binary.

Similar Messages

  • How can I build and Debug Tomcat 5.5 under Eclipse?

    http://jakarta.apache.org/tomcat/tomcat-5.5-doc/building.html
    I am doing some rearch on Tomcat and want to build and debug Tomcat5.5 under Eclipse. Originally tomcat is built with ANT, it downloads all components from different CVS and build them together.
    I'd like to import Tomcat Source code (only the core components, such as catalina and Coyota, Jasper) and build them with Eclipse Bilder, so I can debug it as a normal JAVA program under DEGUB-View.
    Who has such experience and help me? I havd built Jetty under Eclipse, but Tomcat is much more complex.

    Help

  • LabVIEW 64-bit - Can I build a 32-bit exe

    LabVIEW 64-bit - Can I build a 32-bit exe

    Hi Gary
    Not at the moment - see here
    You'll need to open your VI up in the 32 bit version and compile from there.
    Kind Regards
    Chris | Applications Engineer NIUK

  • [SOLVED] Can't build vboxdrv module

    I can't build vboxdrv module with latest kernel 2.6.32.When I run vbox_build_module, I get
    Makefile:152: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.
    make[1]: Leaving directory `/opt/VirtualBox/src/vboxdrv'
    make: *** [all] Error 2
    but, when I run
    KERN_DIR=/usr/src/linux-2.6.32-ARCH vbox_build_module
    I get this error
    Makefile:179: *** Error: unable to find the include directory for your current Linux kernel. Specify KERN_INCL=<directory> and run Make again. Stop.
    make[1]: Leaving directory `/opt/VirtualBox/src/vboxdrv'
    make: *** [all] Error 2
    What is the problem here?
    Last edited by na12 (2009-12-31 09:26:34)

    Also using Virtualbox here and was able to build the modules against the new kernel using this procedure:
    Update kernel 31 --> 32
    install kernel26-headers (seems to me you have the wrong kernel-headers package)
    reboot
    rebuild mkinitcpio (KMS)
    reboot
    rebuild vbox modules
    modprobe them or reboot
    Last edited by ulukai (2009-12-31 08:38:07)

  • Jakarta Tomcat Connectors (JK) + OC4J setup questions

    hi
    i'd like to use Apache 2.0 for dispatching requests to OC4J. i've been doing some experimenting and i was able to setup Apache and Jakarta Tomcat Connectors (JK) v1.2 to route requests to OC4J. this seems to be working fine in my development environment but how well supported or reliable is this setup?
    the requests are now being dispatched to JDeveloper 10.1.3 embedded OC4J instance. the only way i managed to do this was by modifying the embedded-oc4j/config/default-web-site.xml file and changing the web-site element protocol attribute value to "ajp13". this setup has the drawback that now direct http connections don't work anymore. is there a way to have both ajp13 and http connectors working simultaneously in the embedded OC4J?

    Sure there is. Add another web site configuration file, say, myHttp-web-site.xml, which is a copy > of the original default-web-site.xml with http protocol and a different port.
    ..after retrying this it seems to be working now. thanks.
    Can you share how you use the Jakarta Tomcat Connectors v1.2 here?sure, here you go:
    build JK
    # download JK v1.2.15 from http://tomcat.apache.org/download-connectors.cgi
    tar zxf jakarta-tomcat-connectors-1.2.15-src.tar.gz
    cd jakarta-tomcat-connectors-1.2.15-src/jk/native
    ./configure --with-apxs=/foo/bar/apache2055/bin/apxs
    make
    make install
    Configure Apache + JK
    # add the following lines to Apache httpd.conf
    LoadModule jk_module modules/mod_jk.so
    JkWorkersFile conf/workers.properties
    JkMount /<myctxroot>/* oc4j
    JkLogFile logs/mod_jk.log
    JkLogLevel debug
    # create conf/workers.properties with the following lines
    worker.list=oc4j
    worker.oc4j.port=8009
    worker.oc4j.host=localhost
    worker.oc4j.type=ajp13
    configure JDev OC4J
    cd $OC4J_HOME/embedded-oc4j/config
    cp default-web-site.xml ajp-web-site.xml
    # modify web-site element protocol attribute value to "ajp13" in ajp-web-site.xml
    # add the following line in embedded-oc4j/config/server.xml
    <web-site default="false" path="./ajp-web-site.xml" />
    # restart OC4J
    # restart Apache

  • Installing Tomcat connector for Apache

    I realize this is more of a Linux configuration issue but it does deal with Tomcat so I am hoping someone can help.
    I am having some problems installing the tomcat connector for Apache web server on Linux (Red Hat enterprise).
    I need to have both Apache (by which I mean Apache Web Server) and Tomcat running on this system and it is my understanding that one can use the tomcat connector as an Apache module to connect from Apache to Tomcat for jsp requests.
    Okay so here is what has been done.
    Tomcat is installed and running fine (on port 8080)
    Apache is running fine.
    I followed this guide http://tomcat.apache.org/connectors-doc/howto/quick.html
    And I created all the config files etc but when it comes to finding the mysterious mod_jk.so file I am stuck. I went to the downloads area and end up in the following directory/page http://apache.mirrors.northco.net/tomcat/tomcat-connectors/jk/binaries/linux/jk-1.2.14/
    I don't see a mod_jk.so file in there. (?!?) So... I poked around some more but I feel I am looking at the right directory so I downloaded the worker.so file and put that in my apache modules directory. I renamed it as mod_sk.so (now please bear in mind that I am not too dumb and I realize that renaming a file isn''t doing anything magical but due to lack of any documentation describing why there are two different files I took a guess and thought that maybe the different files are different threading setups or something (considering the other one is named prefork to me this seemed to be a logical conclusion based on the information given))
    And of course it doesn't work. By which I mean the following happens if I run configtest for apache (if I try to start Apache same disaster)
    # /sbin/service httpd configtest
    Syntax error on line 3 of /etc/httpd/conf.d/tomcat_connector.conf:
    Cannot load /etc/httpd/modules/mod_jk.so into
    server: /etc/httpd/modules/mod_jk.so: cannot open
    shared object file: No such file or directoryOkay... Except a file with that name (see above) IS in that directory. And it has the same permissions as the other modules which are loading.
    (After moving to the modules directory)
    # dir
    libphp4.so mod_cache.so mod_imap.so mod_proxy_http.so
    mod_access.so mod_cern_meta.so mod_include.so mod_proxy.so
    mod_actions.so mod_cgi.so mod_info.so mod_python.so
    mod_alias.so mod_dav_fs.so mod_jk.so mod_rewrite.so
    [more stuff that loads here but edited for length]So I think something else has gone wrong here... namely that I have the wrong file or something.
    Anyway I am a bit stuck at this point. Could someone point me in the right direction please because I am just going in circles at this point with the documentation not matching up to what files are available or explaining what those files in fact actually are.

    I solved this issue by compiling the file from source. I got hold of another admin friend who told me that the version I had was for 64 bit. Now how I was supposed to discover this or where in fact a compiled version of this file is on the apache site I know not.
    But it's working now.

  • How can i build a manchester coding in labview signal processing?

    how can i build a manchester coding in labview signal processing?
    mean to say that how can i digitize my audio input.i waqnt to convert my audio input into manchester coded data format!!!
    kindly post related VIs
    regards
    Solved!
    Go to Solution.

    idma-
    Check out the LabVIEW FPGA example http://zone.ni.com/devzone/cda/epd/p/id/6126
    Generate Manchester Signal
    Basic example showing generation of a Manchester encoded data stream. The data to be sent is generated in one loop and passed to a FPGA FIFO. The subVI which generates the Manchester data stream reads the data bytes form the FIFO and passes them to the digital output. The subVI prepends a simple header to each data packet which allows a reader (see next example) to synchronize and acquire/parse the data. The header consists of a thee half bit pulse followed by a one half bit pulse. The three half bit pulse is not a valid component of regular Manchester encoding and can therefore be differentiated from the rest of the protocol. In addition it can be used by the receiver to to easily measure the bit rate of the protocol. By dividing the length of the three half bit pulse in half (3/4 of a bit), the receiver has a measure to differentiate between full and half bit pulses in the rest of the protocol.
    Generate and Read Manchester Signal
    An extension of the previous example which adds a Manchester receiver subVI. You must physically wire the digital output channel to your input channel to loop back the data outside the I/O connector of your FPGA R series card or C series module. The Manchester receiver subVI is expecting the data packet to be prepended by a header as explained in the previous section.
    I will see if the is a more precise example but this should help
    Sam S
    Applications Engineer
    National Instruments

  • Config tomcat connector

    Good Day,
    Can anyone offer advice on getting some documentation to enable Apache2-
    Jakarta-Tomcat connector?
    I don't install eDir, iManager, etc, so only work apache2, tomcat5 from
    SLES9.
    In Read Hat 8 I just add this sentences in httpd.conf and it works.
    JkWorkersFile /usr/local/apache/conf/workers.properties
    JkLogFile /usr/local/apache/logs/mod_jk.log
    JkLogLevel info
    JkMount /epagos/* tomcat
    No such luck on NLSBS9 follow instruction in
    /usr/share/doc/packages/apache2-jakarta-tomcat-connectors/README.SuSE
    I think SuSEconfig --module apache2 it's not working, because i customize
    test file /etc/tomcat/demoserver/jk.conf and can't browse the pages
    http://localhost/jsp-examples/
    http://localhost/servlets-examples
    Only work pages
    http://localhost:8080/jsp-examples/ and
    http://localhost:8080/servlets-examples/
    Anyone know how to modify /etc/sysconfig/apache2 to config Tomcat
    Connector?
    How to replace SuSEconfig with Yast/Editor /etc/sysconfig option?
    Thanks for your time,
    Regards,
    Ing. Juan L. Mera

    On Mon, 2006-01-16 at 19:22 +0000, Juan Mera wrote:
    > Good Day,
    >
    > Can anyone offer advice on getting some documentation to enable Apache2-
    > Jakarta-Tomcat connector?
    >
    > I don't install eDir, iManager, etc, so only work apache2, tomcat5 from
    > SLES9.
    >
    > In Read Hat 8 I just add this sentences in httpd.conf and it works.
    > JkWorkersFile /usr/local/apache/conf/workers.properties
    > JkLogFile /usr/local/apache/logs/mod_jk.log
    > JkLogLevel info
    > JkMount /epagos/* tomcat
    >
    > No such luck on NLSBS9 follow instruction in
    > /usr/share/doc/packages/apache2-jakarta-tomcat-connectors/README.SuSE
    >
    > I think SuSEconfig --module apache2 it's not working, because i customize
    > test file /etc/tomcat/demoserver/jk.conf and can't browse the pages
    > http://localhost/jsp-examples/
    > http://localhost/servlets-examples
    > Only work pages
    > http://localhost:8080/jsp-examples/ and
    > http://localhost:8080/servlets-examples/
    >
    > Anyone know how to modify /etc/sysconfig/apache2 to config Tomcat
    > Connector?
    >
    > How to replace SuSEconfig with Yast/Editor /etc/sysconfig option?
    No need to duplicate post ;)

  • Build the main Guest Additions module Failed

    Hi all,
    I am not very sure if I am in the correct forum here. My problem is I cannot install the VirtualBox Guest Additions 4.2.12_84980 on my Oracle Linux 5 update 6_x86_64 bits system. I followed the instructions in a tutorial :
    cd /etc/yum.repos.d/
    wget http://public-yum.oracle.com/public-yum-el5.repo
    yum update
    yum install gcc
    yum install kernel-uek-devel-2.6.32-300.32.1.el5uek
    These steps above all succeeded; but, when I run the installation as below:
    cd /media/VBOXADDITIONS_4.2.12_84980/
    sh ./VBoxLinuxAdditions.run
    I got the error message:
    Build the main Guest Additions module Failed
    (Look at /var/log/vboxadd-install.log to find out what went wrong).
    I have little experience in installing VirtualBox Additions on Oracle Linux. Can anybody pls give me some suggestions? Thanks a lot in advance.

    user571093 wrote:
    Hi all,
    I am not very sure if I am in the correct forum here.No. This forum is "Oracle Database - General Questions". Your question has nothing to do with Oracle Database.
    Your problem is in the cracks between VBox and Oracle Linux. I'd suggest you mark this thread answered, then repost in the Oracle Linux Forum (Oracle Linux
    My problem is I cannot install the VirtualBox Guest Additions 4.2.12_84980 on my Oracle Linux 5 update 6_x86_64 bits system. I followed the instructions in a tutorial :
    cd /etc/yum.repos.d/
    wget http://public-yum.oracle.com/public-yum-el5.repo
    yum update
    yum install gcc
    yum install kernel-uek-devel-2.6.32-300.32.1.el5uek
    These steps above all succeeded; but, when I run the installation as below:
    cd /media/VBOXADDITIONS_4.2.12_84980/
    sh ./VBoxLinuxAdditions.run
    I got the error message:
    Build the main Guest Additions module Failed
    (Look at /var/log/vboxadd-install.log to find out what went wrong).Did you look at that file?
    >
    I have little experience in installing VirtualBox Additions on Oracle Linux. Can anybody pls give me some suggestions? Thanks a lot in advance.When you post in the Oracle Linux forum, be sure to show them the results of this command:
    uname -aThat will be key to which kernel header package to install.

  • How can I set specific bits in a 16-bit integer?

    Hello everyone,
    as the title says I need to modify or rather to set a specific bit in a string which then is sent to a motor. I need to be sure that my command is correct as I am experiencing troubles with that motor and need to identify if its source.
    First of all my strings have to be in the Little Endian order. Then the structure of the string should be the following:
    Change Velocity command ‘V’xxCR 056h + one unsigned short (16-bit) integer + 0Dh (Note: Uppercase ‘V’)
    Note: The lower 15 bits (Bit 14 through 0) contain the velocity value. The high-order bit (Bit 15) is used to indicate the microstep-to-step resolution: 0 = 10, 1 = 50 uSteps/step.
    Until now, I used Flatten To String to convert 32 bit integers into bytes of the correct order. I thought I could use the Join Numbers function, but that only works for at least 8 bit numbers and there is no "1 bit number". I searched for an option to build a a string and set the bits via a Boolean Cluster, but I did not really understand how to transfer this to my problem.
    How can I build up the correct 16-bit integer (e.g. set the velocity to "10000" with a resolution of 50 µSteps/step)
    I would like to add the "V" and the CR via Concatenate Strings to the 16-bit integer, but other possibilites are also welcome.
    I have seens the examples for bit manipulation in C-code, but I wish to do this with LabView as I am not familiar with C,matlab and so on.
    Thank you very much for your help!
    Solved!
    Go to Solution.

    You really need to learn Boolean logic and how to shift bits around.
    AND is really good for masking out bits (forcing them to 0) and OR is really good for adding bit values.  Then Logical Shift is used to get the bits in the right places before doing the AND and OR.
    NOTE: Rate is an enum with 10 being a value of 0 and 50 being 1.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    Bit Packing.png ‏15 KB

  • SET PASSWORD IN FILE PDF CREATED BY REPORT BUILDER (32 Bit)

    With the Report Builder (32-bit) Oracle I create a file PDF in a directory specified by the user.
    The problem is that the file pdf must be created with a password but i don't know how to do.
    I have checked both the manual Report Builder that on the various blogs but I could not find anything to help me, someone is aware if you can create a pdf file password protected with the Report Builder?
    Thanks for the suggestion...

    I use Report Builder 6.0.5.35.0

  • [SOLVED] Can't build 'crystalhd-git' package

    Hi
    I've bought  Broadcom  BCM70012 Video Decoder [Crystal HD] today. I'm trying to compile driver for this device. I need to compile two packages.
    1. libcrystalhd-git
    2. crystalhd-git
    Libcrytstalhd-git compiles just fine, no errors. But I can't build the driver crystalhd-git . Here is the output :
    make -C /lib/modules/2.6.39-ARCH/build SUBDIRS=/tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux modules
    make[1]: Wejście do katalogu `/usr/src/linux-2.6.39-ARCH'
    CC [M] /tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux/crystalhd_lnx.o
    CC [M] /tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux/crystalhd_misc.o
    CC [M] /tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux/crystalhd_cmds.o
    CC [M] /tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux/crystalhd_hw.o
    /tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux/crystalhd_hw.c: In function ‘crystalhd_hw_post_tx’:
    /tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux/crystalhd_hw.c:719:21: warning: variable ‘high_addr’ set but not used [-Wunused-but-set-variable]
    /tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux/crystalhd_hw.c:719:11: warning: variable ‘low_addr’ set but not used [-Wunused-but-set-variable]
    CC [M] /tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux/crystalhd_linkfuncs.o
    CC [M] /tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux/crystalhd_fleafuncs.o
    /tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux/crystalhd_fleafuncs.c: In function ‘crystalhd_flea_init_dram’:
    /tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux/crystalhd_fleafuncs.c:171:42: warning: variable ‘sd_1_row_size’ set but not used [-Wunused-but-set-variable]
    /tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux/crystalhd_fleafuncs.c:171:26: warning: variable ‘sd_1_bank_size’ set but not used [-Wunused-but-set-variable]
    /tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux/crystalhd_fleafuncs.c:171:11: warning: variable ‘sd_1_col_size’ set but not used [-Wunused-but-set-variable]
    /tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux/crystalhd_fleafuncs.c: In function ‘crystalhd_flea_set_power_state’:
    /tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux/crystalhd_fleafuncs.c:847:12: warning: variable ‘sts’ set but not used [-Wunused-but-set-variable]
    CC [M] /tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux/crystalhd_flea_ddr.o
    /tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux/crystalhd_flea_ddr.c: In function ‘crystalhd_flea_ddr_pll_config’:
    /tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux/crystalhd_flea_ddr.c:152:5: error: implicit declaration of function ‘msleep_interruptible’ [-Werror=implicit-function-declaration]
    /tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux/crystalhd_flea_ddr.c: In function ‘crystalhd_flea_ddr_ctrl_init’:
    /tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux/crystalhd_flea_ddr.c:324:10: warning: variable ‘DQ_IDLE_MODE’ set but not used [-Wunused-but-set-variable]
    /tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux/crystalhd_flea_ddr.c:323:10: warning: variable ‘CTL_IDLE_MODE’ set but not used [-Wunused-but-set-variable]
    /tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux/crystalhd_flea_ddr.c:322:10: warning: variable ‘DM_IDLE_MODE’ set but not used [-Wunused-but-set-variable]
    /tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux/crystalhd_flea_ddr.c:320:10: warning: variable ‘DQ_WIDTH’ set but not used [-Wunused-but-set-variable]
    cc1: some warnings being treated as errors
    make[2]: *** [/tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux/crystalhd_flea_ddr.o] Błąd 1
    make[1]: *** [_module_/tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux] Błąd 2
    make[1]: Opuszczenie katalogu `/usr/src/linux-2.6.39-ARCH'
    make: *** [all] Błąd 2
    ==> BŁĄD: Wystąpił błąd w build().
    Przerywam...
    ==> ERROR: Makepkg was unable to build .
    ==> Restart building crystalhd-git ? [y/N]
    ==> --------------------------------------
    ==>
    Last edited by lgolebio (2011-06-29 06:01:46)

    Try replacing `sed -i 's/'-Werror'/''/g' Makefile` with `sed -i 's/-Werror/-Wno-error=implicit-function-declaration/g' Makefile` in the PKGBUILD. This won't fix the warning but the package should build.

  • Makepkg doesn't work - can't build new different pkgs.

    I'm maintaining a pkg named firefox-optimized. Now after I change mozconfig and PKGBUILD, I can't build a different pkg.
    All the pkgs I built are all the same except .PKGINFO.
    I have disabled ccache, and delete all cached files, even try to login another user to build, but still don't work.
    Last edited by coderoar (2008-10-16 13:25:27)

    maybe it's me but could you please try to be a bit more explicit... what exactly does not work, what are you trying to do, what did you modify and what kind of error do you get please?
    BTW, firefox-nightly is based on the mozilla binary so you do not need any mozconfig here i think.

  • Re : Works on 32 bit Tomcat . fails in 64 bit Web Logic

    Hello All,
    When I try to decrypt using 32 bit tomcat ... i can decrypt the hex string but when I use 64 bit Web Logic for the same , I get javax.crypto.badpaddingexception , Invalid pad value.... any thoughts in code what is causing this ? The sample code used is as follows.
    Help is appreciated.
    import java.security.SecureRandom;
    import javax.crypto.Cipher;
    import javax.crypto.KeyGenerator;
    import javax.crypto.SecretKey;
    import javax.crypto.spec.SecretKeySpec;
    public class Crypto{
         public static String decrypt(String seed, String encrypted) throws Exception {
              byte[] rawKey = getRawKey(seed.getBytes());
              byte[] enc = toByte(encrypted);
              byte[] result = decrypt(rawKey, enc);
              return new String(result);
         private static byte[] getRawKey(byte[] seed) throws Exception {
              KeyGenerator kgen = KeyGenerator.getInstance("AES");
              SecureRandom sr = SecureRandom.getInstance("SHA1PRNG");
              sr.setSeed(seed);
         kgen.init(128, sr); // 192 and 256 bits may not be available
         SecretKey skey = kgen.generateKey();
         byte[] raw = skey.getEncoded();
         return raw;
         private static byte[] decrypt(byte[] raw, byte[] encrypted) throws Exception {
         SecretKeySpec skeySpec = new SecretKeySpec(raw, "AES");
              Cipher cipher = Cipher.getInstance("AES");
         cipher.init(Cipher.DECRYPT_MODE, skeySpec);
         byte[] decrypted = cipher.doFinal(encrypted);
              return decrypted;
         public static String toHex(String txt) {
              return toHex(txt.getBytes());
         public static String fromHex(String hex) {
              return new String(toByte(hex));
         public static byte[] toByte(String hexString) {
              int len = hexString.length()/2;
              byte[] result = new byte[len];
              for (int i = 0; i < len; i++)
                   result[i] = Integer.valueOf(hexString.substring(2*i, 2*i+2), 16).byteValue();
              return result;
         public static String toHex(byte[] buf) {
              if (buf == null)
                   return "";
              StringBuffer result = new StringBuffer(2*buf.length);
              for (int i = 0; i < buf.length; i++) {
                   appendHex(result, buf);
              return result.toString();
         private final static String HEX = "0123456789ABCDEF";
         private static void appendHex(StringBuffer sb, byte b) {
              sb.append(HEX.charAt((b>>4)&0x0f)).append(HEX.charAt(b&0x0f));

    I could be wrong but I'm pretty sure that your problem is caused by these lines of code :-
    KeyGenerator kgen = KeyGenerator.getInstance("AES");
    SecureRandom sr = SecureRandom.getInstance("SHA1PRNG");
    sr.setSeed(seed);
    kgen.init(128, sr); // 192 and 256 bits may not be available
    SecretKey skey = kgen.generateKey();In it's basic form a SHA1PRNG based random number generator is a deterministic generator and not really suitable for cryptographic use. I'm betting that Web Logic is replacing the SHA1PRNG core with a non-deterministic version of SecureRandom; in their position I would.
    If you want to transform bytes into a deterministic key you should use one of the PBE algorithms.
    P.S. When you create a cipher using
    Cipher cipher = Cipher.getInstance("AES");you by default specify ECB block mode and PKCS5 padding. ECB block mode is considered insecure since it allows forgery by splicing ciphertext. When used properly, the PBE based algorithms avoid this forgery by using CBC block mode.

  • Can I build website in MUSE and administrate in JOOMLA?

    Can I build website in MUSE and administrate in JOOMLA?
    Anybody know if this works together?

    NorthCape1 wrote:
     ...I understand that I can export the site as html...
    Abhishek Maurya misled you by saying that you can export "as HTML and then upload it on any web host using any FTP client". They apparently do not understand what Joomla is.
    The HTML that you export from Muse is a bit of a mess. You would need to be an advanced web designer to make sense of Muse's output and modify it for use in Joomla or any other CMS.
    NorthCape1 wrote:
    I did mark it as helpful...
    I was not fishing for you to mark my post as helpful or as an answer. I was just confused how Corey's post was flagged as the correct answer as soon as he posted it.

Maybe you are looking for

  • Why do I need to stop and restart web server?????

    I am developing servlets on sun's standard web server as well as with Netscape's web server. The problem is every time I make any changes to servlet and recompile my code, changes are not visible until I stop and restart web server. I guess web serve

  • How do I change the sort order in the file picker?

    Hi there, I've recently hit a problem with the Save and Open dialogs in Mavericks. Some how I have changed the sort order within the Column View so that it sorts by modified date and no longer by name. Unfortunately I can't work out how that happened

  • How to get the document details of a Workflow Request?

    We are using listRequests method of RequestManager class for getting workflow requests. This method returns collection of request information. But how we can get details of document, which has to be approved, through that request id?

  • Define ranges in selection screen

    hi all does anybody know how to declare ranges on selection screen i have to declare it for matnr thanks for your help

  • Image links missing

    Hi to all, I published my whole site (iWeb 1.1) to .Mac. Now I have some sites, where when I click on the pictures, nothing happens (normally there will be the picture in a bigger size loaded). Anybody any idea? Thanks in advance, Z-1