Subject Re: ib_tools
Author Stanislav Tsikin
--- In IBDI@egroups.com, Paulo Henrique Rodrigues Pinheiro
<nulo@c...>
wrote:
> Hi !!!
>
> Grant! Now, only one problem (I used makefile.sun4 because
> makefile.solaris don't compile and haven't makefile.linux ;):
>
> [nulo@sql marion]$ make -f makefile.sun4
> INTERBASE=/opt/interbase
> cc -g marion.o stuff.o exec.o mpexl.o
> /usr/gds/maint4/jrd/libgds_b.a -ldl -o marion
> cc: /usr/gds/maint4/jrd/libgds_b.a: Arquivo ou diretório não
> encontrado
> make: *** [marion] Error 1
>
> Before compile the marion, I need compile or download this
> lib?

Yes. You need to build the library first. The workaround is to
install the IB 6.0 kit on your build machine. Then you can use the
following makefiles to build the marion.

Linux
-----

.SUFFIXES: .c .e
.e.c :
$(GPRE) -m -raw $<
.c.o :
$(CC) $(CFLAGS) -c $<

INTERBASE = /opt/interbase
GPRE = $(INTERBASE)/bin/gpre
CFLAGS = -DLINUX -DUNIX -w -g
OBJECTS = marion.o stuff.o exec.o mpexl.o

marion : $(OBJECTS)
cc -g $(OBJECTS) -o marion -lgds -ldl -lcrypt

clean :
-rm $(OBJECTS)
-rm marion.c stuff.c mpexl.c
-rm marion

marion.o : marion.c marion.h
marion.c : marion.e
stuff.o : stuff.c marion.h
stuff.c : stuff.e
exec.o : exec.c marion.h
mpexl.c : mpexl.e
mpexl.o : mpexl.c marion.h

Solaris
-------

.SUFFIXES: .c .e
.e.c :
$(GPRE) -z -m -n $<
.c.o :
$(CC) $(CFLAGS) -c $<

INTERBASE = /opt/interbase
GPRE = $(INTERBASE)/bin/gpre
CFLAGS = -g -w -DSOLARIS -mt -I$(INTERBASE)/include
OBJECTS = marion.o stuff.o exec.o mpexl.o

JRD = -lgdsmt -lsocket -lnsl -ldl -lthread

marion : $(OBJECTS)
cc $(CFLAGS) $(OBJECTS) $(JRD) -o marion

clean :
-rm $(OBJECTS)
-rm marion.c stuff.c mpexl.c
-rm marion

marion.o : marion.c marion.h
marion.c : marion.e
stuff.o : stuff.c marion.h
stuff.c : stuff.e
exec.o : exec.c marion.h
mpexl.o : mpexl.c marion.h
mpexl.c : mpexl.e


Hope this helps.
--Stas

>
> PS1: 'Arquivo ou diretório não encontrada' <=> 'No such file
> or directory' (in pt_BR locale).
>
> PS2: I will post the patchs and commands need to compile
> whem ok.
>
>
> > It seems to me that my previous message did not get to the list.
> > Here it goes one more time.
> >
> > Please use the following definitions:
> >
> > #ifdef _ANSI_PROTOTYPES_
> > #define PROTO(args) args
> > #else
> > #define PROTO(args) ()
> > #endif
>
>
> --
> Paulo Henrique Rodrigues Pinheiro <nulo@c...>
> Usuário Linux registrado com o número 173191
> Faça seu computador feliz: LINUX nele !!!
> http://www.conectiva.com.br/~nulo