commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mladen Turk (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (DAEMON-174) unix makefile should pass CFLAGS to link command
Date Sat, 18 Sep 2010 05:39:33 GMT

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

Mladen Turk edited comment on DAEMON-174 at 9/18/10 1:39 AM:
-------------------------------------------------------------

See the INSTALL.txt

As for making 64-bit binaries you will need:
export CFLAGS=-m32
export LDFLAGS=-m32
./configure
make

In essence any linker command must be present in LDFLAGS, not CFLAGS


      was (Author: mturk@apache.org):
    See the INSTALL.txt

As for making 66-bit binaries you will need:
export CFLAGS=-m32
export LDFLAGS=-m32
./configure
make

In essence any linker command must be present in LDFLAGS, not CFLAGS

  
> 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.


Mime
View raw message