[MacPorts] #27341: error: size of array '__curl_rule_01__' is negative
MacPorts
noreply at macports.org
Fri Mar 1 10:31:26 PST 2013
#27341: error: size of array '__curl_rule_01__' is negative
--------------------------+--------------------------------
Reporter: bhamilton@… | Owner: macports-tickets@…
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: base | Version: 1.9.2
Resolution: invalid | Keywords:
Port: |
--------------------------+--------------------------------
Comment (by philip@…):
Replying to [comment:2 ryandesign@…]:
> You have something (curl headers, at least) in /usr/local. It is not
supported to have anything in /usr/local while using MacPorts because such
software can interfere. Move or remove /usr/local and try again.
With all due respect, this is not an adequate response. Surely you cannot
say that one cannot have anything in /usr/local - the compiler and linker
only look into directories that are explicitly specified on the command
line, or perhaps are referenced in a shell/environment variable. The real
problem here is that the Makefile (provided by macports) is itself to
blame. Here is the command line echoed from the Makefile:
===> making all in src/pextlib1.0
gcc -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -Wextra -Wall -pedantic
-I/usr/local/include -DHAVE_CONFIG_H -I.. -I. -I"/usr/include" -fno-
common curl.c -o curl.o
In file included from /usr/local/include/curl/curl.h:35,
from curl.c:46:
/usr/local/include/curl/curlrules.h:143: error: size of array
‘__curl_rule_01__’ is negative
make[2]: *** [curl.o] Error 1
As you can see, the compiler is being explicitly directed to search
/usr/local/include. So, the problem is *not* that there is anything in
/usr/local/include, but rather that your own Makefile is inappropriately
telling the compiler to look there.
Closing this bug report as being "invalid" is not correct: the Makefile(s)
in question should be fixed.
--
Ticket URL: <https://trac.macports.org/ticket/27341#comment:4>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list