Thanks for your reply.
I tried below command. but failed.
$ /bin/sh /home/citest/subversion-1.7.0-rc2/libtool --tag=CC --verbose
--mode=link gcc -all-static -static -g -O2 -g -O2 -pthread
-Werror=implicit-function-declaration -lz -rpath
/home/citest/target/svn/lib -o svn add-cmd.lo blame-cmd.lo
cat-cmd.lo changelist-cmd.lo checkout-cmd.lo cleanup-cmd.lo
commit-cmd.lo conflict-callbacks.lo copy-cmd.lo delete-cmd.lo
diff-cmd.lo export-cmd.lo help-cmd.lo import-cmd.lo info-cmd.lo
list-cmd.lo lock-cmd.lo log-cmd.lo main.lo merge-cmd.lo
mergeinfo-cmd.lo mkdir-cmd.lo move-cmd.lo notify.lo patch-cmd.lo
propdel-cmd.lo propedit-cmd.lo propget-cmd.lo proplist-cmd.lo props.lo
propset-cmd.lo relocate-cmd.lo resolve-cmd.lo resolved-cmd.lo
revert-cmd.lo status-cmd.lo status.lo switch-cmd.lo tree-conflicts.lo
unlock-cmd.lo update-cmd.lo upgrade-cmd.lo util.lo
../../subversion/libsvn_client/libsvn_client-1.la
../../subversion/libsvn_wc/libsvn_wc-1.la
../../subversion/libsvn_ra/libsvn_ra-1.la
../../subversion/libsvn_delta/libsvn_delta-1.la
../../subversion/libsvn_diff/libsvn_diff-1.la
../../subversion/libsvn_subr/libsvn_subr-1.la
-L/home/citest/target/apr-util/lib -laprutil-1 -lexpat -liconv
-L/home/citest/target/apr/lib -lapr-1 -lpthread
libtool: link: `add-cmd.lo' is not a valid libtool object
and when i changed all the targets in build-outputs.mk, it works.
i added link options: '-lz -L/home/citest/target/zlib/lib'
subversion/svn/svn$(EXEEXT)
subversion/svn/svnadmin$(EXEEXT)
subversion/svn/svndumpfilter$(EXEEXT)
subversion/svn/svnlook$(EXEEXT)
subversion/svn/svnrdump$(EXEEXT)
subversion/svn/svnserve$(EXEEXT)
subversion/svn/svnsync$(EXEEXT)
2011/9/2 Philip Martin <philip.martin_at_wandisco.com>:
> 檜熱團 <kukgini_at_gmail.com> writes:
>
>> $ make EXTRA_LDFLAGS=-lz
>> cd subversion/svn && /bin/sh
>> /home/citest/subversion-1.7.0-rc2/libtool --tag=CC --silent
>> --mode=link gcc -all-static -static -g -O2 -g -O2 -pthread
>> -Werror=implicit-function-declaration -lz -rpath
>> /home/citest/target/svn/lib -o svn add-cmd.lo blame-cmd.lo
>> cat-cmd.lo changelist-cmd.lo checkout-cmd.lo cleanup-cmd.lo
>> commit-cmd.lo conflict-callbacks.lo copy-cmd.lo delete-cmd.lo
>> diff-cmd.lo export-cmd.lo help-cmd.lo import-cmd.lo info-cmd.lo
>> list-cmd.lo lock-cmd.lo log-cmd.lo main.lo merge-cmd.lo
>> mergeinfo-cmd.lo mkdir-cmd.lo move-cmd.lo notify.lo patch-cmd.lo
>> propdel-cmd.lo propedit-cmd.lo propget-cmd.lo proplist-cmd.lo props.lo
>> propset-cmd.lo relocate-cmd.lo resolve-cmd.lo resolved-cmd.lo
>> revert-cmd.lo status-cmd.lo status.lo switch-cmd.lo tree-conflicts.lo
>> unlock-cmd.lo update-cmd.lo upgrade-cmd.lo util.lo
>> ../../subversion/libsvn_client/libsvn_client-1.la
>> ../../subversion/libsvn_wc/libsvn_wc-1.la
>> ../../subversion/libsvn_ra/libsvn_ra-1.la
>> ../../subversion/libsvn_delta/libsvn_delta-1.la
>> ../../subversion/libsvn_diff/libsvn_diff-1.la
>> ../../subversion/libsvn_subr/libsvn_subr-1.la
>> -L/home/citest/target/apr-util/lib -laprutil-1 -lexpat -liconv
>> -L/home/citest/target/apr/lib -lapr-1 -lpthread
>> ld: 0711-317 ERROR: Undefined symbol: .compressBound
>> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
>> collect2: ld returned 8 exit status
>> make: 1254-004 The error code from the last command is 1.
>
> Run the link command manually but change --silent to --verbose:
>
> (cd subversion/svn && /bin/sh /home/citest/subversion-1.7.0-rc2/libtool --tag=CC --verbose --mode=link gcc -all-static -static -g -O2 -g -O2 -pthread -Werror=implicit-function-declaration -lz -rpath /home/citest/target/svn/lib -o svn add-cmd.lo blame-cmd.lo cat-cmd.lo changelist-cmd.lo checkout-cmd.lo cleanup-cmd.lo commit-cmd.lo conflict-callbacks.lo copy-cmd.lo delete-cmd.lo diff-cmd.lo export-cmd.lo help-cmd.lo import-cmd.lo info-cmd.lo list-cmd.lo lock-cmd.lo log-cmd.lo main.lo merge-cmd.lo mergeinfo-cmd.lo mkdir-cmd.lo move-cmd.lo notify.lo patch-cmd.lo propdel-cmd.lo propedit-cmd.lo propget-cmd.lo proplist-cmd.lo props.lo propset-cmd.lo relocate-cmd.lo resolve-cmd.lo resolved-cmd.lo revert-cmd.lo status-cmd.lo status.lo switch-cmd.lo tree-conflicts.lo unlock-cmd.lo update-cmd.lo upgrade-cmd.lo util.lo ../../subversion/libsvn_client/libsvn_client-1.la ../../subversion/libsvn_wc/libsvn_wc-1.la ../../subversion/libsvn_ra/libsvn_ra-1.la ../../subversion/libsvn_delta/libsvn_delta-1.la ../../subversio
n/libsvn_diff/libsvn_diff-1.la ../../subversion/libsvn_subr/libsvn_subr-1.la -L/home/citest/target/apr-util/lib -laprutil-1 -lexpat -liconv -L/home/citest/target/apr/lib -lapr-1 -lpthread)
>
> The line starting "libtool: link:" is the real link command. What does
> that show? Does it include -lz?
>
>
>
>
>
> --
> uberSVN: Apache Subversion Made Easy
> http://www.uberSVN.com
>
Received on 2011-09-05 02:28:06 CEST