Trouble building mips3 uw_imap

IRIX/Nekoware development, porting and related topics.
Forum rules
Any posts concerning pirated software or offering to buy/sell/trade commercial software are subject to removal.
User avatar
dkedrowitsch
Posts: 280
Joined: Fri Mar 31, 2006 5:11 pm
Location: Macungie, PA USA

Trouble building mips3 uw_imap

Unread postby dkedrowitsch » Tue Dec 26, 2006 10:14 am

Follwing the information in neko_uw_imap.txt found in the neko_uw_imap package I'm trying to build it for mips3. It's a requisite for building PHP5.

Here's my build environment (I'm using MIPSpro 7.4.3m):

Code: Select all

export CC=c99
export CFLAGS='-O3 -mips3  -I/usr/include -I/usr/nekoware/include -OPT:Olimit=0:roundoff=3'
export CXXFLAGS=$CFLAGS
export CPPFLAGS=' -I/usr/include  -I/usr/nekoware/include'
export CXX=CC
export F77=f77
export LDFLAGS='-L/usr/nekoware/lib -rpath /usr/nekoware/lib'
export PKG_CONFIG=/usr/nekoware/bin/pkg-config
export PKG_CONFIG_PATH='/usr/nekoware/lib/pkgconfig'
export PKG_CONFIG_LIBDIR='/usr/nekoware/lib'
export LD_LIBRARY_PATH='/usr/nekoware/lib'
export LD_LIBRARYN32_PATH='/usr/nekoware/lib'
export LD_LIBRARY64_PATH='/usr/nekoware/lib64'
export MANPATH=/usr/nekoware/man:$MANPATH
export GNOME2_DIR='/usr/nekoware'
export GNUMAKE='/usr/nekoware/bin/make'
export PATH=/usr/nekoware/bin:$PATH


And I followed Joerg's instructions (in the mips4 relnotes) to edit the Makefiles:

Code: Select all

Edit Makefile in the source director and set
EXTRALDFLAGS=-L/usr/nekoware/lib -rpath /usr/nekoware/lib
EXTRASPECIALS=-I/usr/nekoware/include/openssl -I/usr/nekoware/include

Edit c-client/Makefile and change 2 lines.
SSLDIR=/usr/nekoware
SSLCERTS=$(SSLDIR)/ssl/certs

Edit imapd/Makefile and correct the pathes to the /etc directory.
ALERT=/usr/nekoware/etc/imapd.alert
USERALERT=.imapalert
SHUTDOWN=/usr/nekoware/etc/nologin
ANO=/usr/nekoware/etc/anonymous.newsgroups
NNTP=/usr/nekoware/etc/imapd.nntp
SHELL= /bin/sh


After trying to compile...

Code: Select all

gmake sg6 IP=6


I get:

Code: Select all

root@INDIGO:/usr/people/dieter/imap-2004g# gmake sg6 IP=6
make sslnopwd
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Building in full compliance with RFC 3501 security
+ requirements:
++ TLS/SSL encryption is supported
++ Unencrypted plaintext passwords are prohibited
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Applying an process to sources...
tools/an "ln -s" src/c-client c-client
tools/an "ln -s" src/ansilib c-client
tools/an "ln -s" src/charset c-client
tools/an "ln -s" src/osdep/unix c-client
tools/an "ln -s" src/mtest mtest
tools/an "ln -s" src/ipopd ipopd
tools/an "ln -s" src/imapd imapd
tools/an "ln -s" src/mailutil mailutil
tools/an "ln -s" src/mlock mlock
tools/an "ln -s" src/dmail dmail
tools/an "ln -s" src/tmail tmail
ln -s tools/an .
make build EXTRACFLAGS='' EXTRALDFLAGS='-L/usr/nekoware/lib -rpath /usr/nekoware/lib' EXTRADRIVERS='mbox' EXTRAAUTHENTICATORS='' PASSWDTYPE=std SSLTYPE=nopwd IP=6 EXTRASPECIALS='-I/usr/nekoware/include/openssl -I/usr/nekoware/include' BUILDTYPE=sg6
Building c-client for sg6...
        echo `cat SPECIALS` -I/usr/nekoware/include/openssl -I/usr/nekoware/include > c-client/SPECIALS
        cd c-client;make sg6 EXTRACFLAGS=''\
         EXTRALDFLAGS='-L/usr/nekoware/lib -rpath /usr/nekoware/lib'\
         EXTRADRIVERS='mbox'\
         EXTRAAUTHENTICATORS=''\
         PASSWDTYPE=std SSLTYPE=nopwd IP=6\
          -I/usr/nekoware/include/openssl -I/usr/nekoware/include
Usage: make [-f makefile] [-p] [-i] [-k] [-s] [-r] [-n] [-u]
        [-d] [-D] [-S] [-g] [-w] [-P] [-B] [-b] [-O] [-e] [-t] [-q] [-M] [-N] [names]
*** Error code 1 (bu21)
gmake: *** [sg6] Error 1


Any ideas?

User avatar
nekonoko
Site Admin
Site Admin
Posts: 8042
Joined: Thu Jan 23, 2003 1:31 am
Location: Pleasanton, California
Contact:

