Hello, I have read through the various posts relating to compiling libev w/ GCC on AIX and I have already tried the suggested modifications.
Any help would be very much appreciated. Here is my current setup: 1) gcc 4.2.4 2) libev 3.9 3) AIX 5.3 TL11 SP2 CPU Type: 64-bit Kernel Type: 64-bit 1) /fix/passenger-3.0.7/ext/libev/aclocal.m4 #--- #--- Add the following lines after 'Set sane defaults' stanza #--- CC=gcc CFLAGS="-DSYSV -D_AIX -D_AIX32 -D_AIX41 -D_AIX43 -D_AIX51 -D_AIX52 -D_AIX53 -D_ALL_SOURCE -DFUNCPROTO=15 -O -I/opt/freeware/include" LTCC=$CC LTCFLAGS=$CFLAGS LD=ld LDFLAGS="-L/opt/freeware/lib -Wl,-blibpath:/opt/freeware/lib:/usr/lib:/lib -Wl,-bmaxdata:0x80000000" 2) /fix/passenger-3.0.7/ext/libev/ev.c Set EV_USE_POLL 0 3) /fix/passenger-3.0.7/ext/libev/aclocal.m4 test -z "$AR_FLAGS" && AR_FLAGS="-X32 -cru" /fix/passenger-3.0.7/ext/libev/configure test -z "$AR_FLAGS" && AR_FLAGS="-X32 -cru" /fix/passenger-3.0.7/ext/libev/libtool AR_FLAGS="-X32 -cru" Note, 'ar -X64 -cru' didn't work successfully in my environment I got the following error message: "not valid with the current object file mode Use the -X option to specify the desired object mode." config.status: creating Makefile config.status: creating config.h config.status: executing depfiles commands rm -f ext/libev//libev.la cd ext/libev/ && make libev.la /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.-DSYSV -D_AIX -D_AIX32 -D_AIX41 -D_AIX43 -D_AIX51 -D_AIX52 -D_AIX53 -D_ALL_SOURCE -DFUNCPROTO=15 -O -I/opt/freeware/include -I/opt/ruby-1.9.2-p180/include -O3 -c -o ev.lo ev.c gcc -DHAVE_CONFIG_H -I. -DSYSV -D_AIX -D_AIX32 -D_AIX41 -D_AIX43 -D_AIX51 -D_AIX52 -D_AIX53 -D_ALL_SOURCE -DFUNCPROTO=15 -O -I/opt/freeware/include -I/opt/ruby-1.9.2-p180/include -O3 -c ev.c -o ev.o /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.-DSYSV -D_AIX -D_AIX32 -D_AIX41 -D_AIX43 -D_AIX51 -D_AIX52 -D_AIX53 -D_ALL_SOURCE -DFUNCPROTO=15 -O -I/opt/freeware/include -I/opt/ruby-1.9.2-p180/include -O3 -c -o event.lo event.c gcc -DHAVE_CONFIG_H -I. -DSYSV -D_AIX -D_AIX32 -D_AIX41 -D_AIX43 -D_AIX51 -D_AIX52 -D_AIX53 -D_ALL_SOURCE -DFUNCPROTO=15 -O -I/opt/freeware/include -I/opt/ruby-1.9.2-p180/include -O3 -c event.c -o event.o /bin/sh ./libtool --tag=CC --mode=link gcc -DSYSV -D_AIX -D_AIX32 -D_AIX41 -D_AIX43 -D_AIX51 -D_AIX52 -D_AIX53 -D_ALL_SOURCE -DFUNCPROTO=15 -O -I/opt/freeware/include -I/opt/ruby-1.9.2-p180/include -O3 -version-info 3:0 -L/opt/freeware/lib -Wl,-L/opt/ruby-1.9.2-p180/lib -Wl,-blibpath:/opt/freeware/lib:/opt/ruby-1.9.2-p180/lib:/usr/lib:/lib -Wl,-bmaxdata:0x80000000 -o libev.la -rpath /usr/local/lib ev.lo event.lo -lm mkdir .libs ar -X32 -cru .libs/libev.a ev.o event.o ranlib .libs/libev.a creating libev.la (cd .libs && rm -f libev.la && ln -s ../libev.la libev.la) g++ ext/common/LoggingAgent/Main.cpp -o agents/PassengerLoggingAgent -Iext -Iext/common -Iext/libev -I/usr/local/curl-7.21.6/include -DHAS_CURL_EASY_RESET -D_REENTRANT -I/usr/local/include -DHASH_NAMESPACE="__gnu_cxx" -DHASH_FUN_H="<ext/hash_fun.h>" -DOXT_DISABLE_BACKTRACES -Wall -g -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS ext/common/libpassenger_common.a ext/common/libboost_oxt.a ext/libev/.libs/libev.a -L/usr/local/curl-7.21.6/lib -lcurl -lz -lpthread In file included from ext/common/LoggingAgent/LoggingServer.h:35, from ext/common/LoggingAgent/Main.cpp:43: ext/libev/ev++.h:71: error: expected identifier before numeric constant ext/libev/ev++.h:71: error: expected `}' before numeric constant ext/libev/ev++.h:71: error: expected unqualified-id before numeric constant ext/libev/ev++.h:215: error: 'tstamp' does not name a type ext/libev/ev++.h:241: error: 'tstamp' has not been declared ext/libev/ev++.h:246: error: 'tstamp' has not been declared ext/libev/ev++.h:253: error: 'tstamp' has not been declared ext/libev/ev++.h:260: error: 'tstamp' has not been declared ext/libev/ev++.h:267: error: 'tstamp' has not been declared ext/libev/ev++.h:281: error: 'tstamp' has not been declared ext/libev/ev++.h:295: error: 'tstamp' has not been declared ext/libev/ev++.h:309: error: 'tstamp' has not been declared ext/libev/ev++.h:510: error: 'tstamp' does not name a type ext/libev/ev++.h:515: error: variable or field 'delay' declared void ext/libev/ev++.h:515: error: 'tstamp' was not declared in this scope ext/libev/ev++.h:710: error: redefinition of 'struct stat' /usr/include/sys/stat.h:66: error: previous definition of 'struct stat' ext/libev/ev++.h:771: error: type/value mismatch at argument 2 in template parameter list for 'template<class ev_watcher, class watcher> struct base' ext/libev/ev++.h:771: error: expected a type, got 'fork' ext/libev/ev++.h:771: error: type 'base<ev_fork, fork>' is not a base type for type 'fork' ext/libev/ev++.h: In member function 'void fork::start()': ext/libev/ev++.h:771: error: 'loop' was not declared in this scope ext/libev/ev++.h:771: error: invalid static_cast from type 'fork* const' to type 'ev_fork*' ext/libev/ev++.h: In member function 'void fork::stop()': ext/libev/ev++.h:771: error: 'loop' was not declared in this scope ext/libev/ev++.h:771: error: invalid static_cast from type 'fork* const' to type 'ev_fork*' ext/libev/ev++.h: In constructor 'fork::fork(loop_ref)': ext/libev/ev++.h:771: error: type 'base<ev_fork, fork>' is not a direct base of 'fork' ext/libev/ev++.h: At global scope: ext/libev/ev++.h:797: error: expected declaration before '}' token rake aborted! Command failed with status (1): [g++ ext/common/LoggingAgent/Main.cpp -o ag...] /opt/ruby-1.9.2-p180/lib/ruby/1.9.1/rake.rb:993:in `block in sh' /opt/ruby-1.9.2-p180/lib/ruby/1.9.1/rake.rb:1008:in `call' /opt/ruby-1.9.2-p180/lib/ruby/1.9.1/rake.rb:1008:in `sh' /opt/ruby-1.9.2-p180/lib/ruby/1.9.1/rake.rb:1092:in `sh' /fix/passenger-3.0.7/build/cplusplus_support.rb:47:in `create_executable' /fix/passenger-3.0.7/build/agents.rb:62:in `block in <top (required)>' /opt/ruby-1.9.2-p180/lib/ruby/1.9.1/rake.rb:634:in `call' /opt/ruby-1.9.2-p180/lib/ruby/1.9.1/rake.rb:634:in `block in execute' /opt/ruby-1.9.2-p180/lib/ruby/1.9.1/rake.rb:629:in `each' /opt/ruby-1.9.2-p180/lib/ruby/1.9.1/rake.rb:629:in `execute' /opt/ruby-1.9.2-p180/lib/ruby/1.9.1/rake.rb:595:in `block in invoke_with_call_chain' /opt/ruby-1.9.2-p180/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize' /opt/ruby-1.9.2-p180/lib/ruby/1.9.1/rake.rb:588:in `invoke_with_call_chain' /opt/ruby-1.9.2-p180/lib/ruby/1.9.1/rake.rb:605:in `block in invoke_prerequisites' /opt/ruby-1.9.2-p180/lib/ruby/1.9.1/rake.rb:602:in `each' /opt/ruby-1.9.2-p180/lib/ruby/1.9.1/rake.rb:602:in `invoke_prerequisites' /opt/ruby-1.9.2-p180/lib/ruby/1.9.1/rake.rb:594:in `block in invoke_with_call_chain' /opt/ruby-1.9.2-p180/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize' /opt/ruby-1.9.2-p180/lib/ruby/1.9.1/rake.rb:588:in `invoke_with_call_chain' /opt/ruby-1.9.2-p180/lib/ruby/1.9.1/rake.rb:581:in `invoke' /opt/ruby-1.9.2-p180/lib/ruby/1.9.1/rake.rb:2041:in `invoke_task' /opt/ruby-1.9.2-p180/lib/ruby/1.9.1/rake.rb:2019:in `block (2 levels) in top_level' /opt/ruby-1.9.2-p180/lib/ruby/1.9.1/rake.rb:2019:in `each' /opt/ruby-1.9.2-p180/lib/ruby/1.9.1/rake.rb:2019:in `block in top_level' /opt/ruby-1.9.2-p180/lib/ruby/1.9.1/rake.rb:2058:in `standard_exception_handling' /opt/ruby-1.9.2-p180/lib/ruby/1.9.1/rake.rb:2013:in `top_level' /opt/ruby-1.9.2-p180/lib/ruby/1.9.1/rake.rb:1992:in `run' /opt/ruby-1.9.2-p180/bin/rake:31:in `<main>' -------------------------------------------- /fix/passenger-3.0.7/lib/phusion_passenger/console_text_template.rb:33:in `read': No such file or directory - /fix/passenger-3.0.7/lib/phusion_passenger/templates/apache2/ possible_solutions_for_compilation_and_installation_problems.txt.erb (Errno::ENOENT) from /fix/passenger-3.0.7/lib/phusion_passenger/console_text_template.rb:33:in `initialize' from /fix/passenger-3.0.7/lib/phusion_passenger/abstract_installer.rb:95:in `new' from /fix/passenger-3.0.7/lib/phusion_passenger/abstract_installer.rb:95:in `render_template' from ./bin/passenger-install-apache2-module:196:in `show_possible_solutions_for_compilation_and_installation_problems' from ./bin/passenger-install-apache2-module:97:in `install!' from /fix/passenger-3.0.7/lib/phusion_passenger/abstract_installer.rb:63:in `start' from ./bin/passenger-install-apache2-module:236:in `<main>' /fix/passenger-3.0.7 gccusr@oappdev: $ _______________________________________________ libev mailing list [email protected] http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev
