Hi,

i have a problem to deploy WO on Linux.

I have made all steps described on  http://www.tetlabors.de/wo/setup_webobjects_on_linux.html

but it does not work....

i have a problem compiling the adaptor.

here is what i did:

1. 
set export OS=LINUX and put under /etc/profile.local .

2.
Then i have added under $NEXT_ROOT/Developer/Examples/WebObjects/Source/Adaptors/make.config following entries:
# LINUX 
ifeq "LINUX" "$(OS)" 
ADAPTORS = CGI Apache 
# Default path for apxs 
APXS = /usr/local/apache/bin/apxs 
endif 

3.
Then i did:
Open $NEXT_ROOT/Developer/Examples/WebObjects/Source/Adaptors/Apache/Makefile and copy-and-paste the following lines after the last endif (around line 66):

ifeq "LINUX" "$(OS)"

# If Apache is in a nonstandard location, change this
APACHEINCLUDEFLAGS = -I/usr/local/apache/include

CFLAGS = -O2 -Wall -I../Adaptor ${LDAPACHESSLFLAG} $(DEBUG_FLAG) -DSINGLE_THREADED_ADAPTOR -D$(OS) -DEAPI -DFORKING_WEBSERVER -DAPACHE ${OPENSSLINCLUDEFLAGS} ${APACHEINCLUDEFLAGS} ${OPENSSLLIBFLAGS} -L/lib 
APXSFLAGS = -i
LDFLAGS += -G -L/lib -lc ${OPENSSLLIBFLAGS}

all: adaptor

adaptor: mod_WebObjects.so
○${APXS} ${APXSFLAGS} mod_WebObjects.so 

mod_WebObjects.so : mod_WebObjects.o ${COMMON_OBJFILES}
# ${APXS} ${APXSFLAGS} -c mod_WebObjects.c ${COMMON_OBJFILES}
# ${APXS} ${APXSFLAGS} mod_WebObjects.o ${COMMON_OBJFILES}
○ld ${LDFLAGS} mod_WebObjects.o ${COMMON_OBJFILES} -o mod_WebObjects.so

clean:
○rm -f mod_WebObjects.so mod_WebObjects.o *.o

#mod_WebObjects.o: mod_WebObjects.c
# ${APXS} ${APXSFLAGS} -c mod_WebObjects.c

mod_WebObjects.o: mod_WebObjects.c ${COMMON_OBJFILES}
○${CC} -c ${CFLAGS} mod_WebObjects.c ${COMMON_OBJFILES}
endif

Note: These funny looking circles (like at the beginning of: ○${APXS} ${APXSFLAGS} mod_WebObjects.so) are no typing errors but the TAB (tabulator) key. The make process needs them to complete sucessfully, so do not forget them!


4.Then:
The last file to change is $NEXT_ROOT/Developer/Examples/WebObjects/Source/Adaptors/Adaptor/appcfg.c. Search for the following three lines, starting around line 52:

#ifndef MAXPATHLEN
#define MAXPATHLEN 255
#endif

Cut-and-paste these three lines _after_ the following lines (around line 72), like so:

#include <arpa/inet.h> /* inet_addr() */
#include <sys/param.h>
#endif

#ifndef MAXPATHLEN
#define MAXPATHLEN 255
#endif

5.
Then the Last thing to do was:
cd $NEXT_ROOT/Developer/Examples/WebObjects/Source/Adaptors

make clean; make

!!! Now, when i do 'make' i get following exception:

make
Makefile:50: warning: overriding commands for target `clean'
Makefile:34: warning: ignoring old commands for target `clean'
make: *** No rule to make target `mod_WebObjects.c', needed by `mod_WebObjects.o'.  Stop.

Here is the listsing of the Makefile:
include make.config

ifeq "" "${ADAPTOR_BUILD_TARGET}"
ADAPTOR_BUILD_TARGET = adaptors
endif


# By default, only bulid CGI adaptor.
ifeq "" "$(ADAPTORS)"
ADAPTORS = CGI
endif

ifeq "LINUX" "$(OS)"
# If Apache is in a nonstandard location, change this
APACHEINCLUDEFLAGS = -I/usr/local/apache/include
CFLAGS = -O2 -Wall -I../Adaptor ${LDAPACHESSLFLAG} $(DEBUG_FLAG) -DSINGLE_THREADED_ADAPTOR -D$(OS) -DEAPI -DFORKIN
G_WEBSERVER -DAPACHE ${OPENSSLINCLUDEFLAGS} ${APACHEINCLUDEFLAGS} ${OPENSSLLIBFLAGS} -L/lib
APXSFLAGS = -i
LDFLAGS += -G -L/lib -lc ${OPENSSLLIBFLAGS}
all: adaptor
adaptor: mod_WebObjects.so
        ${APXS} ${APXSFLAGS} mod_WebObjects.so
mod_WebObjects.so : mod_WebObjects.o ${COMMON_OBJFILES}
# ${APXS} ${APXSFLAGS} -c mod_WebObjects.c ${COMMON_OBJFILES}
# ${APXS} ${APXSFLAGS} mod_WebObjects.o ${COMMON_OBJFILES}
        ld ${LDFLAGS} mod_WebObjects.o ${COMMON_OBJFILES} -o mod_WebObjects.so
clean:
(34)        rm -f mod_WebObjects.so mod_WebObjects.o *.o
#mod_WebObjects.o: mod_WebObjects.c
# ${APXS} ${APXSFLAGS} -c mod_WebObjects.c
mod_WebObjects.o: mod_WebObjects.c ${COMMON_OBJFILES}
        ${CC} -c ${CFLAGS} mod_WebObjects.c ${COMMON_OBJFILES}
endif

COMMON_TARGETS = Adaptor/make.preamble Adaptor/make.postamble

all: ${ADAPTOR_BUILD_TARGET}

adaptors: ${COMMON_TARGETS} $(ADAPTORS)

clean:
(50)        touch ${COMMON_TARGETS}
        for adaptor in $(ADAPTORS) Adaptor ; do \
                echo Cleaning $$adaptor ; \
                ( cd $${adaptor} ; make clean ) ; \
        done

OS_NOT_DEFINED:
        @echo OS \"${OS}\" unknown. Check the Makefile.
        exit 1

${COMMON_TARGETS}: Adaptor
        cd Adaptor ; make

CGI::
        cd CGI ; make

Apache::
        cd Apache ; make

IIS::
        cd IIS ; make

NSAPI::
        cd NSAPI ; make

The red marked (34 and 50) are the lines wich make trouble...

PLEASE help, i was trying around hours with no success!

Thanks in advance,

Christian Telepski
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to