Re: Trouble building mips3 uw_imap

Unread postby nekonoko » Tue Dec 26, 2006 10:27 am

dkedrowitsch wrote:Any ideas?


Yep - in your output there are a couple of places where it's trying to call the system supplied 'make' and clearly expecting 'gmake'. Try setting the GNUMAKE environment variable to 'gmake' or edit the Makefile to call 'gmake' rather than 'make'.
Twitter: @neko_no_ko
IRIX Release 4.0.5 IP12 Version 06151813 System V
Copyright 1987-1992 Silicon Graphics, Inc.
All Rights Reserved.

User avatar
joerg
Posts: 2223
Joined: Thu Jan 08, 2004 6:57 am
Location: In an origin rack - Germany
Contact:

Unread postby joerg » Tue Dec 26, 2006 12:29 pm

Normaly i set

Code: Select all

export PATH=/usr/nekoware/bin:$PATH

before start compiling. This placed all of your tools to the beginning of $PATH.

But as Pete already sayd... just rename all 'make' to 'gmake' and try again.

Btw. about your neko_mysql4. Did you change the location of the my.cnf? Otherwise you are not able to run more than one mysqld on your machine (without hacking some scripts).

And as we already talking about mysql. Can you runs the mysql-test-run script from the mysql-test directory?

I have BIG problems with all of my mysql builds. Normal applications runs fine.... but the mysql test suites reporting various errors. I have them reported to the mysql folks but i dont expect a fast solution.

http://bugs.mysql.com/bug.php?id=25285

User avatar
nekonoko
Site Admin
Site Admin
Posts: 8042
Joined: Thu Jan 23, 2003 1:31 am
Location: Pleasanton, California
Contact:

Unread postby nekonoko » Tue Dec 26, 2006 12:40 pm

joerg wrote:I have BIG problems with all of my mysql builds.


Me too ... anything past 5.0.12-beta bombs for me when trying to run phpBB2. Haven't tried any other web apps as that was a show stopper.
Twitter: @neko_no_ko
IRIX Release 4.0.5 IP12 Version 06151813 System V
Copyright 1987-1992 Silicon Graphics, Inc.
All Rights Reserved.

User avatar
dkedrowitsch
Posts: 280
Joined: Fri Mar 31, 2006 5:11 pm
Location: Macungie, PA USA

Unread postby dkedrowitsch » Tue Dec 26, 2006 1:16 pm

Btw. about your neko_mysql4. Did you change the location of the my.cnf? Otherwise you are not able to run more than one mysqld on your machine (without hacking some scripts).


Yup. :)

And as we already talking about mysql. Can you runs the mysql-test-run script from the mysql-test directory?


Sure.

I only have 256 megs in this Indigo2 and had Firefox running so I think I ran out of ram which caused the error at the bottom. Also I'm not sure why I kept getting "master not cooperating with mysqladmin, will try manual kill master responded to SIGTERM".

Code: Select all

# ./mysql-test-run
Installing Test Databases
Removing Stale Files
Installing Master Databases
running  ../sql/mysqld --no-defaults --bootstrap --skip-grant-tables     --basedir=. --datadir=./var/master-data --skip-innodb --skip-ndbcluster --skip-bdb     --language=../sql/share/english/ --character-sets-dir=../sql/share/charsets/
Installing Slave Databases
running  ../sql/mysqld --no-defaults --bootstrap --skip-grant-tables     --basedir=. --datadir=./var/slave-data --skip-innodb --skip-ndbcluster --skip-bdb     --language=../sql/share/english/ --character-sets-dir=../sql/share/charsets/
Manager disabled, skipping manager start.
Loading Standard Test Databases
Starting Tests

TEST                            RESULT
-------------------------------------------------------
alias                          [ pass ]   
alter_table                    [ pass ]   
analyse                        [ pass ]   
analyze                        [ pass ]   
ansi                           [ pass ]   
archive                        [ skipped ]
auto_increment                 [ pass ]   
master not cooperating with mysqladmin, will try manual kill
master responded to SIGTERM
backup                         [ pass ]   
bdb-alter-table-1              [ skipped ]
master not cooperating with mysqladmin, will try manual kill
master responded to SIGTERM
bdb-alter-table-2              [ skipped ]
master not cooperating with mysqladmin, will try manual kill
master responded to SIGTERM
bdb-crash                      [ skipped ]
bdb-deadlock                   [ skipped ]
bdb                            [ skipped ]
master not cooperating with mysqladmin, will try manual kill
master responded to SIGTERM
bdb_cache                      [ skipped ]
master not cooperating with mysqladmin, will try manual kill
master responded to SIGTERM
bench_count_distinct           [ pass ]   
bigint                         [ pass ]   
binary                         [ pass ]   
blackhole                      [ skipped ]
bool                           [ pass ]   
bulk_replace                   [ pass ]   
case                           [ pass ]   
cast                           [ pass ]   
check                          [ pass ]   
comments                       [ pass ]   
compare                        [ pass ]   
connect                        [ pass ]   
consistent_snapshot            [ pass ]   
constraints                    [ pass ]   
count_distinct                 [ pass ]   
master not cooperating with mysqladmin, will try manual kill
master responded to SIGTERM
count_distinct2                [ pass ]   
master not cooperating with mysqladmin, will try manual kill
master responded to SIGTERM
count_distinct3                [ pass ]   
create                         [ pass ]   
create_select_tmp              [ pass ]   
csv                            [ skipped ]
ctype_big5                     [ pass ]   
ctype_collate                  [ pass ]   
ctype_cp1250_ch                [ pass ]   
ctype_cp1251                   [ pass ]   
ctype_cp932                    [ pass ]   
ctype_create                   [ pass ]   
ctype_gbk                      [ pass ]   
ctype_latin1                   [ pass ]   
master not cooperating with mysqladmin, will try manual kill
master responded to SIGTERM
ctype_latin1_de                [ pass ]   
master not cooperating with mysqladmin, will try manual kill
master responded to SIGTERM
ctype_latin2                   [ pass ]   
ctype_many                     [ pass ]   
ctype_mb                       [ pass ]   
ctype_recoding                 [ pass ]   
ctype_sjis                     [ pass ]   
ctype_tis620                   [ pass ]   
ctype_uca                      [ pass ]   
ctype_ucs                      [ pass ]   
ctype_ucs_binlog               [ pass ]   
ctype_ujis                     [ pass ]   
ctype_utf8                     [ pass ]   
master not cooperating with mysqladmin, will try manual kill
master responded to SIGTERM
date_formats                   [ pass ]   
master not cooperating with mysqladmin, will try manual kill
master responded to SIGTERM
delayed                        [ pass ]   
delete                         [ pass ]   
derived                        [ pass ]   
dirty_close                    [ pass ]   
distinct                       [ pass ]   
drop                           [ pass ]   
drop_temp_table                [ pass ]   
empty_table                    [ pass ]   
endspace                       [ pass ]   
errors                         [ pass ]   
exampledb                      [ skipped ]
explain                        [ pass ]   
flush                          [ pass ]   
flush_block_commit             [ pass ]   
flush_table                    [ pass ]   
foreign_key                    [ pass ]   
fulltext                       [ pass ]   
fulltext2                      [ pass ]   
fulltext_cache                 [ pass ]   
fulltext_distinct              [ pass ]   
fulltext_left_join             [ pass ]   
fulltext_multi                 [ pass ]   
fulltext_order_by              [ pass ]   
fulltext_update                [ pass ]   
fulltext_var                   [ pass ]   
func_compress                  [ fail ]

Errors are (from /usr/people/dieter/mysql-4.1.15-PATCHED/mysql-test/var/log/mysqltest-time) :
mysqltest: At line 46: query 'select compress(repeat('aaaaaaaaaa', IF('', 10, 10000000))) is null' failed: 5: Out of memory (Needed 120000024 bytes)
(the last lines may be the most important ones)

Aborting: func_compress failed in default mode. To continue, re-run with '--force'.

Ending Tests
Shutting-down MySQL daemon

master not cooperating with mysqladmin, will try manual kill
master responded to SIGTERM
Master shutdown finished
Slave shutdown finished

User avatar
joerg
Posts: 2223
Joined: Thu Jan 08, 2004 6:57 am
Location: In an origin rack - Germany
Contact:

Unread postby joerg » Tue Dec 26, 2006 4:20 pm

Can you please test

Code: Select all

/usr/nekoware/mysql4/bin/perror 13
with your build?

Here its just segfaults :(

I have compiled 4.1.22. The testsuite runs better for now.... only 11 tests returns unexpected result but no crashes anymore.


Code: Select all

Master shutdown finished
Slave shutdown finished
Failed 10/311 tests, 96.78% were successful.

mysql-test-run in default mode: *** Failing the test(s): func_time func_timestamp mysqlbinlog2 ps_2myisam ps_3innodb ps_4heap ps_5merge rpl000002 timezone type_timestamp


regards
Joerg
Last edited by joerg on Tue Dec 26, 2006 4:29 pm, edited 1 time in total.

User avatar
dkedrowitsch
Posts: 280
Joined: Fri Mar 31, 2006 5:11 pm
Location: Macungie, PA USA

Unread postby dkedrowitsch » Tue Dec 26, 2006 4:22 pm

perror segfaults here too.

User avatar
joerg
Posts: 2223
Joined: Thu Jan 08, 2004 6:57 am
Location: In an origin rack - Germany
Contact:

Unread postby joerg » Sun Dec 31, 2006 8:52 am

dkedrowitsch wrote:perror segfaults here too.



Please can you jump to http://bugs.mysql.com/?id=25344 and confirm about the error on your host/build system with your mysql (mips3) version?


And about the tests. Try "./mysql-test-run --force". After that compare with http://bugs.mysql.com/?id=25344

It would be fine if some more people post there, without that it can be take a long time if mysql spend some time to fix the bugs.


regards
Joerg


Return to “SGI: Development”

Who is online

Users browsing this forum: No registered users and 1 guest