Login | Register
My pages Projects Community openCollabNet

Discussions > issues > Solaris build problems (SunOS 5.10)

fsvs
Discussion topic

Back to topic list

Solaris build problems (SunOS 5.10)

Author Lasse Kliemann <lasse-list-fsvs-issues-2008 at mail dot plastictree dot net>
Full name Lasse Kliemann <lasse-list-fsvs-issues-2008 at mail dot plastictree dot net>
Date 2008-08-14 02:59:23 PDT
Message Greetings,

trying to compile fsvs 1.1.16 on SunOS 5.10 with gcc 2.95.3, I ran into several
problems.

The configure system has at least two flaws:

- gcc is detected, but not used, unless one sets CC by hand,

- CPPFLAGS and LDFLAGS seem to be ignored.


So I did the following. First, set CC to gcc

   export CC=gcc

Then call configure with the locations of apr and subversion on our system.

   ./configure --with-aprinc=/usr/l​ocal/apr/include/apr​-1 \
   --with-svninc=/usr/l​ocal/include/subvers​ion-1 \
   --with-aprlib=/usr/l​ocal/apr/lib --with-svnlib=/usr/local/lib

Add

   -idirafter /opt/gnu/include
   
to CFLAGS in src/Makefile, since that's the place where gdbm is installed on
our system and not found otherwise.

I get stuck after gmake stops here:

   CC cache.c
   In file included from cache.c:13:
   global.h:116: warning: unnamed struct/union that defines no instances
   global.h:129: warning: unnamed struct/union that defines no instances
   global.h:137: warning: unnamed struct/union that defines no instances
   global.h:138: warning: unnamed struct/union that defines no instances
   global.h:239: warning: unnamed struct/union that defines no instances
   global.h:246: warning: unnamed struct/union that defines no instances
   global.h:253: warning: unnamed struct/union that defines no instances
   global.h:320: warning: unnamed struct/union that defines no instances
   global.h:352: warning: unnamed struct/union that defines no instances
   global.h:353: warning: unnamed struct/union that defines no instances
   global.h:361: warning: unnamed struct/union that defines no instances
   global.h:366: warning: unnamed struct/union that defines no instances
   global.h:373: warning: unnamed struct/union that defines no instances
   global.h:377: warning: unnamed struct/union that defines no instances
   global.h:381: warning: unnamed struct/union that defines no instances
   global.h:382: warning: unnamed struct/union that defines no instances
   In file included from cache.c:14:
   cache.h: In function `cch__new_cache':
   cache.h:149: warning: null format string
   cache.c: In function `cch__entry_set':
   cache.c:80: warning: null format string
   cache.c: In function `cch___string_to_cv':
   cache.c:225: warning: unnamed struct/union that defines no instances
   cache.c:230: union has no member named `c0'
   cache.c:232: union has no member named `c1'
   cache.c:234: union has no member named `c2'
   cache.c:236: union has no member named `c3'
   cache.c:238: union has no member named `c4'
   cache.c:240: union has no member named `c5'
   cache.c: In function `cch__hash_add':
   cache.c:281: warning: null format string
   gmake[1]: *** [cache.o] Error 1
   gmake: *** [default-target] Error 2

Any hints?

Lasse
Attachments

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

Solaris build problems (SunOS 5.10) Lasse Kliemann <lasse-list-fsvs-issues-2008 at mail dot plastictree dot net> Lasse Kliemann <lasse-list-fsvs-issues-2008 at mail dot plastictree dot net> 2008-08-14 02:59:23 PDT
Messages per page: