Neon error occurred during make subversion

Source: Internet
Author: User

When you make subvision, the following error message appears:

/usr/local/src/neon-0.29.6/src/ne_auth.c:781: undefined reference to 'ne__ntlm_ Destroy_Context '

/usr/local/src/neon-0.29.6/src/ne_auth.c:785: undefined reference to ' Ne__ntlm_create_ Context

Collect2:ld returned 1 exit status

Make: * * * [subversion/libsvn_ra_neon/libsvn_ra_neon-1.la] Error 1

Compile a file with the above problem.

The reason is that libneon.a this static library uses some functions such as ne_xml_create, but the definitions of these functions are not found at compile time.

Workaround:

Libneon.a needs to be parsed with expat, or libxml. So, as long as in the system, install expat (such as expat-2.0.0.tar.gz) or libxml can be.

In addition, at compile time, also to link the corresponding library, if use expat, then add-lexpat

Workaround: Modify/usr/local/src/neon-0.29.6/src/makefile, change CFLAGS =-g-o2-prefer-pic to CFLAGS =-fpic-g-o2, and recompile neon, Then recompile the subversion again.

? 0?2

Add Subversion Environment variables

[Email protected] subversion-1.7.5]# Vi/etc/profile

Add the following line of code at the end:

Turn it on to

Export path= $PATH:/usr/local/subversion/bin

This sentence is placed on the previous line of "Export PATH USER LOGNAME MAIL HOSTNAME histsize INPUTRC"

Immediate effect environment configuration, no restart required, use the following command:

Neon error occurred during make subversion

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.