Uploaded image for project: 'Commons Daemon'
  1. Commons Daemon
  2. DAEMON-98

make fails for jsvc on OS X

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0, 1.0.1
    • 1.0.2
    • None
    • None

    Description

      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

      Attachments

        1. osx_patch.txt
          0.4 kB
          Amos Hayes
        2. osx-leopard.txt
          0.9 kB
          John Malis

        Activity

          People

            Unassigned Unassigned
            ahayes Amos Hayes
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: