TIP: Click on subject to list as thread! ANSI
echo: muffin
to: Wes Garland
from: Vince Coen
date: 2003-06-06 23:22:08
subject: Maximus on Linux

Hello Wes!

05 Jun 03 12:48, you wrote to me:

 WG> Can you post the output of the following commands from the top-level
 WG> directory?

 WG> # uname -a
 WG> # gcc --version
 WG> # g++ --version
 WG> # make build_debug
 WG> # find . -name \*.so

=== Cut ===
Linux study2.applewood.org 2.4.19-16mdksmp #1 SMP Fri Sep 20 16:08:37 CEST 
2002 i686 unknown unknown GNU/Linux
gcc (GCC) 3.2 (Mandrake Linux 9.0 3.2-1mdk)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

g++ (GCC) 3.2 (Mandrake Linux 9.0 3.2-1mdk)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


BUILD     = DEVEL
PREFIX    = /var/max
CC        = /usr/bin/gcc
LD        = ld -shared
YACC      = /usr/bin/bison
YFLAGS    = -t
CFLAGS    = -g -Wall -O
LDFLAGS   = -L/var/max/lib -Xlinker -R/var/max/lib
LOADLIBES =  -lmax -lcompat -lcurses -lpthread
CPPFLAGS  = -DUNIX -DLINUX -I. -I/opt/mbse/max-unix-3.03a/unix/include 
-I/opt/mbse/max-unix-3.03a/slib -I/opt/mbse/max-unix-3.03a/max 
-I/opt/mbse/max-unix-3.03a/msgapi -I/opt/mbse/max-unix-3.03a/prot 
-I/opt/mbse/max-unix-3.03a/btree -I/opt/mbse/max-unix-3.03a/mex 
-I/opt/mbse/max-unix-3.03a/prot

./mex/libmexvm.so
./dist/arj-3.10.8/linux-gnu/en/rs/arjcrypt/arjcrypt.so
./slib/libsmserial.so
./slib/libmax.so
./unix/libcompat.so
./btree/libmaxbt.so
./msgapi/libmsgapi.so
=== Cut ===


 WG> Also, try adding this to btree/Makefile:

 WG> CXXFLAGS += -fpermissive

 WG> ...as for it not finding -lmax, the contents of slib have to built
 WG> (and maybe installed) for that to go.

Please advise how I do that and any other pre-requisites.


 WG> I should take a better look at
 WG> the from-scratch build mechanisms, but unfortunately it takes this
 WG> poor under powered little box almost three hours to do a from-scratch
 WG> build. I will try and move this over to the SourceForge compile farm
 WG> to get the build process a little more bug free. :)

 WG> BTW, I intend to have a new release ready tonight sometime. Changes
 WG> aren't enormous (mostly telnet related), but it will be available as a
 WG> "tar diff" as well as a "full" release. Or, you
could check the whole
 WG> thing out from CVS *after* I've done the next release if you know how
 WG> to do that. (CVS tree is currently two patches behind what you have)

Output from error file from make squish:

=== Cut ===
In file included from track.cc:30:
track.h:45: warning: non-local function `int TRACKER::AddMsg(TRK_MSG_NDX*)' 
uses anonymous type
trackcom.h:107: warning: `typedef struct  TRK_MSG_NDX' does not 
refer to the unqualified type, so it is not used for linkage
track.h:46: warning: non-local function `int TRACKER::UpdateMsg(TRK_MSG_NDX*, 
TRK_MSG_NDX*)' uses anonymous type
trackcom.h:107: warning: `typedef struct  TRK_MSG_NDX' does not 
refer to the unqualified type, so it is not used for linkage
track.h:47: warning: non-local function `int 
TRACKER::DeleteMsg(TRK_MSG_NDX*)' uses anonymous type
trackcom.h:107: warning: `typedef struct  TRK_MSG_NDX' does not 
refer to the unqualified type, so it is not used for linkage
track.h:48: warning: non-local function `static char* 
TRACKER::GetStatus(TRK_MSG_NDX*)' uses anonymous type
trackcom.h:107: warning: `typedef struct  TRK_MSG_NDX' does not 
refer to the unqualified type, so it is not used for linkage
track.h:49: warning: non-local function `static char* 
TRACKER::GetPriority(TRK_MSG_NDX*)' uses anonymous type
trackcom.h:107: warning: `typedef struct  TRK_MSG_NDX' does not 
refer to the unqualified type, so it is not used for linkage
track.h:52: warning: non-local function `int TRACKER::LookupMsg(char*, char*, 
char*, PALIST*, TRK_MSG_NDX*, unsigned int = )' uses anonymous type
trackcom.h:107: warning: `typedef struct  TRK_MSG_NDX' does not 
refer to the unqualified type, so it is not used for linkage
track.cc:295: warning: non-local function `int TRACKER::AddMsg(TRK_MSG_NDX*)' 
uses anonymous type
trackcom.h:107: warning: `typedef struct  TRK_MSG_NDX' does not 
refer to the unqualified type, so it is not used for linkage
track.cc:337: warning: non-local function `int 
TRACKER::UpdateMsg(TRK_MSG_NDX*, TRK_MSG_NDX*)' uses anonymous type
trackcom.h:107: warning: `typedef struct  TRK_MSG_NDX' does not 
refer to the unqualified type, so it is not used for linkage
track.cc:365: warning: non-local function `int 
TRACKER::DeleteMsg(TRK_MSG_NDX*)' uses anonymous type
trackcom.h:107: warning: `typedef struct  TRK_MSG_NDX' does not 
refer to the unqualified type, so it is not used for linkage
track.cc:392: warning: non-local function `int TRACKER::LookupMsg(char*, 
char*, char*, PALIST*, TRK_MSG_NDX*, unsigned int)' uses anonymous type
trackcom.h:107: warning: `typedef struct  TRK_MSG_NDX' does not 
refer to the unqualified type, so it is not used for linkage
track.cc:418: warning: non-local function `char* 
TRACKER::GetPriority(TRK_MSG_NDX*)' uses anonymous type
trackcom.h:107: warning: `typedef struct  TRK_MSG_NDX' does not 
refer to the unqualified type, so it is not used for linkage
track.cc:434: warning: non-local function `char* 
TRACKER::GetStatus(TRK_MSG_NDX*)' uses anonymous type
trackcom.h:107: warning: `typedef struct  TRK_MSG_NDX' does not 
refer to the unqualified type, so it is not used for linkage
In file included from trackc.cc:26:
track.h:45: warning: non-local function `int TRACKER::AddMsg(TRK_MSG_NDX*)' 
uses anonymous type
trackcom.h:107: warning: `typedef struct  TRK_MSG_NDX' does not 
refer to the unqualified type, so it is not used for linkage
track.h:46: warning: non-local function `int TRACKER::UpdateMsg(TRK_MSG_NDX*, 
TRK_MSG_NDX*)' uses anonymous type
trackcom.h:107: warning: `typedef struct  TRK_MSG_NDX' does not 
refer to the unqualified type, so it is not used for linkage
track.h:47: warning: non-local function `int 
TRACKER::DeleteMsg(TRK_MSG_NDX*)' uses anonymous type
trackcom.h:107: warning: `typedef struct  TRK_MSG_NDX' does not 
refer to the unqualified type, so it is not used for linkage
track.h:48: warning: non-local function `static char* 
TRACKER::GetStatus(TRK_MSG_NDX*)' uses anonymous type
trackcom.h:107: warning: `typedef struct  TRK_MSG_NDX' does not 
refer to the unqualified type, so it is not used for linkage
track.h:49: warning: non-local function `static char* 
TRACKER::GetPriority(TRK_MSG_NDX*)' uses anonymous type
trackcom.h:107: warning: `typedef struct  TRK_MSG_NDX' does not 
refer to the unqualified type, so it is not used for linkage
track.h:52: warning: non-local function `int TRACKER::LookupMsg(char*, char*, 
char*, PALIST*, TRK_MSG_NDX*, unsigned int = )' uses anonymous type
trackcom.h:107: warning: `typedef struct  TRK_MSG_NDX' does not 
refer to the unqualified type, so it is not used for linkage
trackc.cc:55: warning: non-local function `int TrkAddMsg(TRACKER*, 
TRK_MSG_NDX*)' uses anonymous type
trackcom.h:107: warning: `typedef struct  TRK_MSG_NDX' does not 
refer to the unqualified type, so it is not used for linkage
trackc.cc:60: warning: non-local function `char* TrkGetStatus(TRACKER*, 
TRK_MSG_NDX*)' uses anonymous type
trackcom.h:107: warning: `typedef struct  TRK_MSG_NDX' does not 
refer to the unqualified type, so it is not used for linkage
trackc.cc:65: warning: non-local function `char* TrkGetPriority(TRACKER*, 
TRK_MSG_NDX*)' uses anonymous type
trackcom.h:107: warning: `typedef struct  TRK_MSG_NDX' does not 
refer to the unqualified type, so it is not used for linkage
trackc.cc:70: warning: non-local function `int TrkLookupMsg(TRACKER*, char*, 
char*, char*, PALIST*, TRK_MSG_NDX*)' uses anonymous type
trackcom.h:107: warning: `typedef struct  TRK_MSG_NDX' does not 
refer to the unqualified type, so it is not used for linkage
trackc.cc:75: warning: non-local function `int TrkLookupMsgI(TRACKER*, char*, 
char*, char*, PALIST*, TRK_MSG_NDX*, unsigned int)' uses anonymous type
trackcom.h:107: warning: `typedef struct  TRK_MSG_NDX' does not 
refer to the unqualified type, so it is not used for linkage
trackc.cc:116: warning: non-local function `int TrkUpdateMsg(TRACKER*, 
TRK_MSG_NDX*, TRK_MSG_NDX*)' uses anonymous type
trackcom.h:107: warning: `typedef struct  TRK_MSG_NDX' does not 
refer to the unqualified type, so it is not used for linkage
trackc.cc:121: warning: non-local function `int TrkDeleteMsg(TRACKER*, 
TRK_MSG_NDX*)' uses anonymous type
trackcom.h:107: warning: `typedef struct  TRK_MSG_NDX' does not 
refer to the unqualified type, so it is not used for linkage
In file included from trackexp.cc:26:
track.h:45: warning: non-local function `int TRACKER::AddMsg(TRK_MSG_NDX*)' 
uses anonymous type
trackcom.h:107: warning: `typedef struct  TRK_MSG_NDX' does not 
refer to the unqualified type, so it is not used for linkage
track.h:46: warning: non-local function `int TRACKER::UpdateMsg(TRK_MSG_NDX*, 
TRK_MSG_NDX*)' uses anonymous type
trackcom.h:107: warning: `typedef struct  TRK_MSG_NDX' does not 
refer to the unqualified type, so it is not used for linkage
track.h:47: warning: non-local function `int 
TRACKER::DeleteMsg(TRK_MSG_NDX*)' uses anonymous type
trackcom.h:107: warning: `typedef struct  TRK_MSG_NDX' does not 
refer to the unqualified type, so it is not used for linkage
track.h:48: warning: non-local function `static char* 
TRACKER::GetStatus(TRK_MSG_NDX*)' uses anonymous type
trackcom.h:107: warning: `typedef struct  TRK_MSG_NDX' does not 
refer to the unqualified type, so it is not used for linkage
track.h:49: warning: non-local function `static char* 
TRACKER::GetPriority(TRK_MSG_NDX*)' uses anonymous type
trackcom.h:107: warning: `typedef struct  TRK_MSG_NDX' does not 
refer to the unqualified type, so it is not used for linkage
track.h:52: warning: non-local function `int TRACKER::LookupMsg(char*, char*, 
char*, PALIST*, TRK_MSG_NDX*, unsigned int = )' uses anonymous type
trackcom.h:107: warning: `typedef struct  TRK_MSG_NDX' does not 
refer to the unqualified type, so it is not used for linkage
/usr/bin/ld: cannot find -lmsgapi
collect2: ld returned 1 exit status
make[1]: *** [trackexp] Error 1
/usr/bin/ld: cannot find -lmax
collect2: ld returned 1 exit status
make[1]: *** [squish] Error 1
=== Cut ===

and for make max


=== Cut ===
In file included from trackexp.cc:26:
track.h:45: warning: non-local function `int TRACKER::AddMsg(TRK_MSG_NDX*)' 
uses anonymous type
trackcom.h:107: warning: `typedef struct  TRK_MSG_NDX' does not 
refer to the unqualified type, so it is not used for linkage
track.h:46: warning: non-local function `int TRACKER::UpdateMsg(TRK_MSG_NDX*, 
TRK_MSG_NDX*)' uses anonymous type
trackcom.h:107: warning: `typedef struct  TRK_MSG_NDX' does not 
refer to the unqualified type, so it is not used for linkage
track.h:47: warning: non-local function `int 
TRACKER::DeleteMsg(TRK_MSG_NDX*)' uses anonymous type
trackcom.h:107: warning: `typedef struct  TRK_MSG_NDX' does not 
refer to the unqualified type, so it is not used for linkage
track.h:48: warning: non-local function `static char* 
TRACKER::GetStatus(TRK_MSG_NDX*)' uses anonymous type
trackcom.h:107: warning: `typedef struct  TRK_MSG_NDX' does not 
refer to the unqualified type, so it is not used for linkage
track.h:49: warning: non-local function `static char* 
TRACKER::GetPriority(TRK_MSG_NDX*)' uses anonymous type
trackcom.h:107: warning: `typedef struct  TRK_MSG_NDX' does not 
refer to the unqualified type, so it is not used for linkage
track.h:52: warning: non-local function `int TRACKER::LookupMsg(char*, char*, 
char*, PALIST*, TRK_MSG_NDX*, unsigned int = )' uses anonymous type
trackcom.h:107: warning: `typedef struct  TRK_MSG_NDX' does not 
refer to the unqualified type, so it is not used for linkage
/usr/bin/ld: cannot find -lmsgapi
collect2: ld returned 1 exit status
make[1]: *** [trackexp] Error 1
/usr/bin/ld: cannot find -lmax
collect2: ld returned 1 exit status
make[1]: *** [squish] Error 1
/usr/bin/ld: cannot find -lmax
collect2: ld returned 1 exit status
make[1]: *** [mex] Error 1
make[1]: *** No rule to make target `all', needed by `top'.  Stop.
/usr/bin/ld: cannot find -lmax
collect2: ld returned 1 exit status
make[1]: *** [maid] Error 1
make: *** [max] Error 2
=== Cut ===

Error count seems to have increased with that extra line added in 
btree/Makefile.

Any help?

Vince

--- Linux/Mbse/GoldED+/LNX 1.1.5-20709
* Origin: Air Applewood, Linux Gateway for Essex (2:257/609)
SEEN-BY: 633/267 270
@PATH: 257/609 250/501 140/1 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.