commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jian Le (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DAEMON-321) Support the zLinux system
Date Fri, 11 Jul 2014 22:25:05 GMT

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

Jian Le commented on DAEMON-321:
--------------------------------

Hi Emmanuel,

Here is what I see inside the /commons-daemon-1.0.15-src/src/native/unix/support/apsupport.m4
file


s390)
    CFLAGS="$CFLAGS -DCPU=\\\"s390\\\""
    supported_os="s390"
    HOST_CPU=s390
    ;;

I tried your approach and it worked on zLinux as well.  If I do not make any changes to the
apsupport.m4 file, I get:

[biadmin@svlxbgi2 unix]$ ./support/buildconf.sh
./support/buildconf.sh: configure script generated successfully
[biadmin@svlxbgi2 unix]$ ./configure --with-java=/opt/ibm/java-s390x-70
*** Current host ***
checking build system type... s390x-ibm-linux-gnu
checking host system type... s390x-ibm-linux-gnu
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
checking for strip... strip
*** Host support ***
checking C flags dependant on host system type... failed
configure: error: Unsupported CPU architecture "s390x"

Thanks,
-Jian





On Friday, July 11, 2014 7:05 AM, Emmanuel Bourg (JIRA) <jira@apache.org> wrote:
 



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

Emmanuel Bourg commented on DAEMON-321:
---------------------------------------

Hi Jian, I thought we already supported s390x, see:

https://github.com/apache/commons-daemon/blob/1.0.x/src/native/unix/support/apsupport.m4#L172

{code}
  s390 | s390x)
    CFLAGS="$CFLAGS -DCPU=\\\"s390\\\""
    supported_os="s390"
    HOST_CPU=s390
    ;;
{code}

This change was taken from the Debian package and it seems to build:

https://buildd.debian.org/status/fetch.php?pkg=commons-daemon&arch=s390x&ver=1.0.15-5&stamp=1390779767

Is it correct for you?





--
This message was sent by Atlassian JIRA
(v6.2#6252)


> Support the zLinux system
> -------------------------
>
>                 Key: DAEMON-321
>                 URL: https://issues.apache.org/jira/browse/DAEMON-321
>             Project: Commons Daemon
>          Issue Type: New Feature
>          Components: Jsvc
>    Affects Versions: 1.0.15
>         Environment: zLinux systems
>            Reporter: Jian Le
>              Labels: features
>             Fix For: 1.0.16
>
>   Original Estimate: 5m
>  Remaining Estimate: 5m
>
> We just need to add 5 lines into the /commons-daemon-1.0.16-src/src/native/unix/support/apsupport.m4
file:
> s390x)
>     CFLAGS="$CFLAGS -DCPU=\\\"s390x\\\""
>     supported_os="s390x"
>     HOST_CPU=s390x
>     ;;
> Preferably right after the s390 platform.   



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message