Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Incomplete
    • Affects Version/s: 3.7.0
    • Fix Version/s: None
    • Component/s: Decaf
    • Labels:
      None
    • Environment:

      HP-UX hp3 B.11.31 U ia64 2723170535

      Description

      I have ./configure and then make.

      This is the error returned by the compiling process:

      Making all in src/main
      /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -ansi -pedantic -DHPUX11 -D_REENTRANT -D_HPUX_SOURCE -D_LARGEFILE64_SOURCE -I/diap6/home/jaeco/dev-root/usr/include/apr-1 -I/usr/local/include -W -Wall -Wextra -Wconversion -fPIC -fstrict-aliasing -Wstrict-aliasing=2 -Wno-long-long -g -O2 -pthread -MT decaf/internal/util/concurrent/unix/libactivemq_cpp_la-PlatformThread.lo -MD -MP -MF decaf/internal/util/concurrent/unix/.deps/libactivemq_cpp_la-PlatformThread.Tpo -c -o decaf/internal/util/concurrent/unix/libactivemq_cpp_la-PlatformThread.lo `test -f 'decaf/internal/util/concurrent/unix/PlatformThread.cpp' || echo './'`decaf/internal/util/concurrent/unix/PlatformThread.cpp
      libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -ansi -pedantic -DHPUX11 -D_REENTRANT -D_HPUX_SOURCE -D_LARGEFILE64_SOURCE -I/diap6/home/jaeco/dev-root/usr/include/apr-1 -I/usr/local/include -W -Wall -Wextra -Wconversion -fPIC -fstrict-aliasing -Wstrict-aliasing=2 -Wno-long-long -g -O2 -pthread -MT decaf/internal/util/concurrent/unix/libactivemq_cpp_la-PlatformThread.lo -MD -MP -MF decaf/internal/util/concurrent/unix/.deps/libactivemq_cpp_la-PlatformThread.Tpo -c decaf/internal/util/concurrent/unix/PlatformThread.cpp -fPIC -DPIC -o decaf/internal/util/concurrent/unix/.libs/libactivemq_cpp_la-PlatformThread.o
      decaf/internal/util/concurrent/unix/PlatformThread.cpp: In static member function 'static void decaf::internal::util::concurrent::PlatformThread::yeild()':
      decaf/internal/util/concurrent/unix/PlatformThread.cpp:450: error: 'pthread_yield' was not declared in this scope

          • Error exit code 1

      Stop.

          • Error exit code 1

      Stop.

          • Error exit code 1
      1. hpux11.patch
        2 kB
        Massimo Cora'

        Activity

        Massimo Cora' created issue -
        Hide
        Timothy Bish added a comment -

        Patches welcomed, I have no access to HPUX so can't test there myself.

        Show
        Timothy Bish added a comment - Patches welcomed, I have no access to HPUX so can't test there myself.
        Hide
        Timothy Bish added a comment -

        Not a directly supported platform, waiting on patches.

        Show
        Timothy Bish added a comment - Not a directly supported platform, waiting on patches.
        Timothy Bish made changes -
        Field Original Value New Value
        Priority Major [ 3 ] Minor [ 4 ]
        Hide
        Massimo Cora' added a comment -

        I can do them, but I need to know what to fix.
        Some more info on the system:

        $ g++ --version
        g++ (GCC) 4.2.3
        Copyright (C) 2007 Free Software Foundation, Inc.
        This is free software; see the source for copying conditions. There is NO
        warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

        Show
        Massimo Cora' added a comment - I can do them, but I need to know what to fix. Some more info on the system: $ g++ --version g++ (GCC) 4.2.3 Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
        Hide
        Timothy Bish added a comment -

        Well, from the error its not finding 'pthread_yield' so you need to either figure out if that's supported any why its not finding it or figure out a workaround.

        Show
        Timothy Bish added a comment - Well, from the error its not finding 'pthread_yield' so you need to either figure out if that's supported any why its not finding it or figure out a workaround.
        Hide
        Massimo Cora' added a comment -

        The following patch permits the compiling on hpux11.

        Please review it and tell me your comments, thanks.

        Show
        Massimo Cora' added a comment - The following patch permits the compiling on hpux11. Please review it and tell me your comments, thanks.
        Massimo Cora' made changes -
        Attachment hpux11.patch [ 12588314 ]
        Hide
        Massimo Cora' added a comment -

        despite the compiling process ends correctly with the attached patches, there's no way to let the 'example' test program to run: it segfaults. I suppose it's a pthreads problem, which are not supported by the OS - at least it seems so.

        Show
        Massimo Cora' added a comment - despite the compiling process ends correctly with the attached patches, there's no way to let the 'example' test program to run: it segfaults. I suppose it's a pthreads problem, which are not supported by the OS - at least it seems so.
        Hide
        Timothy Bish added a comment -

        Its hard to say since I don't know much about that platform. For the patch the pthread_yeild problem seems to be that the autoconf tools aren't setting the correct flags on that OS as there is a branch for using sched_yeild so the correct fix is to determine why that isn't happening. Fixing that might also correct the segfault as there could be other build issue going on but I can't really say.

        Show
        Timothy Bish added a comment - Its hard to say since I don't know much about that platform. For the patch the pthread_yeild problem seems to be that the autoconf tools aren't setting the correct flags on that OS as there is a branch for using sched_yeild so the correct fix is to determine why that isn't happening. Fixing that might also correct the segfault as there could be other build issue going on but I can't really say.
        Hide
        Timothy Bish added a comment -

        Awaiting patch from user, no access to HPUX on my end.

        Show
        Timothy Bish added a comment - Awaiting patch from user, no access to HPUX on my end.
        Timothy Bish made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Incomplete [ 4 ]
        Hide
        Massimo Cora' added a comment -

        I stopped trying a clean compile on HPUX. Too many problems with threads/pthreads - they seems to be non-POSIX on hpux, causing a lot of memory corruption problems.

        Show
        Massimo Cora' added a comment - I stopped trying a clean compile on HPUX. Too many problems with threads/pthreads - they seems to be non-POSIX on hpux, causing a lot of memory corruption problems.

          People

          • Assignee:
            Timothy Bish
            Reporter:
            Massimo Cora'
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development