Page 1 of 1

Config with curl

Posted: Sun Nov 13, 2016 10:13 pm
by MasterScript
How to fix this?
OS: Centos 6.8
Do you want to enable remote includes?
This allows stuff like this in your configuration file:
include "http://www.somesite.org/files/opers.conf";
[Yes] ->

Specify the directory you installed libcurl to
[/home/MY/curl] ->
checking /home/MY/curl/bin/curl-config... yes
checking curl_easy_init() in -L/home/MY/curl/lib -lcurl -lcares -lssl -lcrypto -lrt -lssl -lcrypto -lz... no
configure: error: in `/home/MY/unrealircd-4.0.8':
configure: error: You asked for libcURL (remote includes) support, but it can't be found at /home/MY/curl
See `config.log' for more details

Re: Config with curl

Posted: Mon Nov 14, 2016 11:02 am
by Syzop
Seems something is broken with 4.0.8 and /home/xxx/curl.

To work around the problem, if you have root on the machine:

Code: Select all

sudo yum install curl-devel
And then then when you run ./Config and get asked for the path to curl answer this: /usr

Re: Config with curl

Posted: Mon Nov 14, 2016 12:25 pm
by Syzop
This issue has been fixed now in 4.0.8.1. Thanks for letting us know.

From now on we no longer use /home/xyz/curl but rather compile and install it during build-time. That being said, using system-wide curl is much preferred and will result in shorter compile times.

Re: Config with curl

Posted: Tue Nov 15, 2016 2:03 am
by MasterScript
checking /home/MY/unrealircd-4.0.8.1/extras/curl/bin/curl-config... yes
checking curl_easy_init() in -L/home/.schat/master/lib -lcurl... no
configure: error: in `/home/MY/unrealircd-4.0.8.1':
configure: error: You asked for libcURL (remote includes) support, but it can't be found at /home/MY/unrealircd-4.0.8.1/extras/curl
See `config.log' for more details

Re: Config with curl

Posted: Wed Nov 16, 2016 10:19 am
by Syzop
I just released 4.0.8.2, it should fix your issue (yes really :D). Could you check?

Re: Config with curl

Posted: Wed Nov 16, 2016 6:14 pm
by MasterScript
Runing on CentOS release 6.8 (Final)
g -Wno-pointer-sign -Wl,-export-dynamic -I/home/MY/unrealircd-4.0.8.2/extras/curl/include -fno-strict-overflow -D_FORTIFY_SOURCE=2 -fstack-protector-all -Wstack-protector --param ssp-buffer-size=1 -fPIE -fPIC -DPIC -shared -DDYNAMIC_LINKING \
-o cloak.so cloak.c
/usr/bin/ld: /tmp/ccP9LKhj.o: relocation R_X86_64_PC32 against symbol `cloak_config_run' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make[2]: *** [cloak.so] Error 1
make[2]: Leaving directory `/home/MY/unrealircd-4.0.8.2/src/modules'
make[1]: *** [mods] Error 2
make[1]: Leaving directory `/home/MY/unrealircd-4.0.8.2/src'
make: *** [build] Error 2

Re: Config with curl

Posted: Fri Nov 18, 2016 3:25 pm
by MasterScript
Dear Syzop,

Unrealircd 4.0.8.4 have been fix our curl issue.

Thank you.

Re: Config with curl

Posted: Fri Nov 18, 2016 6:05 pm
by Syzop
Great (finally :D)

Re: Config with curl

Posted: Mon Nov 21, 2016 1:03 am
by MasterScript
Good & Excellent!!1

Re: Config with curl

Posted: Sat Feb 11, 2017 10:20 am
by Anna19
This is awesome, Thanks