List:General Discussion« Previous MessageNext Message »
From:Michael Widenius Date:August 4 1999 11:29am
Subject:Problems with mysqld-3.22.25 on hppa1.1-hp-hpux10.20 using egcs-2.95
View as plain text  
Hi!

>>>>> "Gcc" == Gcc  <gcc@stripped> writes:

Gcc> Hi,
Gcc> 	I am trying to compile the latest stable mysql (3.22.25) on a
Gcc> HP-UX 10.20 system using egcs-2.95.  However, I ran into several
Gcc> compliation problems.  
Gcc> 	egcs doesn't appear to be able to find several socket
Gcc> definitions which are missing prototype. 
Gcc> In sql/mysqld.cc
Gcc> extern int setsockopt(int, int, int, const void *, size_t);
Gcc> extern int shutdown(int, int);
Gcc> extern int getsockname(int, struct sockaddr *, size_t *);

Gcc> In sql/sql_parse.cc:
Gcc> extern int getpeername(int, struct sockaddr *, size_t *);
Gcc> extern int setsockopt(int, int, int, const void *, size_t);

Gcc> I also need explict cast to get socket_size type into size_t.

What configure option did you use?
If you used  --with-mit-pthread then socket_size is defined as 'int'
else it's defined as SOCKET_SIZE from config.h
What is your value of SOCKET_SIZE in config.h.  On my Linux machine I
get:

(/my/monty/master/mysql-3.23.2-alpha) grep SOCKET_SIZE config.h
#define SOCKET_SIZE_TYPE size_t

Gcc> There also appears to be another problem after the complation, when
Gcc> I do run it the mysqld doesn't appear to respond to mysql or
Gcc> any other client programs.  Looking at the process list it reports

Gcc>  TTY   PID USERNAME PRI NI   SIZE    RES STATE    TIME %WCPU  %CPU COMMAND
Gcc> pty/ttyp1 21086 root     234 24  1824K   188K run      1:08 99.04 96.05 mysqld

Gcc> I think it is stuck or something.  Can anyone advise what I should do 
Gcc> to debug this problem?

Could you please repost with mysqlbug so that we can look at your
configure line.

Did you try the thr_lock and thr_alarm test?

In your case, you can always configure with '--with-debug'and run
mysqld under gdb to check what happens.

Another option (after compiling with debugging) is to run mysqld with
--debug and check the /tmp/mysqld.trace file for what is going on.

Regards,
Monty

Thread
Problems with mysqld-3.22.25 on hppa1.1-hp-hpux10.20 using egcs-2.95Gcc4 Aug
  • Problems with mysqld-3.22.25 on hppa1.1-hp-hpux10.20 using egcs-2.95sinisa4 Aug
  • Problems with mysqld-3.22.25 on hppa1.1-hp-hpux10.20 using egcs-2.95Michael Widenius4 Aug
    • Problems with mysqld-3.22.25 on hppa1.1-hp-hpux10.20 SOLVEDGcc5 Aug
      • Problems with mysqld-3.22.25 on hppa1.1-hp-hpux10.20 SOLVEDMichael Widenius5 Aug
        • Re: Problems with mysqld-3.22.25 on hppa1.1-hp-hpux10.20 SOLVEDSystem Administrator a.k.a. The Root of the Problem5 Aug