TinTin++ Mud Client The TinTin++ message board

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
TinTin++ Mud Client

I can`t compile tintin++ 1.97.2 on sparc solaris 5.8

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
atlacpi



Joined: 18 Jun 2007
Posts: 4

PostPosted: Mon Jun 18, 2007 7:08 am    Post subject: I can`t compile tintin++ 1.97.2 on sparc solaris 5.8 Reply with quote

I get this messages when ./configure and error messages when make

what`s the problem???

[ os ]
SunOS 5.8 Generic_117350-28 sun4u sparc SUNW,Ultra-Enterprise

[ gcc version ]
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/specs
gcc version 2.95.3 20010315 (release)


#no ---[messages when ./configure] --------------------------------
Configuring TinTin++
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether make sets $(MAKE)... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/xpg4/bin/grep
checking for egrep... /usr/xpg4/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... no
checking for unistd.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking net/errno.h usability... no
checking net/errno.h presence... no
checking for net/errno.h... no
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking param.h usability... no
checking param.h presence... no
checking for param.h... no
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking socks.h usability... no
checking socks.h presence... no
checking for socks.h... no
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/ptem.h usability... no
checking sys/ptem.h presence... yes
configure: WARNING: sys/ptem.h: present but cannot be compiled
configure: WARNING: sys/ptem.h: check for missing prerequisite headers?
configure: WARNING: sys/ptem.h: see the Autoconf documentation
configure: WARNING: sys/ptem.h: section "Present But Cannot Be Compiled"
configure: WARNING: sys/ptem.h: proceeding with the preprocessor's result
configure: WARNING: sys/ptem.h: in the future, the compiler will take precedence
checking for sys/ptem.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/termio.h usability... yes
checking sys/termio.h presence... yes
checking for sys/termio.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking termcap.h usability... no
checking termcap.h presence... no
checking for termcap.h... no
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for unistd.h... (cached) yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for an ANSI C-conforming const... yes
checking for stdbool.h that conforms to C99... no
checking for _Bool... no
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for working memcmp... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for sys/socket.h... (cached) yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking return type of signal handlers... void
checking whether lstat dereferences a symlink specified with a trailing slash... no
checking whether stat accepts an empty string... no
checking for strftime... yes
checking whether utime accepts a null argument... yes
checking for vprintf... yes
checking for _doprnt... yes
checking for gethostbyname... no
checking for gethostname... yes
checking for gettimeofday... yes
checking for inet_ntoa... no
checking for memset... yes
checking for select... yes
checking for socket... no
checking for strcasecmp... yes
checking for strchr... yes
checking for strdup... yes
checking for strerror... yes
checking for strftime... (cached) yes
checking for strncasecmp... yes
checking for strstr... yes
checking for utime... yes
checking for getaddrinfo... no
checking for tgetent in -ltermcap... yes
checking for inflate in -lz... yes
checking for pthread_create in -lpthread... yes
checking for gethostbyname in -lnsl... yes
checking for gmake... gmake
checking for library containing getmntent... none required
checking for getmntent... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged

Configure has finished. To compile, type: make



#no ---[error messages when make]-----------------------------
gcc -Wall -D_GNU_SOURCE -DHAVE_CONFIG_H -c mapper.c
mapper.c:151: macro `CHECK_INSIDE' used without args
mapper.c:174: macro `CHECK_INSIDE' used without args
mapper.c:196: macro `CHECK_MAP' used without args
mapper.c:211: macro `CHECK_INSIDE' used without args
mapper.c:267: macro `CHECK_INSIDE' used without args
mapper.c:294: macro `CHECK_INSIDE' used without args
mapper.c:305: macro `CHECK_MAP' used without args
mapper.c:354: macro `CHECK_INSIDE' used without args
mapper.c:401: macro `CHECK_MAP' used without args
mapper.c:425: macro `CHECK_MAP' used without args
mapper.c:466: macro `CHECK_INSIDE' used without args
mapper.c:519: macro `CHECK_INSIDE' used without args
mapper.c:529: macro `CHECK_MAP' used without args
mapper.c:559: macro `CHECK_INSIDE' used without args
mapper.c:593: macro `CHECK_MAP' used without args
mapper.c:614: macro `CHECK_INSIDE' used without args
mapper.c:632: macro `CHECK_INSIDE' used without args
mapper.c:643: macro `CHECK_INSIDE' used without args
mapper.c:732: macro `CHECK_INSIDE' used without args
mapper.c:776: macro `CHECK_INSIDE' used without args
mapper.c:827: macro `CHECK_INSIDE' used without args
mapper.c:877: macro `CHECK_INSIDE' used without args
mapper.c:899: macro `CHECK_INSIDE' used without args
mapper.c:914: macro `CHECK_MAP' used without args
make: *** [mapper.o] Error 1


Last edited by atlacpi on Mon Jun 18, 2007 8:57 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3770

PostPosted: Mon Jun 18, 2007 7:17 am    Post subject: Reply with quote

You can try editing mapper.c and replace every instance of

CHECK_INSIDE() with CHECK_INSIDE(void)

and

CHECK_MAP() with CHECK_MAP(void)

Let me know if that's the problem and I'll update the code.
Back to top
View user's profile Send private message Send e-mail
atlacpi



Joined: 18 Jun 2007
Posts: 4

PostPosted: Mon Jun 18, 2007 7:48 am    Post subject: I fixup upper problem BUT get another error message -..-; Reply with quote

[upper probler is fixed with this]
//#define CHECK_INSIDE(void)
#define CHECK_INSIDE()

// #define CHECK_MAP(void)
#define CHECK_MAP()

maybe gcc 2.95.3 don`t solve macro with (void)

