Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ua compilation failure with GCC 4.7 and newer #1

Open
mandree opened this issue Mar 31, 2014 · 0 comments
Open

ua compilation failure with GCC 4.7 and newer #1

mandree opened this issue Mar 31, 2014 · 0 comments

Comments

@mandree
Copy link

mandree commented Mar 31, 2014

Could the next ua release see to proper use of namespaces? Else it will get more and more difficult to compile. The log below is from FreeBSD 9.2 with GCC 4.7:

/usr/bin/make all-am
g++47 -DHAVE_CONFIG_H -I. -O2 -pipe -march=athlon64 -fstack-protector -Wl,-rpath=/usr/local/lib/gcc47 -fno-strict-aliasing -Wl,-rpath=/usr/local/lib/gcc47 -MT filei.o -MD -MP -MF .deps/filei.Tpo -c -o filei.o filei.cc
In file included from /usr/local/lib/gcc47/include/c++/ext/hash_set:61:0,
from ./filei.h:58,
from filei.cc:35:
/usr/local/lib/gcc47/include/c++//backward/backward_warning.h:33:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
In file included from filei.cc:35:0:
./filei.h:156:14: error: 'off_t' does not name a type
filei.cc: In constructor 'filei::filei(const string&, bool, bool, size_t, size_t)':
filei.cc:54:4: error: '::bzero' has not been declared
filei.cc: At global scope:
filei.cc:170:62: error: no 'off_t filei::fsize(const string&)' member function declared in class 'filei'
*** [filei.o] Error code 1 (continuing)
g++47 -DHAVE_CONFIG_H -I. -O2 -pipe -march=athlon64 -fstack-protector -Wl,-rpath=/usr/local/lib/gcc47 -fno-strict-aliasing -Wl,-rpath=/usr/local/lib/gcc47 -MT ua.o -MD -MP -MF .deps/ua.Tpo -c -o ua.o ua.cc
In file included from /usr/local/lib/gcc47/include/c++/ext/hash_set:61:0,
from ./filei.h:58,
from ua.cc:56:
/usr/local/lib/gcc47/include/c++//backward/backward_warning.h:33:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
In file included from ua.cc:56:0:
./filei.h:156:14: error: 'off_t' does not name a type
ua.cc: In function 'int main(int, char* const_)':
ua.cc:189:17: error: '::getopt' has not been declared
ua.cc:192:25: error: '::optarg' has not been declared
ua.cc:194:55: error: '::optarg' has not been declared
ua.cc:199:26: error: '::optarg' has not been declared
ua.cc:211:31: error: '::optarg' has not been declared
ua.cc:240:15: error: '::optind' has not been declared
ua.cc:241:19: error: '::optind' has not been declared
ua.cc:241:40: error: '::optind' has not been declared
ua.cc:242:21: error: '::optind' has not been declared
ua.cc:246:12: error: 'optind' was not declared in this scope
ua.cc:253:16: error: '::optind' has not been declared
ua.cc:266:29: error: 'fsize' is not a member of 'filei'
** [ua.o] Error code 1 (continuing)
g++47 -DHAVE_CONFIG_H -I. -O2 -pipe -march=athlon64 -fstack-protector -Wl,-rpath=/usr/local/lib/gcc47 -fno-strict-aliasing -Wl,-rpath=/usr/local/lib/gcc47 -MT kua.o -MD -MP -MF .deps/kua.Tpo -c -o kua.o kua.cc
In file included from /usr/local/lib/gcc47/include/c++/ext/hash_set:61:0,
from ./filei.h:58,
from kua.cc:48:
/usr/local/lib/gcc47/include/c++//backward/backward_warning.h:33:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
In file included from kua.cc:48:0:
./filei.h:156:14: error: 'off_t' does not name a type
kua.cc: In function 'int main(int, char* const
)':
kua.cc:114:17: error: '::getopt' has not been declared
kua.cc:117:33: error: '::optarg' has not been declared
kua.cc:120:25: error: '::optarg' has not been declared
kua.cc:122:55: error: '::optarg' has not been declared
kua.cc:154:15: error: '::optind' has not been declared
kua.cc:155:19: error: '::optind' has not been declared
kua.cc:155:40: error: '::optind' has not been declared
kua.cc:156:21: error: '::optind' has not been declared
kua.cc:160:12: error: 'optind' was not declared in this scope
kua.cc:171:14: error: 'fsize' is not a member of 'filei'
kua.cc:177:16: error: '::optind' has not been declared
kua.cc:191:30: error: 'fsize' is not a member of 'filei'
*_* [kua.o] Error code 1 (continuing)
`all-am' not remade because of errors.
1 error
*** [all] Error code 2 (continuing)
1 error
*** [do-build] Error code 1

Stop in /usr/ports.svn/sysutils/ua.
*** [stage] Error code 1

Stop in /usr/ports.svn/sysutils/ua.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant