PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Kompiler Fehler AIX5.3



jbo83
26-04-2007, 14:32
Hallo,

ich versuche derzeit apt-rpm auf AIX zum Laufen zu bringen.....

Warum?
um Unseren selbstgebauen RPM Packages besser Managen zu können.
Leider bietet pkg-utils nur clients an und keine Server

Allerdings scheitere ich bei make.

AIX: AIX 5300-05-03
make : 3.81
CC= VAC 8


Fehler:

make[1]: Entering directory `/home/root/apt-0.5.15lorg3/apt-pkg'
source='contrib/cmndline.cc' object='contrib/cmndline.lo' libtool=yes \
DEPDIR=.deps depmode=none /usr/bin/bash ../buildlib/depcomp \
/usr/bin/bash ../libtool --tag=CXX --mode=compile /usr/vac/bin/xlc_r -DHAVE_CONFIG_H -I. -I. -I../include -I../lua/include -I../lua/local -DLIBDIR=\"/opt/freeware//lib\" -I/opt/freeware/include/libxml2 -DNEED_PTHREAD_INIT -I/opt/freeware/include -L/opt/lib -I/opt/freeware/include -L/opt/freeware/lib -I/usr/include/rpm -I/opt/freeware//include -qarch=pwr5 -qtune=pwr5 -q64 -O2 -DNEED_PTHREAD_INIT -I/opt/include -L/opt/lib -I/opt/freeware/include -L/opt/freeware/lib -c -o contrib/cmndline.lo contrib/cmndline.cc
/usr/vac/bin/xlc_r -DHAVE_CONFIG_H -I. -I. -I../include -I../lua/include -I../lua/local -DLIBDIR=\"/opt/freeware//lib\" -I/opt/freeware/include/libxml2 -DNEED_PTHREAD_INIT -I/opt/freeware/include -L/opt/lib -I/opt/freeware/include -L/opt/freeware/lib -I/usr/include/rpm -I/opt/freeware//include -qarch=pwr5 -qtune=pwr5 -q64 -O2 -DNEED_PTHREAD_INIT -I/opt/include -L/opt/lib -I/opt/freeware/include -L/opt/freeware/lib -c contrib/cmndline.cc -DPIC -o contrib/.libs/cmndline.o
"../include/apt-pkg/strutl.h", line 97.25: 1540-0218 (S) The call does not match any parameter list for "stringcmp".
"../include/apt-pkg/strutl.h", line 77.5: 1540-1283 (I) "stringcmp(const char *, const char *, const char *, const char *)" is not a viable candidate.
"../include/apt-pkg/strutl.h", line 97.1: 1540-0256 (I) A parameter of type "const char *" cannot be initialized with an expression of type "std::_Ptrit<char,long,char *,char &,char *,char &>".
"../include/apt-pkg/strutl.h", line 97.15: 1540-1283 (I) "stringcmp(const char *, const char *, const char *)" is not a viable candidate.
"../include/apt-pkg/strutl.h", line 97.1: 1540-0256 (I) A parameter of type "const char *" cannot be initialized with an expression of type "std::_Ptrit<char,long,char *,char &,char *,char &>".
"../include/apt-pkg/strutl.h", line 97.15: 1540-1283 (I) "stringcmp(string, const char *)" is not a viable candidate.
"../include/apt-pkg/strutl.h", line 97.1: 1540-0295 (I) A parameter of type "std::basic_string<char,std::char_traits<char>,std::allocator<char> >" cannot be initialized with an rvalue of type "std::_Ptrit<char,long,char *,char &,char *,char &>".
"../include/apt-pkg/strutl.h", line 97.25: 1540-0218 (S) The call does not match any parameter list for "stringcmp".
"../include/apt-pkg/strutl.h", line 77.5: 1540-1283 (I) "stringcmp(const char *, const char *, const char *, const char *)" is not a viable candidate.
"../include/apt-pkg/strutl.h", line 97.1: 1540-0256 (I) A parameter of type "const char *" cannot be initialized with an expression of type "std::_Ptrit<char,long,char *,char &,char *,char &>".
"../include/apt-pkg/strutl.h", line 97.15: 1540-1283 (I) "stringcmp(const char *, const char *, const char *)" is not a viable candidate.
"../include/apt-pkg/strutl.h", line 97.1: 1540-0256 (I) A parameter of type "const char *" cannot be initialized with an expression of type "std::_Ptrit<char,long,char *,char &,char *,char &>".
"../include/apt-pkg/strutl.h", line 97.15: 1540-1283 (I) "stringcmp(string, const char *)" is not a viable candidate.
"../include/apt-pkg/strutl.h", line 97.1: 1540-0295 (I) A parameter of type "std::basic_string<char,std::char_traits<char>,std::allocator<char> >" cannot be initialized with an rvalue of type "std::_Ptrit<char,long,char *,char &,char *,char &>".
"../include/apt-pkg/strutl.h", line 97.15: 1540-1283 (I) "stringcmp(string, string)" is not a viable candidate.
"../include/apt-pkg/strutl.h", line 97.1: 1540-0295 (I) A parameter of type "std::basic_string<char,std::char_traits<char>,std::allocator<char> >" cannot be initialized with an rvalue of type "std::_Ptrit<char,long,char *,char &,char *,char &>".
"../include/apt-pkg/strutl.h", line 97.25: 1540-0218 (S) The call does not match any parameter list for "stringcmp".
"../include/apt-pkg/strutl.h", line 77.5: 1540-1283 (I) "stringcmp(const char *, const char *, const char *, const char *)" is not a viable candidate.
"../include/apt-pkg/strutl.h", line 97.1: 1540-0256 (I) A parameter of type "const char *" cannot be initialized with an expression of type "std::_Ptrit<char,long,char *,char &,char *,char &>".
"../include/apt-pkg/strutl.h", line 97.15: 1540-1283 (I) "stringcmp(const char *, const char *, const char *)" is not a viable candidate.
"../include/apt-pkg/strutl.h", line 97.1: 1540-0256 (I) A parameter of type "const char *" cannot be initialized with an expression of type "std::_Ptrit<char,long,char *,char &,char *,char &>".
"../include/apt-pkg/strutl.h", line 97.15: 1540-1283 (I) "stringcmp(string, const char *)" is not a viable candidate.
"../include/apt-pkg/strutl.h", line 97.1: 1540-0295 (I) A parameter of type "std::basic_string<char,std::char_traits<char>,std::allocator<char> >" cannot be initialized with an rvalue of type "std::_Ptrit<char,long,char *,char &,char *,char &>".
"../include/apt-pkg/strutl.h", line 97.15: 1540-1283 (I) "stringcmp(string, string)" is not a viable candidate.
"../include/apt-pkg/strutl.h", line 97.1: 1540-0295 (I) A parameter of type "std::basic_string<char,std::char_traits<char>,std::allocator<char> >" cannot be initialized with an rvalue of type "std::_Ptrit<char,long,char *,char &,char *,char &>".
"../include/apt-pkg/strutl.h", line 97.15: 1540-1283 (I) "stringcmp(string, const char *, const char *)" is not a viable candidate.
"../include/apt-pkg/strutl.h", line 97.1: 1540-0295 (I) A parameter of type "std::basic_string<char,std::char_traits<char>,std::allocator<char> >" cannot be initialized with an rvalue of type "std::_Ptrit<char,long,char *,char &,char *,char &>".
"../include/apt-pkg/strutl.h", line 98.29: 1540-0218 (S) The call does not match any parameter list for "stringcasecmp".
"../include/apt-pkg/strutl.h", line 78.5: 1540-1283 (I) "stringcasecmp(const char *, const char *, const char *, const char *)" is not a viable candidate.
"../include/apt-pkg/strutl.h", line 98.1: 1540-0256 (I) A parameter of type "const char *" cannot be initialized with an expression of type "std::_Ptrit<char,long,char *,char &,char *,char &>".
"../include/apt-pkg/strutl.h", line 98.15: 1540-1283 (I) "stringcasecmp(const char *, const char *, const char *)" is not a viable candidate.
"../include/apt-pkg/strutl.h", line 98.1: 1540-0256 (I) A parameter of type "const char *" cannot be initialized with an expression of type "std::_Ptrit<char,long,char *,char &,char *,char &>".
"../include/apt-pkg/strutl.h", line 98.15: 1540-1283 (I) "stringcasecmp(string, const char *)" is not a viable candidate.
"../include/apt-pkg/strutl.h", line 98.1: 1540-0295 (I) A parameter of type "std::basic_string<char,std::char_traits<char>,std::allocator<char> >" cannot be initialized with an rvalue of type "std::_Ptrit<char,long,char *,char &,char *,char &>".
"../include/apt-pkg/strutl.h", line 98.29: 1540-0218 (S) The call does not match any parameter list for "stringcasecmp".
"../include/apt-pkg/strutl.h", line 78.5: 1540-1283 (I) "stringcasecmp(const char *, const char *, const char *, const char *)" is not a viable candidate.
"../include/apt-pkg/strutl.h", line 98.1: 1540-0256 (I) A parameter of type "const char *" cannot be initialized with an expression of type "std::_Ptrit<char,long,char *,char &,char *,char &>".
"../include/apt-pkg/strutl.h", line 98.15: 1540-1283 (I) "stringcasecmp(const char *, const char *, const char *)" is not a viable candidate.
"../include/apt-pkg/strutl.h", line 98.1: 1540-0256 (I) A parameter of type "const char *" cannot be initialized with an expression of type "std::_Ptrit<char,long,char *,char &,char *,char &>".
"../include/apt-pkg/strutl.h", line 98.15: 1540-1283 (I) "stringcasecmp(string, const char *)" is not a viable candidate.
"../include/apt-pkg/strutl.h", line 98.1: 1540-0295 (I) A parameter of type "std::basic_string<char,std::char_traits<char>,std::allocator<char> >" cannot be initialized with an rvalue of type "std::_Ptrit<char,long,char *,char &,char *,char &>".
"../include/apt-pkg/strutl.h", line 98.15: 1540-1283 (I) "stringcasecmp(string, string)" is not a viable candidate.
"../include/apt-pkg/strutl.h", line 98.1: 1540-0295 (I) A parameter of type "std::basic_string<char,std::char_traits<char>,std::allocator<char> >" cannot be initialized with an rvalue of type "std::_Ptrit<char,long,char *,char &,char *,char &>".
"../include/apt-pkg/strutl.h", line 98.29: 1540-0218 (S) The call does not match any parameter list for "stringcasecmp".
"../include/apt-pkg/strutl.h", line 78.5: 1540-1283 (I) "stringcasecmp(const char *, const char *, const char *, const char *)" is not a viable candidate.
"../include/apt-pkg/strutl.h", line 98.1: 1540-0256 (I) A parameter of type "const char *" cannot be initialized with an expression of type "std::_Ptrit<char,long,char *,char &,char *,char &>".
"../include/apt-pkg/strutl.h", line 98.15: 1540-1283 (I) "stringcasecmp(const char *, const char *, const char *)" is not a viable candidate.
"../include/apt-pkg/strutl.h", line 98.1: 1540-0256 (I) A parameter of type "const char *" cannot be initialized with an expression of type "std::_Ptrit<char,long,char *,char &,char *,char &>".
"../include/apt-pkg/strutl.h", line 98.15: 1540-1283 (I) "stringcasecmp(string, const char *)" is not a viable candidate.
"../include/apt-pkg/strutl.h", line 98.1: 1540-0295 (I) A parameter of type "std::basic_string<char,std::char_traits<char>,std::allocator<char> >" cannot be initialized with an rvalue of type "std::_Ptrit<char,long,char *,char &,char *,char &>".
"../include/apt-pkg/strutl.h", line 98.15: 1540-1283 (I) "stringcasecmp(string, string)" is not a viable candidate.
"../include/apt-pkg/strutl.h", line 98.1: 1540-0295 (I) A parameter of type "std::basic_string<char,std::char_traits<char>,std::allocator<char> >" cannot be initialized with an rvalue of type "std::_Ptrit<char,long,char *,char &,char *,char &>".
"../include/apt-pkg/strutl.h", line 98.15: 1540-1283 (I) "stringcasecmp(string, const char *, const char *)" is not a viable candidate.
"../include/apt-pkg/strutl.h", line 98.1: 1540-0295 (I) A parameter of type "std::basic_string<char,std::char_traits<char>,std::allocator<char> >" cannot be initialized with an rvalue of type "std::_Ptrit<char,long,char *,char &,char *,char &>".
make[1]: *** [contrib/cmndline.lo] Fehler 1
make[1]: Leaving directory `/home/root/apt-0.5.15lorg3/apt-pkg'
make: *** [all-recursive] Fehler 1