------------------------------------------------------------------
[another error messages]

gcc -Wall -D_GNU_SOURCE -DHAVE_CONFIG_H -c chat.c
chat.c: In function `chat_accept':
chat.c:1806: parse error before `struct'
chat.c:1808: `buddy' undeclared (first use in this function)
chat.c:1808: (Each undeclared identifier is reported only once
chat.c:1808: for each function it appears in.)
make: *** [chat.o] Error 1
Back to top
View user's profile Send private message Send e-mail
atlacpi



Joined: 18 Jun 2007
Posts: 4

PostPosted: Mon Jun 18, 2007 8:57 am    Post subject: I fixed upper problems up BUT I got ld error messages Reply with quote

[fixing upper problem up]
line number 1804 in the chat.c file
move "struct chat_data *buddy;" to the top of function

DO_CHAT(chat_accept)
{
char *left, *right;
struct chat_data *buddy; <---- (moved position)

arg = get_arg_in_braces(arg, &left, FALSE);
arg = get_arg_in_braces(arg, &right, TRUE);

// struct chat_data *buddy; <---- (original position)

if ((buddy = find_buddy(left)) == NULL)
{

[ld error messages]
---- Linking...
gcc -Wall -D_GNU_SOURCE -DHAVE_CONFIG_H -o tt++ action.o alias.o files.o help.o highlight.o strhash.o llist.o log.o main.o misc.o net.o parse.o path.o update.o history.o tab.o vt102.o terminal.o session.o function.o text.o substitute.o tick.o math.o variables.o debug.o tinexp.o mapper.o tables.o buffer.o prompt.o telopt.o class.o split.o utils.o macro.o config.o gag.o chat.o array.o input.o cursor.o event.o memory.o -lnsl -lpthread -lz -ltermcap
Undefined first referenced
symbol in file
bind chat.o
getsockname chat.o
accept chat.o
listen chat.o
socket net.o
setsockopt chat.o
connect net.o
ld: fatal: Symbol referencing errors. No output written to tt++
collect2: ld returned 1 exit status
make: *** [tt++] Error 1
Back to top
View user's profile Send private message Send e-mail
atlacpi



Joined: 18 Jun 2007
Posts: 4

PostPosted: Mon Jun 18, 2007 8:59 am    Post subject: I solve all upper problems Reply with quote

link problem in solaris

edit Makefile

LDFLAGS = -lsocket -lnsl #<----- add this line
Back to top
View user's profile Send private message Send e-mail
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3770

PostPosted: Mon Jun 18, 2007 4:14 pm    Post subject: Reply with quote

Makes sense that (void) was being seen as an argument in the macro. Fixed for the next release.

Odd that my compiler didn't notice the invalid declaration in chat.c, but fixed it as well.

Quote:

LDFLAGS = -lsocket -lnsl #<----- add this line


I'm not too sure how to go about that since I'm not all that great with autoconfig. I'll try to google for a solution sometime though.

Thanks for finding and solving these two bugs Smile
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> General Discussion All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
TinTin++ Homepage

Powered by phpBB © 2001, 2002 phpBB Group