You either need to addQuote:Alexander Klimov writes:
> After two days of strugle I have compiled pgsql on ultrix, patch is in
> attachment. I still can't run `gmake check', because of shell problems
> in install.log:
> install: no destination specified
> gmake: *** [install-lib-shared] Error 1
> gmake: Leaving directory
enable_shared = no
to Makefile.ultrix4, or inform Makefile.shlib about how to build shared
If you're using GCC then configure with --enable-depend to buildQuote:> With the speed of the box it will take another two days to fix and
> check :-)
dependencies, so you don't have to do make clean everytime.
Since there will be more unnecessary inclusions the next time somebodyQuote:> First problem is sys/socket.h. Here it has no guards in it (like
> #ifdef _SOCKET_H
> #endif), so it could not be included twice, and I have to remove its
> unnecesarry inclusions.
touches a file, the ultimately better strategy might be to add such a
See src/bin/psql/Makefile for examples of linking in helper .o files.Quote:> I have to add src/utils/strdup.o to linking in
> src/interfaces/ecpg/preproc and /src/bin/pg_passwd
> and I don't shure how to do it in patch (so, it is not there).
Better to explicitly include sys/ipc.h again where it's needed.Quote:> sys/ipc.h included from miscadmin.h is needed for sys/sem.h, so I reorder
> their inclusion.
There'sQuote:> There is no dynamic libraries for Ultrix, so I have to download libdl, but
> it is not supported by configure (I guess), so I add
> LIBS += -L/home/ask/soft/build/libdl -ldl
> it is obviously wrong -- should be changed.
which does what you want, but you need to give your linker a hint where to
find it. See configure --with-libraries.
Maybe the stuff underQuote:> BTW: Do anybody know about tool, helping to analize include structure, in
> order to eliminate several includes of one file (like case with
> sys/socket.h which is unneeded for everybody, who includes libpq-be.h)
---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?