You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by "Mark Hindess (JIRA)" <ji...@apache.org> on 2006/02/27 11:34:51 UTC

[jira] Commented: (HARMONY-136) Cannot make libvmi.so and libhytext.so on linux

    [ http://issues.apache.org/jira/browse/HARMONY-136?page=comments#action_12367930 ] 

Mark Hindess commented on HARMONY-136:
--------------------------------------

I can reproduce this on make v3.79.1 but not on v3.80.  I'm pretty sure it must be a bug in the make parser.  It's falling over on the "--start-group \\r\n" sequence which also appears in most of the other dll makefiles.  A trivial change such as joining "--start-group \\r\n -lhyzip \\r\n" to a the single line "--start-group -lhyzip \\r\n" fixes the problem.

On the plus side, this problem occur when I use the latest trunk with my outstanding JIRA patches applied.  But I don't think this is something we can easily code to avoid so it might be best upgrading anyway.

Just grabbing ftp://ftp.gnu.org/gnu/make/make-3.80.tar.bz2 and replacing /usr/bin/make with a version built from that source should help avoid this kind of problem in future.


> Cannot make libvmi.so and libhytext.so on linux
> -----------------------------------------------
>
>          Key: HARMONY-136
>          URL: http://issues.apache.org/jira/browse/HARMONY-136
>      Project: Harmony
>         Type: Bug
>   Components: Classlib
>     Reporter: Richard Liang

>
> Hello,
> When trying to build Harmony native code on my redhat linux (RHEL 3), I fail to make the libvmi.so. But after I convert the "makefile"(revision=379478) to unix format using dos2unix, the "make" is successful. The same problem occurs in module text.
> in /native-src/linux.IA32/vmi/
> ====issue command: make 
> ====output:
> cc -fpic  -DLINUX -D_REENTRANT -O1 -march=pentium3 -DIPv6_FUNCTION_SUPPORT  -DHYX86 -I../include    -c -o vmi_copyright.o vmi_copyright.c
> cc -fpic  -DLINUX -D_REENTRANT -O1 -march=pentium3 -DIPv6_FUNCTION_SUPPORT  -DHYX86 -I../include    -c -o vmi.o vmi.c
> cc  -shared  -Wl,-Map=vmi.map \
> -Wl,--version-script,vmi.exp -Wl,-soname=libvmi.so \
>  -L.  -L../lib -L.. -o ../libvmi.so \
> vmi_copyright.o vmi.o -Xlinker --start-group \
> : No such file or directory
> make: *** [../libvmi.so] Error 1
> ====issue command: dos2unix makefile
> ====issue command: make
> ====output:
> cc  -shared  -Wl,-Map=vmi.map \
> -Wl,--version-script,vmi.exp -Wl,-soname=libvmi.so \
>  -L.  -L../lib -L.. -o ../libvmi.so \
> vmi_copyright.o vmi.o -Xlinker --start-group \
> -lhyzip \
> -lhypool -Xlinker --end-group  -lc -lm -ldl

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira