Compiling mod_perl for Solaris 10 ....  grrrrrr

I've got a scenario where I need to run MySQL in a cluster, and the application requires curl be compiled into php. After chasing my tail for weeks trying to get things to play nicely together, I decided to just compile everything from scratch. I have several identical boxes (V125) that need the same software stack also, so rather than building each one manually, I'm attempting to build things as statically as possible so that I can just tar up the stack and distribute it to all the machines that way.
apache 2.0.59
php 5.2.0
perl 5.8.8
MySQL 5.0.27
openssl 0.9.8d
curl 7.15.5
expat 2.0.0
gettext 0.16.1
libxml2 2.6.27
libiconv 1.11
readline 5.2
zlib 1.2.3
And several perl modules, including DBI/DBD for both Oracle and MySQL
I used the gcc compiler and associated environment packages from Blastwave. In the end I had a virtually static setup (still relies on things from /lib which is fine by me), except for the php5 and mod_perl modules for apache. The php worked like a champ as a loadable, but apache dies when trying to load the perl module:
Syntax error on line 233 of /opt/CA/apache2.0.59/conf/httpd.conf:
Cannot load /opt/CA/apache2.0.59/modules/mod_perl.so into server: ld.so.1: httpd: fatal: relocation error: file /opt/CA/apache2.0.59/modules/mod_perl.so: symbol PL_markstack_ptr: referenced symbol not found
I really don't know how to troubleshoot this any further. Any ideas or help would be appreciated. I will attach my compile strings below so you can see what I have done.
./configure prefix=/opt/CA/gettext-0.16.1 program-transform-name='s/^gettext$/g&/;s/^msgfmt$/g&/;s/^xgettext$/g&/' disable-shared enable-static
libiconv
./configure prefix=/opt/CA/libiconv-1.11 disable-shared enable-static with-gettext=/opt/CA/gettext
xml2
LD_OPTIONS="-L/opt/CA/gettext -L/opt/CA/libiconv -L/opt/CA/libiconv/lib -L/opt/CA/gettext/lib"
./configure prefix=/opt/CA/libxml2-2.6.27 disable-shared --enable-static
readline
/configure prefix=/opt/CA/readline-5.2 disable-shared --enable-static
Zlib (could not find any static compile options for this)
./configure prefix=/opt/CA/zlib-1.2.3 shared
openssl
./config prefix=/opt/CA/openssl-0.9.8d openssldir=/opt/CA/openssl-0.9.8d no-shared
apache
./configure prefix=/opt/CA/apache2.0.59 enable-most with-ssl=/opt/CA/openssl disable-shared --enable-static
CFLAGS="-mimpure-text"
./configure prefix=/opt/CA/php5.2.0 enable-bcmath enable-wddx with-mysql=/opt/CA/mysql with-apxs2=/opt/CA/apache/bin/apxs with-apache2=/opt/CA/apache enable-force-cgi-redirect enable-discard-path with-config-file-path=/opt/CA/php-5.2.0/etc enable-safe-mode enable-libgcc with-openssl=/opt/CA/openssl with-zlib=/opt/CA/zlib with-zlib-dir=/opt/CA/zlib with-readline=/opt/CA/readline without-pear with-curl=/opt/CA/curl enable-lib-libxml with-iconv=/opt/CA/libiconv with-mysql=/opt/CA/mysql with-mysqli=/opt/CA/mysql/bin/mysql_config with-libxml-dir=/opt/CA/libxml2 enable-shared=no enable-static=yes
mod_perl
/opt/CA/perl/bin/perl Makefile.PL MP_APXS=/opt/CA/apache/bin/apx
Thanks in advance for any and all help!
Dave

Ok, I found my answer. Still don't know how to fix 1.37 itself, but turns out that the problem is fixed in 1.38, for anyone else with this issue.

