Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure: --with-xmlrpc-c=PATH seems to be broken #1243

Open
TurtleWilly opened this issue Aug 13, 2023 · 1 comment
Open

Configure: --with-xmlrpc-c=PATH seems to be broken #1243

TurtleWilly opened this issue Aug 13, 2023 · 1 comment

Comments

@TurtleWilly
Copy link

TurtleWilly commented Aug 13, 2023

I do have xmlrpc-c in a custom path (not in any of the standard system include/lib paths), so I need to manually specify its location via configure. configure --help suggest that the --with-xmlrpc-c parameter supports giving the PATH as an argument. That doesn't seem to work and always comes out as Could not compile XMLRPC-C test.

In fact only using --with-xmlrpc-c=yes, and manually extending the PATH like this seemed to work for me:

export PATH=/usr/local/mystuff/xmlrpc-c/latest/bin:$PATH \
export PKG_CONFIG_PATH=/usr/local/mystuff/rtorrent/latest/lib/pkgconfig:/usr/local/mystuff/xmlrpc-c/latest/lib/pkgconfig:/usr/local/lib/pkgconfig
./configure \
	--prefix=/usr/local/mystuff/rtorrent/0.9.8 \
	--with-xmlrpc-c=yes \
	CPPFLAGS='-I/usr/local/mystuff/xmlrpc-c/latest/include' \
	LDFLAGS=' -L/usr/local/mystuff/xmlrpc-c/latest/lib'
@kannibalox
Copy link
Contributor

kannibalox commented Sep 10, 2023

It's definitely confusing, but it's meant to specify a path to the xmlrpc-c-config binary, which will allow the build process to automatically generate the correct CPPFLAGS and LDFLAGS. You can see this here: https://github.com/rakshasa/rtorrent/blob/master/scripts/checks.m4#L398

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants