Config with curl

If you hit any installation issues or cannot connect to your freshly installed UnrealIRCd then this forum is for you.

Moderator: Supporters

Locked
MasterScript
Posts: 17
Joined: Thu Feb 16, 2012 7:58 pm

Config with curl

Post 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
Syzop
UnrealIRCd head coder
Posts: 2112
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Re: Config with curl

Post 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
Syzop
UnrealIRCd head coder
Posts: 2112
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Re: Config with curl

Post 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.
MasterScript
Posts: 17
Joined: Thu Feb 16, 2012 7:58 pm

Re: Config with curl

Post 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
Syzop
UnrealIRCd head coder
Posts: 2112
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Re: Config with curl

Post by Syzop »

I just released 4.0.8.2, it should fix your issue (yes really :D). Could you check?
MasterScript
Posts: 17
Joined: Thu Feb 16, 2012 7:58 pm

Re: Config with curl

Post 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
MasterScript
Posts: 17
Joined: Thu Feb 16, 2012 7:58 pm

Re: Config with curl

Post by MasterScript »

Dear Syzop,

Unrealircd 4.0.8.4 have been fix our curl issue.

Thank you.
Syzop
UnrealIRCd head coder
Posts: 2112
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Re: Config with curl

Post by Syzop »

Great (finally :D)
MasterScript
Posts: 17
Joined: Thu Feb 16, 2012 7:58 pm

Re: Config with curl

Post by MasterScript »

Good & Excellent!!1
Anna19
Posts: 1
Joined: Sat Feb 11, 2017 10:09 am
Location: USA
Contact:

Re: Config with curl

Post by Anna19 »

This is awesome, Thanks
Locked