Similar Messages

  • Compiling for solaris 9 on solaris 8 machine

    Hi, is it possible to use a solaris 8 machine with workshop, to compile binary for solaris 9.
    I need to compile user-mode app as well as kernel modules both for 64/32 bit environments.
    The modules are all dynamically linked.
    If this is possible, what is the proper procedure??
    ERAN.

    For user space apps, if you are sticking to the published interfaces (ie: not using any private, non-public symbols you might have dug up in our libraries) then compiling and linking on Solaris 8 and running on Solaris 9 is not a problem, at least for user space. Run appcert on your application if you want to ensure you aren't using anything private. We are forward-compatible in this sense.
    As for kernel modules, I don't know enough to comment.

  • License for cross-compilation for solaris 10 sparc on Linux x86

    I'd like to do cross-compilation for solaris 10 sparc on Linux x86 using gcc (for linux). To do that, I have to copy libraries (/lib/64) and includes (/usr/include) from a sparc machine to my linux machine.
    The compilation will be run on about (up to) 50 Linux machines (by various developers). We also have 3 solaris-10-SPARC machines.
    I wonder if Solaris license allows me to copy the includes and libs to perform compilation elsewhere.
    I also checked "OTN License Agreement for Oracle Solaris", but it looks like Oracle allows for installing "the programs" on up to 3 machines, but I need it on 50.
    Thanks for any suggestions or redirections to a proper place where I can get an answer.
    Marek

    When installing Solaris 10 01/06 on a Dell 1850 I receive an error message during the install saying "no disk found". I assume that the drive/controller is not recognized. The Dell 1850 is listed under the HCL for Solaris 10 10/06. I don't believe I can use the Solaris(TM) Device Driver for the LSI MegaRAID Adapter floppy with 1/06. I don�t have any other Solaris boxes up so I can�t build a jump start server. Any suggestions?

  • Cross compiling apps on solaris 8 for solaris 10 x86 and x64

    Hi All,
    We have a few applications built on Solaris 8. and we want to build the same apps on Solaris 10 x86 and x64 but the problem is clearcase does not support Solaris 10 yet.
    Can we cross compile the apps on Solaris 8 for Solaris 10 x86 and x64 ? and how ?
    waiting for any info on this.
    TIA,
    warm regards,
    Girish

    FYI, I noticed the reply on Sun Studio General Forum:
    If you build an app on one version of Solaris, the app will run on later Solaris versions. So in particular, you can build an x86 application on Solaris 8 and run it on Solaris 9 and 10.
    Unfortunately, an x64 application must be built on a Solaris x64 system, which first became available with Solaris 10.

  • Need compiled pam_allow.so.1 for Solaris 10

    I am following a document I found online to have Solaris 10 automatically login the console server using JDS3. I need the pam_allow.so.1 module in order for this to work. This module is no longer included with Solaris 10. Does anyone know where I can get a compiled version of this module that will work on Solaris 10?
    Thanks,
    Chris

    I have found the source on opensolaris.org, but I am unable to compile it. When I try, the following is returned: /usr/ucb/cc: language optional software package not installed.
    Would it be possible for someone else to compile it for me and then I just put it in place on my server, or does it have to be compiled on my server to work?

  • Compiling an application for Solaris 9 on a Solaris 10 system

    Hi,
    I was wondering if it's possible to compile an application Solaris 10 in such a way that it will run on Solaris 9.
    I'm building a set of library tools and they need to run on Solaris 9 and 10, but it'd be nice if I could build this on a Solaris 10 box.
    Is this possible, and if so, how do you do it?
    thanks,
    Trevor

    I'm working on this same issue. Unfortunetly, it appears that my only option is to compile on a Solaris 10 box for running on a Solaris 8 box. Thankfully this doesn't look too bad because after doing a 'ldd', I get that the only file I'm missing is the libm.so.2. If I can specify in the makefile to use libm.so.1 only, then all should be ok.
    So I guess my question would be: What exactly do I need to do in my makefile to explicitly link to libm.so.1? I've tried the following with no luck.
    /opt/SUNWspro/bin/cc -xCC -Bdynamic -g \
    /usr/lib/libm.so.1 \
    /opt/mylibs/my_compiled_lib.lib \
    first_obj.o \
    second_obj.o \
    -o my_program
    The above returns:
    ld: fatal: file /usr/lib/libm.so.1: open failed: No such file or directory
    ld: fatal: File processing errors. No output written to macsruntime
    However, if I change my link to /usr/lib/libm.so everything works but it is linked with the /usr/lib.libm.so.2. Any help would be appreciated.

  • Targeted C compilation for Solaris 8

    Hi
    I'm running Solaris 10. I need to build a C application - a socket based server daemon - which will run on Solaris 8, AFAICT on different h/w platforms, though all sparc I think.
    So I assume I need to configure my compile/link for the target platform.
    From the docs it looks like I could specify the code name for a given machine with the target option, eg -xtarget=ultra3i - which would then build for an Ultra sparc IIIi. But that sounds like a pain, esp as the target servers are located around the world, and no one person knows what they all are.
    Or can I use the 'generic' target? Any issues with building a networking application on 10, to deliver on 8 using that target?
    Any help (or definitive url <g>) would be greatly appreciated.
    TVM
    Chris

    Or can I use the 'generic' target? Any issues with building a networking application on 10, to deliver on 8 using that target?How generic is generic? Generic Sun4U and Generic Sun4D are different platforms so even if it is generic is it generic enough?
    The easiest thing to do would be to look for a lowest common denominator for each platform, do the build on that and then test it out on the rest.
    Compiling is usually forward compatible and not backwards compatible.
    alan

  • Compiling for solaris 9

    One of our boxes still runs solaris 2.5.1 but we need to compile some things for a solaris 9 box. Would the binaries compiled on solaris 2.5.1 be compatible for solaris 9?
    From what I have gathered searching the web, there are notes that the binaries would be compatible, but there is also a chance it may not. What are the caveates?
    Also, we are unable to compile on this solaris 9 box.

    They should work.
    7/M.

  • Need to compile C code for Solaris 5.4 target

    Hi,
    I'm current on a project where the target platform is Solaris 5.4. I believe the SunOS version is 2.4. Unfortunately, there is no way I can get the customer to upgrade their server or OS.
    In my search so far I've been unsuccessful in finding a compiler for that platform. The oldest gcc I can find is for SunOS 2.5.
    What other options do I have?
    Will code compiled with the C compiler in the Sun Studio 12 be able to run on SunOS 2.4? If so, is there a command line option I need to set while compiling the code?

    No available Sun compiler can be used on, or to generate code for, SunOS 5.4 (Solaris 2.4). Even Sun Workshop 5.0, released in 1998, did not support Solaris 2.4.
    If you develop code to be run on Solaris 2.4, you need to compile on Solaris 2.4 (or earlier). Binaries created on a later version of Solaris will not in general run on an earlier version of Solaris. I think that Sun WorkShop 3.0 was the last version that supported Solaris 2.4, but it might have been WorkShop 2.0. Those antiques are not available from Sun.
    If I were in this situation, I would tell the customer that the OS and all support software are many years past End Of Service Life. No support is available, the software is no longer available, and I can't help them unless they are willing to upgrade to supported software. (I might also ask the customer if they still use Windows 3.1 on their PCs. The situation is comparable.)
    If you don't have that option, your next best hope is that the customer has a C compiler on their system. If so, find a way to use it. If it's a Sun compiler, you will have a problem acquiring a license to run it. You will probably have to run it on their system.
    If the customer doesn't have a compiler, I guess you have to keep trolling in newsgroups and forums, looking for a compiler that supports Solaris 2.4. Good luck.

  • Where can I get a C compiler for Solaris  10 (sparc)?

    Where can I get a C compiler for Solaris 10 (sparc)?

    Have you tried gcc ?Ok. What kind of GCC compiler for Solaris 10( sparc) can you suggest me?
    The gcc-3.3.2 was compiled on Solaris 9, but i am using it on Solaris 10, that is why(it is my assumption) i have some problems with compilation library files( for example, sys/kstat.h)

  • Solaris 8 compiled binaries on solaris 10 box

    Hi all,
    I have a plain C code which compiles and runs fine on my solaris 8 box. I have to deploy the compiled binaries (on soalris 8) on a different machine which has solaris 10 installed.
    My application uses libqt-ms.so.3, libqutil.so.1.0.0, libjpeg.so.6, libstdc++.so.2.10.0, posix threads and tcp/ip sockets.
    Will this cause any problems. or will i have to make a separate binary for solaris 10. If that is the case will i need new library files or the current one will work fine
    Best Regards,
    Faran

    well I have tried it actually. and the behavior is weird. On my solaris 8 box. Every thing works perfectly fine. But due to some reason on solaris 10 machine the values i transmit over the tcp socket totally change. i send a msgCode = 1 , 2, or 3 ... but on the other end, which is a windows machine i get strange values 210, 10, 35 49 etc etc ... is this due to version problem.

  • Build for solaris 8 on solaris 10 - possible?

    I want to build/compile an application for solaris 8, but I only have access to a machine running solaris 10. Can I compile for solaris 8 on a solaris 10 machine, and if so, what do I have to do to make it work?

    The short answer is generally no.
    The long answer is that it can be done but you will need to make sure that on the Solaris 10 machine you only use functions/headers/libraries that are available on Solaris 8 otherwise they will not be found and the software won't work.
    alan

  • Also I need ndiswrapper support for solaris 10

    I have a linksys -G type router and my computer uses a Linksys Wireless-G PCI Adapter with SpeedBooster
    which works in Linux like mandrake , debian systems like knoppix and kanotix but their are some buggy like debian also that don't let me change the essid in debian but most linux works with the drivers for my card which are
    04/13/2004 10:01 AM 7,870 BCM43XX.CAT
    03/31/2004 08:44 AM 11,960 BCMWL5.INF
    02/19/2004 11:51 AM 300,928 BCMWL5.SYS
    normally you install the drivers with ndiswrapper -i BCMWL5.INF then use -m to add it too the model loader program in linux which adds wlan0 to ifconfig and iwconfig programs
    which also ndiswrapper requires the source code of the kernel to install the ndiswrapper right , it req. it too compile the drivers, and using the linux gui programs to setup essid and key wep info
    also I use a script in kanotix to use /etc/network/interfaces to load the info on bootup etc.. to get my wireless network card up in linux.
    also how the support for soundblaster sound cards in solaris 10, I have not fingured out if theirs sound yet. freebsd 5.4 seemed to be missing the sound support
    one more thing in bootup of the install program for Solaris 10 my geforce 6800 card detected right but my tv output was all wrong in since the picture , was only on the monitor and tv had stange graphics on it which did not look right I hope nvidia drivers fix this problem , Is their any different command needed for clone mode in Solaris 10 then free86 nd xorg scripts use?

    I got the solutiion from Canon Customer Serivce, temporary until the 10.10 download is released.  It works:
    "You can download the latest software updates at this address:
    http://www.usa.canon.com/cusa/support/professional/professional_cameras/eos_digital_slr_cameras/eos_...
    Please select "OS X Mavericks v10.9" using the drop-down menu on the page.  You have to pick the previous version of Mac OS, because the options for OS X 10.10 Yosemite have not yet been populated.  I sincerely apologize for any confusion this may cause.  After selecting OS X 10.9, please click on the red triangle next to the word "Software" to see the software updates available for your computer.  I would recommend updating all of your software including EOS Utility and Digital Photo Professional."
    I never did find the drop-down menu, but I went into the site map and found what I needed.
    Barry

  • Memory Leak in 8.1.6.0.1 JDBC/OCI for Solaris

    Hello,
    there is a memory leak in the 8.1.6.0.1 JDBC-OCI driver for solaris.
    The leak causes your jvm to eat up all memory
    if you reuse callable statements
    (calling one statement multiple times with
    different values).
    The thin driver has no such problem. Is
    there any fix available ?

    Ok. The code spans multiple classes and
    most of it comes from a customized version
    of the Enhydra Java Application server.
    I have a class called "StandardDBConnection"
    which caches CallableStatements and is a
    wrapperclass for java.sql.DBConnection. The
    interesting method here is "prepareCall":
    * Get a callable statement given an SQL string. If the statement is
    * cached, return that statement, otherwise prepare and save in the
    * cache.
    * @param sql The SQL statement to be called.
    * @return a new CallableStatement object containing the
    * pre-compiled SQL statement.
    * @exception java.sql.SQLException If a database access error occurs
    * statement.
    public synchronized CallableStatement prepareCall(String sql)
    throws SQLException {
    PreparedStatement preparedStmt;
    logDebug ("Prepare call: " + sql);
    validate();
    preparedStmt = (PreparedStatement)preparedStmtCache.get(sql);
    // Check if the object returned by the cache really is a
    // callable statement. if it is not, someone did call first
    // prepareStatement() and now prepareCall() with the same
    // sql. Silently replace the existing cache entry by a
    // callable statement in this case.
    if (preparedStmt instanceof CallableStatement) {
    preparedStmt.clearParameters();
    else {
    // Need to close the old PreparedStatement in case we have to
    // replace it with a CallableStatement
    if (preparedStmt != null) {
    preparedStmt.close();
    else if (preparedStmtCache.size() >= maxPreparedStmts) {
    String key = (String)preparedStmtCache.keys().nextElement();
    ((PreparedStatement) preparedStmtCache.remove(key)).close();
    preparedStmt = connection.prepareCall(sql);
    preparedStmtCache.put(sql, preparedStmt);
    return (CallableStatement)preparedStmt;
    The statements get closed when I close the
    connection:
    boolean closeStmts = true;
    // Close the prepared statements.
    Enumeration e = preparedStmtCache.keys();
    while (e.hasMoreElements() && closeStmts) {
    String key = (String)e.nextElement();
    try {
    ((PreparedStatement)
    preparedStmtCache.remove(key)).close();
    } catch (SQLException except) {
    // Ignore errors, we maybe handling one.
    closeStmts = false;
    log.write(Logger.NOTICE,
    "DBConnection[" + id + "]: " + url +
    "\nUnable to close statements. Continuing....\n");
    In my classes using database queries I just
    use the prepareCall method of DBConnection
    and do not have to care about anything.
    Works perfectly with the thin driver, but
    as soon as I switch to oci... :-|
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by JDBC Dev Team:
    Soda, Rupper,
    Do you mind posting some code that shows us what your code was doing when you notice this leak?
    Thanks.<HR></BLOCKQUOTE>
    null

  • Help with evaluation for Solaris x86

    Hello,
    I would like to evaluate Oracle Identity Manager and Access Manager products at the latest version possible -- the host system(s) are Solaris x86 (SunOS .5.10) Unfortunately, I am having a bit of trouble compiling the list of packages/versions to achieve this for this platform. For instance, on the downloads page it appears that OIM is not available for Solaris x86, not even in older versions(?)
    Thank you in advance,
    Scott

    Hi Scott,
    I'm pretty sure that x86 Solaris is not yet certified to run the Identity Management suite. I've been involved in an evaluation process and we ran it all on RedHat Enterprise Server Release 4 Update 5, without too many problems.
    cheers,
    James

Maybe you are looking for

  • FM - RPY_VIEW_INSERT not working as expected

    Dear Experts, <b>I am using 4.6c system and using RPY_VIEW_INSERT for creating views. I am getting an error code = 6 [DB_ACCESS_ERROR].  Please help me in this regard.</b> Please see the code below - [code]&---- *& Report  ZCREATEVIEW REPORT  ZCREATE

  • Form is taking the time to activate

    Hi All, I am working in Travel Expense adobe form. Already standard travel expense form was copied to Z form(Modified the standard layout) and using that form presently in my client. I have taken the copy of this Zform and doing the changes right now

  • IWeb app went back to my old website version

    Dears, I'm using iWeb 2.0.4 Seems since the MobileMe update of my iWeb, the application restored a very old version of my website. Because I didn't publish my website since this problem happened, I still have the "new" website version available on th

  • Workflow Agent Listener and Workflow Background program run after each minute

    Hello, We have scheduled Workflow agent listener program to be run after 5 minutes but it runs every minute more than once and fills concurrent request queue. Please help. EBS 12.1.1, DB 11.1.0.7, Linux 5. Thanks & Regards Aneel Ahmed

  • Calling Procedure in Different Users

    Hellow all, I have three database users 1. USER1 2. USER2 3. USER3 I have created a procedure in USER1 Now i want to use that same procedure in USER2 and USER3 without creating it in these users. is there any way to achieve it??? Any help will be app