Unable to "make"  resin for apache?

Posted on 2009-02-21
Last Modified: 2013-11-17
When i configure resin with apache and i try use make i am getting the following error
make[2]: *** [] Error 255

(cd src/c/plugin; make)
make[1]: Entering directory `/finweb/resin/src/c/plugin'
for dir in common apache; do (cd $dir; make); done
make[2]: Entering directory `/finweb/resin/src/c/plugin/common'
gcc -c  -g -O2 stream.c
stream.c: In function 'cse_connect':
stream.c:345: warning: passing argument 5 of 'getsockopt' from incompatible pointer type
gcc -c  -g -O2 registry.c
gcc -c  -g -O2 config.c
gcc -c  -g -O2 memory.c
/usr/bin/ld -r -o common.o stream.o registry.o config.o memory.o
make[2]: Leaving directory `/finweb/resin/src/c/plugin/common'
make[2]: Entering directory `/finweb/resin/src/c/plugin/apache'
/usr/bin/ld -o -shared mod_caucho.lo ../common/stream.lo ../common/registry.lo ../common/config.lo ../common/memory.lo
ld: 0706-012 The -h flag is not recognized.
ld: 0706-012 The -a flag is not recognized.
make[2]: *** [] Error 255
make[2]: Leaving directory `/finweb/resin/src/c/plugin/apache'
make[1]: *** [plugins] Error 2
make[1]: Leaving directory `/finweb/resin/src/c/plugin'
make: *** [all] Error 2
Question by:umesh4exp
    LVL 61

    Assisted Solution

    For which apache? IBM HTTPD/one from aixpdslib/one from linux affinity toolkit/one from bullfreeware?
    It seems that you have AIX ld in $PATH before GNU ld, that prevents you from compiling anything on your system.
    LVL 68

    Accepted Solution

    as gheist said, it's a problem using the appropriate linker.

    IBM's ld doesn't support the '-shared' option, that's why it complains about -h, -a.

    The gnu linker gets installed under AIX as /opt/freeware/GNUPro/bin/gld

    Putting it in the PATH would have no effect, since gcc normally calls ld, not gld.

    One possibility is to link /usr/local/bin/ld to gld, and to take care that /usr/local/bin precedes /usr/bin in the PATH:

    ln -sf /opt/freeware/GNUPro/bin/gld  /usr/local/bin/ldexport PATH=/usr/local/bin:$PATH

    You could also try calling make by: make LD=/opt/freeware/GNUPro/bin/gld ...
    but I never used that and thus don't know if it will work.
    Quite another possibility could be using the --disable-shared / --enable-static options of configure, but I'm not sure if this is possible with resin.

    Good luck!



    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap ( Version 1.2 2.      Jpcap( Version 0.6 Prerequisite: 1.      GCC …
    FreeBSD on EC2 FreeBSD ( is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now