LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   when i install svn, error occurs,how to solve it? (http://www.linuxquestions.org/questions/linux-software-2/when-i-install-svn-error-occurs-how-to-solve-it-748650/)

arcow 08-19-2009 04:05 AM

when i install svn, error occurs,how to solve it?
 
i install subversion-1.6.4 ,when "make",error occurs.
so i change another version subversion-1.4.2,
it's still error,like below:

subversion/libsvn_subr/xml.c: At top level:
subversion/libsvn_subr/xml.c:321: error: syntax error before '*' token
subversion/libsvn_subr/xml.c: In function `expat_data_handler':
subversion/libsvn_subr/xml.c:323: error: `userData' undeclared (first use in this function)
subversion/libsvn_subr/xml.c:325: error: dereferencing pointer to incomplete type
subversion/libsvn_subr/xml.c:325: error: dereferencing pointer to incomplete type
subversion/libsvn_subr/xml.c:325: error: `s' undeclared (first use in this function)
subversion/libsvn_subr/xml.c:325: error: `len' undeclared (first use in this function)
subversion/libsvn_subr/xml.c: In function `svn_xml_make_parser':
subversion/libsvn_subr/xml.c:341: error: `XML_Parser' undeclared (first use in this function)
subversion/libsvn_subr/xml.c:341: error: syntax error before "parser"
subversion/libsvn_subr/xml.c:343: error: `parser' undeclared (first use in this function)
subversion/libsvn_subr/xml.c:353: error: dereferencing pointer to incomplete type
subversion/libsvn_subr/xml.c:353: error: dereferencing pointer to incomplete type
subversion/libsvn_subr/xml.c:355: error: dereferencing pointer to incomplete type
subversion/libsvn_subr/xml.c:356: error: dereferencing pointer to incomplete type
subversion/libsvn_subr/xml.c:357: error: dereferencing pointer to incomplete type
subversion/libsvn_subr/xml.c:358: error: dereferencing pointer to incomplete type
subversion/libsvn_subr/xml.c:359: error: dereferencing pointer to incomplete type
subversion/libsvn_subr/xml.c:360: error: dereferencing pointer to incomplete type
subversion/libsvn_subr/xml.c: In function `svn_xml_free_parser':
subversion/libsvn_subr/xml.c:374: error: dereferencing pointer to incomplete type
subversion/libsvn_subr/xml.c:377: error: dereferencing pointer to incomplete type
subversion/libsvn_subr/xml.c: In function `svn_xml_parse':
subversion/libsvn_subr/xml.c:393: error: dereferencing pointer to incomplete type
subversion/libsvn_subr/xml.c:401: error: dereferencing pointer to incomplete type
subversion/libsvn_subr/xml.c:402: error: dereferencing pointer to incomplete type
subversion/libsvn_subr/xml.c:410: error: dereferencing pointer to incomplete type
subversion/libsvn_subr/xml.c:412: error: dereferencing pointer to incomplete type
subversion/libsvn_subr/xml.c: In function `svn_xml_signal_bailout':
subversion/libsvn_subr/xml.c:426: error: dereferencing pointer to incomplete type
subversion/libsvn_subr/xml.c:427: error: dereferencing pointer to incomplete type
subversion/libsvn_subr/xml.c:431: error: dereferencing pointer to incomplete type
make: *** [subversion/libsvn_subr/xml.lo] Error 1

weibullguy 08-19-2009 08:11 AM

Why not use your package manager to install subversion? Try installing expat and/or libxml2 along with their development files and try the build again. I don't remember if you need either one or both.

arcow 08-19-2009 10:19 PM

Quote:

Originally Posted by weibullguy (Post 3649389)
Why not use your package manager to install subversion? Try installing expat and/or libxml2 along with their development files and try the build again. I don't remember if you need either one or both.

thank you for your answer, just now, i installed libxml2 and expat,and then i compiled svn again,when i "make",the error showed:

/usr/bin/ld: cannot find -lldap
collect2: ld returned 1 exit status
make: *** [subversion/libsvn_subr/libsvn_subr-1.la] Error 1

how can i go on next step?

weibullguy 08-20-2009 01:22 PM

You're missing the LDAP library. Either install the LDAP library or see if there is an option to pass to the configure script to disable LDAP support. Check the output of ./configure --help to see if there is an option to disable LDAP.


All times are GMT -5. The time now is 12:53 PM.