Error: Size of array __curl_rule_01__ is negative

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

Error: Size of array __curl_rule_01__ is negative

Postby lynx13 » Jun 23rd, '16, 20:01

Hello my friends!

Currently I am trying to make cgminer as well as bfgminer for Bitcoin mining.

With both makes I get the same error:

In file included from /usr/include/curl/curl.h:35:0,
from cgminer.c:47:
/usr/include/curl/curlrules.h:142:3: error: size of array »__curl_rule_01__« is negative
__curl_rule_01__
Makefile:879: recipe for target 'cgminer-cgminer.o' failed


I already tried to circumvent this with the following hack in curlbuild.h:

Code: Select all
#ifdef __arch64__
#define CURL_SIZEOF_LONG 8
#else
#define CURL_SIZEOF_LONG 4
#endif


Now it should work, right, because he gets what to take for LONG depending on my architecture!? No. It doesn't. Same "curl rule" error. Both with cgminer AND bfgminer. Can't make, thus can't install. -.-

Any ideas??? Running into walls here...

Thanks in advance, guys!
You lost me because of the mess and unworkable Mageia 6.
User avatar
lynx13
 
Posts: 39
Joined: Jul 9th, '12, 19:04

Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest

cron