编译pysvn 1.7.2版本出现下面问题
g++ -shared -o pysvn/_pysvn_2_5.so pysvn.o pysvn_callbacks.o pysvn_client.o pysvn_static_strings.o pysvn_enum_string.o pysvn_client_cmd_add.o pysvn_client_cmd_changelist.o pysvn_client_cmd_checkin.o pysvn_client_cmd_copy.o pysvn_client_cmd_diff.o pysvn_client_cmd_export.o pysvn_client_cmd_info.o pysvn_client_cmd_list.o pysvn_client_cmd_lock.o pysvn_client_cmd_merge.o pysvn_client_cmd_prop.o pysvn_client_cmd_revprop.o pysvn_client_cmd_switch.o pysvn_transaction.o pysvn_revision.o pysvn_docs.o pysvn_path.o pysvn_arg_processing.o pysvn_converters.o pysvn_svnenv.o pysvn_profile.o cxxsupport.o cxx_extensions.o cxxextensions.o IndirectPythonInterface.o -L/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib -lsvn_client-1 -lsvn_diff-1 -lsvn_repos-1 -lresolv -lexpat -lneon
ld: fatal: unrecognized option '--'
ld: fatal: use the -z help option for usage information
collect2: ld returned 1 exit status
make: *** [pysvn/_pysvn_2_5.so] Error 1
开始换GNU 的ld,出现其他问题,都没什么错误提示,还是回到SUN的ld吧
修改Makefile 文件LDLIBS=-L/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib -lsvn_client-1 -lsvn_diff-1 -lsvn_repos-1 -lresolv -lexpat -lneon
-> LDLIBS=-L/usr/local/lib -Wl, -rpath -Wl,/usr/local/lib -lsvn_client-1 -lsvn_diff-1 -lsvn_repos-1 -lresolv -lexpat -lneon
吧rpath前面的横线去一个,重新make就可以了。