Ich vermute das Problem liegt an der libc von AIX.......

Einer eine Idee?

anda_skoa
27-04-2007, 16:29
Kannst du die Codezeilen posten, in denen der Fehler auftritt?

Vermutlich muß man nur einen Typ gezielt umwandlen, etwas was GCC vielleicht implizit macht.

Ciao,
_

jbo83
30-04-2007, 11:16
Hi,

steht oben mit drin aber moment.

/usr/vac/bin/xlc_r -DHAVE_CONFIG_H -I. -I. -I../include -I../lua/include -I../lua/local -DLIBDIR=\"/opt/freeware//lib\" -I/opt/freeware/include/libxml2 -DNEED_PTHREAD_INIT -I/opt/freeware/include -L/opt/lib -I/opt/freeware/include -L/opt/freeware/lib -I/usr/include/rpm -I/opt/freeware//include -qarch=pwr5 -qtune=pwr5 -q64 -O2 -DNEED_PTHREAD_INIT -I/opt/include -L/opt/lib -I/opt/freeware/include -L/opt/freeware/lib -c contrib/cmndline.cc -DPIC -o contrib/.libs/cmndline.o

anda_skoa
02-05-2007, 13:44
ich meinte die Zeilen 97 und 98 (am besten mit bischen davor und danach) aus
"../include/apt-pkg/strutl.h" :)

Ciao,
_