Opened 19 years ago

Closed 19 years ago

Last modified 14 years ago

#5448 closed defect (fixed)

htdig-3.1.6 configure script exits with request to install c++, -Wno-depricated complains and exists compilation. — at Version 2

Reported by: itabtabai@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port: htdig

Description (last modified by jmpp@…)

I googled around and found out that CXXFLAGS=-Wno-deprecated would solve the problem of configure script exiting. However, once I try to compile the compiler compalins about -Wno-deprecated being for C++ and ObjC++ only and it exits on error. Below find tail for config.log and the output from build after the flag was set. Note that I tried to reproduce the problem one more time, I couldn't. CPPFLAGS would make configure complain about gcc, and CXX would make it complain about C++.

--- >tail output #include <iostream.h> configure:2142: checking for fstream.h configure:2152: c++ -E conftest.C >/dev/null 2>conftest.out In file included from /usr/include/gcc/darwin/4.0/c++/backward/fstream.h:31,

from configure:2148:

/usr/include/gcc/darwin/4.0/c++/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated. configure: failed program was: #line 2147 "configure" #include "confdefs.h" #include <fstream.h>

---> build output gcc -c -O -I. -I./../include -Wno-deprecated ../btree/bt_compare.c cc1: warning: command line option "-Wno-deprecated" is valid for C++/ObjC++ but not for C In file included from ../btree/bt_compare.c:54: /usr/include/sys/types.h:139: error: two or more data types in declaration specifiers /usr/include/sys/types.h:154: error: two or more data types in declaration specifiers /usr/include/sys/types.h:159: error: two or more data types in declaration specifiers /usr/include/sys/types.h:192: error: two or more data types in declaration specifiers /usr/include/sys/types.h:197: error: two or more data types in declaration specifiers make[1]: * [bt_compare.o] Error 1 make: * [all] Error 1 Error: Target com.apple.build returned: shell command "cd "/usr/local/var/db/dports/build/ file._usr_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_www_htdig/work/ htdig-3.1.6" && make all" returned error 2 Command output: gcc -c -O -I. -I./../include -Wno-deprecated ../btree/bt_compare.c cc1: warning: command line option "-Wno-deprecated" is valid for C++/ObjC++ but not for C In file included from ../btree/bt_compare.c:54: /usr/include/sys/types.h:139: error: two or more data types in declaration specifiers /usr/include/sys/types.h:154: error: two or more data types in declaration specifiers /usr/include/sys/types.h:159: error: two or more data types in declaration specifiers /usr/include/sys/types.h:192: error: two or more data types in declaration specifiers /usr/include/sys/types.h:197: error: two or more data types in declaration specifiers make[1]: * [bt_compare.o] Error 1 make: * [all] Error 1

Warning: the following items did not execute (for htdig): com.apple.activate com.apple.build com.apple.destroot com.apple.archive com.apple.install

Change History (2)

comment:1 Changed 19 years ago by mww@…

Resolution: fixed
Status: newclosed

fixed (Portfile now forces htdig to compile with gcc3.3)

comment:2 Changed 17 years ago by jmpp@…

Component: wwwports
Description: modified (diff)
Note: See TracTickets for help on using tickets.