[ 
https://issues.apache.org/jira/browse/DAEMON-174?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bruno Mahé updated DAEMON-174:
------------------------------

    Attachment: commons-daemon-native-build.patch

Here is a patch to fix this issue.

It has been locally tested.

> unix makefile should pass CFLAGS to link command
> ------------------------------------------------
>
>                 Key: DAEMON-174
>                 URL: https://issues.apache.org/jira/browse/DAEMON-174
>             Project: Commons Daemon
>          Issue Type: Bug
>            Reporter: Bruno Mahé
>            Priority: Minor
>         Attachments: commons-daemon-native-build.patch
>
>
> I am trying to compile a 32bit version of jsvc from a 64bit host and got some 
> issues at link time because CFLAGS (and therefore -m32) does not get passed 
> to the link command.
> Here is some output:
> gcc  jsvc-unix.o libservice.a -ldl -lpthread -o ../jsvc
> /usr/bin/ld: i386 architecture of input file `jsvc-unix.o' is incompatible 
> with i386:x86-64 output
> /usr/bin/ld: i386 architecture of input file `libservice.a(arguments.o)' is 
> incompatible with i386:x86-64 output
> /usr/bin/ld: i386 architecture of input file `libservice.a(debug.o)' is 
> incompatible with i386:x86-64 output
> /usr/bin/ld: i386 architecture of input file `libservice.a(help.o)' is 
> incompatible with i386:x86-64 output
> /usr/bin/ld: i386 architecture of input file `libservice.a(home.o)' is 
> incompatible with i386:x86-64 output
> /usr/bin/ld: i386 architecture of input file `libservice.a(java.o)' is 
> incompatible with i386:x86-64 output
> /usr/bin/ld: i386 architecture of input file `libservice.a(location.o)' is 
> incompatible with i386:x86-64 output
> /usr/bin/ld: i386 architecture of input file `libservice.a(replace.o)' is 
> incompatible with i386:x86-64 output
> /usr/bin/ld: i386 architecture of input file `libservice.a(dso-dlfcn.o)' is 
> incompatible with i386:x86-64 output
> collect2: ld returned 1 exit status
> make[1]: *** [jsvc] Error 1

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

Reply via email to