Hi everyone,
I just got my brand new spankin' Opteron Ultra20 from Sun and
I tried compiling LICQ.
The daemon fails compiling with GCC2, GCC3 and Sun's CC.
With GCC2, here's the output from make:
[...]
/opt/csw/gcc2/bin/g++ -DLOCALEDIR=\"/usr/local/share/locale\"
-DHAVE_CONFIG_H -I. -I. -I.. -Wall -I../include
-DINSTALL_PREFIX=\"/usr/local\" -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS
-DUSE_SOLARIS -DPIC -fPIC -I/opt/csw/include/ -O2 -fno-exceptions
-fno-check-new -c -o icqpacket.o icqpacket.cpp
icqpacket.cpp: In method
`CPU_InfoPictureResp::CPU_InfoPictureResp(ICQUser *, long unsigned int,
long unsigned int, short unsigned int)':
icqpacket.cpp:1788: implicit declaration of function `int open(...)'
*** Error code 1
make: Fatal error: Command failed for target `icqpacket.o'
[...]
with GCC3 it gets a bit further, but it barfs on the rtf.cc file:
if /opt/csw/gcc3/bin/g++ -DLOCALEDIR=\"/usr/local/share/locale\"
-DHAVE_CONFIG_H -I. -I. -I.. -Wall -I../include
-DINSTALL_PREFIX=\"/usr/local\" -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS
-DUSE_SOLARIS -DPIC -fPIC -I/opt/csw/include/ -O2 -fno-exceptions
-fno-check-new -MT rtf.o -MD -MP -MF ".deps/rtf.Tpo" -c -o rtf.o rtf.cc; \
then mv -f ".deps/rtf.Tpo" ".deps/rtf.Po"; else rm -f ".deps/rtf.Tpo";
exit 1; fi
In file included from ../include/licq_socket.h:5,
from ../include/licq_packets.h:6,
from ../include/licq_filetransfer.h:59,
from ../include/licq_icqd.h:18,
from rtf.ll:21:
../config.h:202:1: warning: "_FILE_OFFSET_BITS" redefined
In file included from
/opt/csw/gcc3/lib/gcc/i386-pc-solaris2.8/3.4.4/include/stdio.h:36,
from rtf.cc:30:
/usr/include/sys/feature_tests.h:188:1: warning: this is the location of
the previous definition
rtf.ll: In member function `void RTF2HTML::FlushOut()':
rtf.ll:181: warning: unused variable 'c'
rtf.ll:191: warning: unused variable 'c'
rtf.ll: At global scope:
rtf.ll:594: error: expected unqualified-id before numeric constant
rtf.ll:594: error: expected `,' or `;' before numeric constant
rtf.ll: In member function `std::string RTF2HTML::Parse(const char*)':
rtf.ll:798: error: duplicate case value
rtf.ll:783: error: previously used here
*** Error code 1
make: Fatal error: Command failed for target `rtf.o'
With Sun's compiler, it croaks on the first souce file:
/opt/SUNWspro/bin/CC -DLOCALEDIR=\"/usr/local/share/locale\"
-DHAVE_CONFIG_H -I. -I. -I.. -Wall -I../include
-DINSTALL_PREFIX=\"/usr/local\" -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS
-DUSE_SOLARIS -DPIC -fPIC -I/opt/csw/include/ -c -o licq.o licq.cpp
CC: Warning: Option -Wall passed to ld, if ld is invoked, ignored otherwise
CC: Warning: Option -fPIC passed to ld, if ld is invoked, ignored otherwise
"../include/licq_user.h", line 988: Error: A declaration does not
specify a tag or an identifier.
"../include/licq_user.h", line 988: Error: Use ";" to terminate
declarations.
"../include/licq_user.h", line 990: Warning: ICQOwner::SetWebAwareStatus
hides the virtual function ICQUser::SetWebAwareStatus(char).
"../include/licq_icqd.h", line 300: Error: "," expected instead of
"__attribute__".
"../include/licq_icqd.h", line 301: Error: Use ";" to terminate
declarations.
"../include/licq_icqd.h", line 460: Error: "," expected instead of
"__attribute__".
"../include/licq_icqd.h", line 461: Error: Use ";" to terminate
declarations.
"../include/licq_icqd.h", line 461: Error: "," expected instead of
"__attribute__".
"../include/licq_icqd.h", line 462: Error: Use ";" to terminate
declarations.
"../include/licq_icqd.h", line 462: Error: "," expected instead of
"__attribute__".
"../include/licq_icqd.h", line 463: Error: Use ";" to terminate
declarations.
"../include/licq_icqd.h", line 463: Error: "," expected instead of
"__attribute__".
"../include/licq_icqd.h", line 464: Error: Use ";" to terminate
declarations.
"../include/licq_icqd.h", line 464: Error: "," expected instead of
"__attribute__".
"../include/licq_icqd.h", line 465: Error: Use ";" to terminate
declarations.
"../include/licq_icqd.h", line 465: Error: "," expected instead of
"__attribute__".
"../include/licq_icqd.h", line 466: Error: Use ";" to terminate
declarations.
"../include/licq_icqd.h", line 466: Error: "," expected instead of
"__attribute__".
"../include/licq_icqd.h", line 467: Error: Use ";" to terminate
declarations.
"../include/licq_icqd.h", line 467: Error: "," expected instead of
"__attribute__".
"../include/licq_icqd.h", line 468: Error: Use ";" to terminate
declarations.
"../include/licq_icqd.h", line 468: Error: "," expected instead of
"__attribute__".
"../include/licq_icqd.h", line 470: Error: Use ";" to terminate
declarations.
"licq.cpp", line 154: Error: Cannot use const char* to initialize char*.
"licq.cpp", line 161: Error: Cannot use const char* to initialize char*.
"licq.cpp", line 532: Warning (Anachronism): Formal argument select of
type extern "C" int(*)(const dirent*) in call to scandir_alpha_r(const
char*, dirent***, extern "C" int(*)(const dirent*)) is being passed
int(*)(const dirent*).
"licq.cpp", line 560: Warning (Anachronism): Formal argument select of
type extern "C" int(*)(const dirent*) in call to scandir_alpha_r(const
char*, dirent***, extern "C" int(*)(const dirent*)) is being passed
int(*)(const dirent*).
"licq.cpp", line 819: Warning (Anachronism): Formal argument 3 of type
extern "C" void*(*)(void*) in call to pthread_create(unsigned*, const
_pthread_attr*, extern "C" void*(*)(void*), void*) is being passed
void*(*)(void*).
"licq.cpp", line 969: Warning (Anachronism): Formal argument 3 of type
extern "C" void*(*)(void*) in call to pthread_create(unsigned*, const
_pthread_attr*, extern "C" void*(*)(void*), void*) is being passed
void*(*)(void*).
24 Error(s) and 5 Warning(s) detected.
*** Error code 24
make: Fatal error: Command failed for target `licq.o'
----------------
Help?
Thanks,
Ino!~
--
I have seen things you people wouldn't believe. Attack ships on fire
off the shoulder of Orion. I watched C-beams glitter in the dark
near the Tannhauser Gate. All those moments will be lost in time,
like tears in rain. Time to die.
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Licq-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/licq-devel