commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Ribeaud (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (DAEMON-98) make fails for jsvc on OS X
Date Thu, 23 Apr 2009 02:43:47 GMT

    [ https://issues.apache.org/jira/browse/DAEMON-98?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12701787#action_12701787
] 

Christian Ribeaud edited comment on DAEMON-98 at 4/22/09 7:42 PM:
------------------------------------------------------------------

The patch does not work on *Mac OS X 10.5* (_Leopard_), I am using *Xcode 3.1.2*.
I get following output:

{noformat}
[04:11 christianr@Procyon] sh ./configure
*** Current host ***
checking build system type... i386-apple-darwin9.6.0
checking host system type... i386-apple-darwin9.6.0
checking cached host system type... ok
*** C-Language compilation tools ***
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for ranlib... ranlib
*** Host support ***
checking C flags dependant on host system type... ok
*** Java compilation tools ***
checking for javac... /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin/javac
checking wether the Java compiler (/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin/javac)
works... yes
checking for jar... /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin/jar
gcc flags added
*** Writing output files ***
configure: creating ./config.status
config.status: creating Makefile
config.status: creating Makedefs
config.status: creating native/Makefile
*** All done ***
Now you can issue "make"
[04:11 christianr@Procyon] make
make -C native all
gcc -g -O2 -DOS_DARWIN -DDSO_DLFCN -DCPU=\"i386\" -I/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Headers
-Wall -Wstrict-prototypes -c dso-dyld.c -o dso-dyld.o
gcc -g -O2 -DOS_DARWIN -DDSO_DLFCN -DCPU=\"i386\" -I/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Headers
-Wall -Wstrict-prototypes -c help.c -o help.o
gcc -g -O2 -DOS_DARWIN -DDSO_DLFCN -DCPU=\"i386\" -I/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Headers
-Wall -Wstrict-prototypes -c home.c -o home.o
gcc -g -O2 -DOS_DARWIN -DDSO_DLFCN -DCPU=\"i386\" -I/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Headers
-Wall -Wstrict-prototypes -c java.c -o java.o
java.c:49: warning: function declaration isn't a prototype
java.c: In function 'java_init':
java.c:122: warning: implicit declaration of function 'dso_error'
gcc -g -O2 -DOS_DARWIN -DDSO_DLFCN -DCPU=\"i386\" -I/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Headers
-Wall -Wstrict-prototypes -c location.c -o location.o
gcc -g -O2 -DOS_DARWIN -DDSO_DLFCN -DCPU=\"i386\" -I/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Headers
-Wall -Wstrict-prototypes -c replace.c -o replace.o
gcc -g -O2 -DOS_DARWIN -DDSO_DLFCN -DCPU=\"i386\" -I/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Headers
-Wall -Wstrict-prototypes -c signals.c -o signals.o
ar cr libservice.a arguments.o debug.o dso-dlfcn.o dso-dyld.o help.o home.o java.o location.o
replace.o signals.o
ranlib: file: libservice.a(dso-dlfcn.o) has no symbols
ranlib: file: libservice.a(dso-dyld.o) has no symbols
ranlib: file: libservice.a(signals.o) has no symbols
ranlib libservice.a
ranlib: file: libservice.a(dso-dlfcn.o) has no symbols
ranlib: file: libservice.a(dso-dyld.o) has no symbols
ranlib: file: libservice.a(signals.o) has no symbols
gcc  jsvc-unix.o libservice.a -o ../jsvc
Undefined symbols:
  "_dso_link", referenced from:
      _java_init in libservice.a(java.o)
      _java_init in libservice.a(java.o)
  "_dso_symbol", referenced from:
      _java_init in libservice.a(java.o)
      _java_init in libservice.a(java.o)
  "_dso_init", referenced from:
      _java_init in libservice.a(java.o)
  "_dso_error", referenced from:
      _java_init in libservice.a(java.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [jsvc] Error 1
make: *** [native/all] Error 2
{noformat}
Up to this link [http://www.malisphoto.com/tips/tomcatonosx.html] I should use *Xcode 3.0*
and not *Xcode 3.1*. However the switch is not that easy. How can I proceed?
Thanks for you help.

      was (Author: christianr):
    The patch does not work on *Mac OS X 10.5* (_Leopard_), I am using *Xcode 3.1.2*.
I get following output:\\

{noformat}
[04:11 christianr@Procyon] sh ./configure
*** Current host ***
checking build system type... i386-apple-darwin9.6.0
checking host system type... i386-apple-darwin9.6.0
checking cached host system type... ok
*** C-Language compilation tools ***
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for ranlib... ranlib
*** Host support ***
checking C flags dependant on host system type... ok
*** Java compilation tools ***
checking for javac... /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin/javac
checking wether the Java compiler (/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin/javac)
works... yes
checking for jar... /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin/jar
gcc flags added
*** Writing output files ***
configure: creating ./config.status
config.status: creating Makefile
config.status: creating Makedefs
config.status: creating native/Makefile
*** All done ***
Now you can issue "make"
[04:11 christianr@Procyon] make
make -C native all
gcc -g -O2 -DOS_DARWIN -DDSO_DLFCN -DCPU=\"i386\" -I/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Headers
-Wall -Wstrict-prototypes -c dso-dyld.c -o dso-dyld.o
gcc -g -O2 -DOS_DARWIN -DDSO_DLFCN -DCPU=\"i386\" -I/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Headers
-Wall -Wstrict-prototypes -c help.c -o help.o
gcc -g -O2 -DOS_DARWIN -DDSO_DLFCN -DCPU=\"i386\" -I/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Headers
-Wall -Wstrict-prototypes -c home.c -o home.o
gcc -g -O2 -DOS_DARWIN -DDSO_DLFCN -DCPU=\"i386\" -I/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Headers
-Wall -Wstrict-prototypes -c java.c -o java.o
java.c:49: warning: function declaration isn't a prototype
java.c: In function 'java_init':
java.c:122: warning: implicit declaration of function 'dso_error'
gcc -g -O2 -DOS_DARWIN -DDSO_DLFCN -DCPU=\"i386\" -I/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Headers
-Wall -Wstrict-prototypes -c location.c -o location.o
gcc -g -O2 -DOS_DARWIN -DDSO_DLFCN -DCPU=\"i386\" -I/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Headers
-Wall -Wstrict-prototypes -c replace.c -o replace.o
gcc -g -O2 -DOS_DARWIN -DDSO_DLFCN -DCPU=\"i386\" -I/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Headers
-Wall -Wstrict-prototypes -c signals.c -o signals.o
ar cr libservice.a arguments.o debug.o dso-dlfcn.o dso-dyld.o help.o home.o java.o location.o
replace.o signals.o
ranlib: file: libservice.a(dso-dlfcn.o) has no symbols
ranlib: file: libservice.a(dso-dyld.o) has no symbols
ranlib: file: libservice.a(signals.o) has no symbols
ranlib libservice.a
ranlib: file: libservice.a(dso-dlfcn.o) has no symbols
ranlib: file: libservice.a(dso-dyld.o) has no symbols
ranlib: file: libservice.a(signals.o) has no symbols
gcc  jsvc-unix.o libservice.a -o ../jsvc
Undefined symbols:
  "_dso_link", referenced from:
      _java_init in libservice.a(java.o)
      _java_init in libservice.a(java.o)
  "_dso_symbol", referenced from:
      _java_init in libservice.a(java.o)
      _java_init in libservice.a(java.o)
  "_dso_init", referenced from:
      _java_init in libservice.a(java.o)
  "_dso_error", referenced from:
      _java_init in libservice.a(java.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [jsvc] Error 1
make: *** [native/all] Error 2
{noformat}
Up to this link [http://www.malisphoto.com/tips/tomcatonosx.html] I should use *Xcode 3.0*
and not *Xcode 3.1*. However the switch is not that easy. How can I proceed?
Thanks for you help.
  
> make fails for jsvc on OS X
> ---------------------------
>
>                 Key: DAEMON-98
>                 URL: https://issues.apache.org/jira/browse/DAEMON-98
>             Project: Commons Daemon
>          Issue Type: Bug
>    Affects Versions: 1.0, 1.0.1
>         Environment: OS X 10.4.9 Server on i386
> Darwin Kernel Version 8.9.1: Thu Feb 22 20:55:00 PST 2007; root:xnu-792.18.15~1/RELEASE_I386
i386 i386
> java version "1.5.0_07"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-164)
> Java HotSpot(TM) Server VM (build 1.5.0_07-87, mixed mode)
>            Reporter: Amos Hayes
>         Attachments: osx-leopard.txt, osx_patch.txt
>
>
> With both jsvc.tar.gz from tomcat 6.0.10 and the daemon-1.0.1.tar.gz sources from the
commons project, when I try to configure/compile jsvc on OS X, I get the following:
> arthur:/usr/local/apache-tomcat-6.0.10/bin/daemon-1.0.1/src/native/unix root# ./configure

> *** Current host ***
> checking build system type... i386-apple-darwin8.9.1
> checking host system type... i386-apple-darwin8.9.1
> checking cached host system type... ok
> *** C-Language compilation tools ***
> checking for gcc... gcc
> checking for C compiler default output file name... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for suffix of executables... 
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ANSI C... none needed
> checking for ranlib... ranlib
> *** Host support ***
> checking C flags dependant on host system type... ok
> *** Java compilation tools ***
> checking for javac... /System/Library/Frameworks/JavaVM.framework/Home/bin/javac
> checking wether the Java compiler (/System/Library/Frameworks/JavaVM.framework/Home/bin/javac)
works... yes
> checking for jar... /System/Library/Frameworks/JavaVM.framework/Home/bin/jar
> gcc flags added
> *** Writing output files ***
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating Makedefs
> config.status: creating native/Makefile
> *** All done ***
> Now you can issue "make"
> arthur:/usr/local/apache-tomcat-6.0.10/bin/daemon-1.0.1/src/native/unix root# make
> make -C native all
> gcc -g -O2 -DOS_DARWIN -DDSO_DYLD -DCPU=\"i386\" -I/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Headers
-Wall -Wstrict-prototypes -c jsvc-unix.c -o jsvc-unix.o
> gcc -g -O2 -DOS_DARWIN -DDSO_DYLD -DCPU=\"i386\" -I/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Headers
-Wall -Wstrict-prototypes -c arguments.c -o arguments.o
> arguments.c: In function 'arguments':
> arguments.c:251: warning: unused variable 'temp'
> gcc -g -O2 -DOS_DARWIN -DDSO_DYLD -DCPU=\"i386\" -I/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Headers
-Wall -Wstrict-prototypes -c debug.c -o debug.o
> gcc -g -O2 -DOS_DARWIN -DDSO_DYLD -DCPU=\"i386\" -I/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Headers
-Wall -Wstrict-prototypes -c dso-dlfcn.c -o dso-dlfcn.o
> gcc -g -O2 -DOS_DARWIN -DDSO_DYLD -DCPU=\"i386\" -I/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Headers
-Wall -Wstrict-prototypes -c dso-dyld.c -o dso-dyld.o
> dso-dyld.c:54: error: conflicting types for 'dso_init'
> dso.h:24: error: previous declaration of 'dso_init' was here
> dso-dyld.c: In function 'dso_link':
> dso-dyld.c:69: warning: 'NSAddLibrary' is deprecated (declared at /usr/include/mach-o/dyld.h:224)
> dso-dyld.c: At top level:
> dso-dyld.c:76: error: conflicting types for 'dso_unlink'
> dso.h:26: error: previous declaration of 'dso_unlink' was here
> dso-dyld.c: In function 'dso_symbol':
> dso-dyld.c:109: warning: operation on 'x' may be undefined
> dso-dyld.c:113: warning: 'NSLookupAndBindSymbol' is deprecated (declared at /usr/include/mach-o/dyld.h:158)
> dso-dyld.c: At top level:
> dso-dyld.c:127: warning: function declaration isn't a prototype
> make[1]: *** [dso-dyld.o] Error 1
> make: *** [native/all] Error 2

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message