resistance is obsolete ™ ;-)

Hints for compiling OGo under Solaris 9

Posted by Jeff McCombs in the users list ..."

Note: This needs to be updated for SOPE 4.3!

I think I've finally managed to lick getting OGo to compile from CVS and source-tarballs under Solaris 9 (sparc). I spent most of Sunday working out the compile problems. I figured that I'd share what I needed to do for a nice clean install. Guess I figure since I wasn't able to find any documentation on getting Ogo up in Solaris 9, someone else out there might find this useful.

First off, let me describe my build environment:

Solaris 9, Sparc platform (ultra 10, 1gb ram) - pretty clean, the OS has only been on the box for about 2 days.

Uname -a output:
SunOS gumdrop 5.9 Generic_112233-07 sun4u sparc SUNW,Ultra-5_10
All packages courtesy of www.sunfreeware.com:
Autoconf 2.57,	Automake 1.7.2	bison 1.875
db 3.3.11	flex-2.5.4a	gawk-3.1.1
gcc-3.3.1	gdbm-1.8.3	gettext-0.11.5,
groff-1.17.2	libtool-1.5	m4-1.4
make-3.80	readline 4.3	zlib 1.1.4.

That's pretty much it. Fairly basic build environment, standard Solaris ld, etc.

LD_LIBRARY_PATH wasn't set originally, in favor of using 'crle', however since the GNUstep environment setup scripts *require* LD paths to be set right, so I set it up to match my crle environment:

/usr/local/lib:/usr/local/ssl/lib:/usr/dt/lib:/usr/openwin/lib:/usr/lib:~/li
b:

Execution path is also, fairly basic:

/usr/local/bin:/usr/local/sbin:/usr/ccs/bin:/usr/dt/bin:/usr/openwin/bin:/us
r/bin:/usr/sbin:/usr/sfw/bin:~/bin:.

Please note, that I'm an extremely lazy individual when it comes to documentation (or just about anything else, except perhaps drinking) so where I say "No changes needed" what I mean, is that no changes were made to the instructions already given on the OpenGroupware.org website for building that particular module. This is by far not a piece of work that I would consider being "proud" of. Perhaps it's more of a set of hints than any kind of "how to". At any rate, it's important to know that while I've gotten the thing to run, I haven't begun the configuration phase just yet. Though not encountering any seg-faults or other strange errors after firing the thing up does give me some hope at least.

So here we go.

First off, you need to get OpenLDAP and libiconv onto your system.

ThirdParty Stuff:
Gnustep-make:	no changes needed.
Gnustep-objc:
Need to create some symlinks for a clean compile here.
Cd gnustep-objc
Ln -s . objc
Cd config/sparc; ln -s solaris2.6 solaris2.9
Cd ..
libFoundation:	no changes needed
libxml2	no changes needed
libical:
chmod +x install-sh
js-1.5:
For some reason or another, js wants to use CC instead of gcc.
Fix this easily by doing the following:
Cd /usr/ccs/bin; mv cc cc.old ; ln -s /usr/local/bin/gcc cc
Course, if you've got the sun's compilers installed, you prolly should
figure out something else. ?
SOPE
Skyrix-xml	No changes needed
Skyrix-core	no changes needed
Skyrix-sope
In skyrix-sope/NGObjWeb:
Edit GNUmakefile.preamble with your favorite editor.
1. Look for wod_TOOL_LIBS += \
a. Add -liconv to the end of the library inclusion listing.
2. Look for xmlrpc_call_TOOL_LIBS +=\
a. Add -liconv to the end of the library inclusion listing.
3. Look for sope_TOOL_LIBS +=\
a. Add -liconv to the end of the library inclusion listing.
4. Save the file.
- in skyrix-sope/SxComponents
Edit GNUmakefile.preamble with your favorite editor.
1. Look for ADDITIONAL_TOOL_LIBS +=\
a. Add -liconv to the end of the library inclusion listing.
GNUSTEP-DB
GDLAccess	No changes needed.
PostgreSQL72
To avoid the dreaded "PostgreSQL72Channel.h:31:22:Warning libpq-fe.h: No
Such file" error,
just set the environment variable PGSQL to point to your installed
postgresql base directory.
E.g. "PGSQL=/usr/local/pgsql; export PGSQL"
Logic
Under LSFoundation/
Edit GNUmakefile with your favorite editor
1. Look for load-LSModel_TOOL_LIBS
a. Add -liconv -lldap -lresolv -lNGExtensions_d
Under LSFoundation/
Edit GNUmakefile.preamble with your favorite editor.
1. Look for libLSFoundation_LIBRARIES_DEPEND_UPON +=\
a. Add -liconv to the end of the library inclusion listing.
DATABASE/OGOMODEL:

No changes needed in this section.

DOCUMENTAPI

No changes needed in this section.

WEBUI
Under OpenGroupware.org/
Edit GNUMakefile.preamble
1. Look for OpenGroupware_TOOL_LIBS +=\
a. add -lldap to the end of the library inclusion listing.
2. Look for OpenGroupware_TOOL_LIBS += -lNGJavaScript -ljs
a. add -lresolv to the end of the library inclusion listing.
Under Resources/
Edit GNUmakefile
1. Look for "cp -RPp .."
a. change 'cp -RPp' to 'cp -Rp'
Under ../../Themes/WebServerResources
Edit GNUmakefile
1. Look for "-cp -RPp."
a. change '-cp -RPp' to 'cp -Rp'

Volia.

Also, I compiled this under a separate username, 'ogo' who's home directory happens to be in /export/OGo. This helps me to keep ogo libs, etc as separate as possible from the rest of the system, as well as allows me to have a user already setup with the GNUstep info loaded after login (well 'su ' actually, but same difference).

We welcome your feedback!
Trademarks.  
This site is sponsored by
SKYRIX Software AG
ZideOne GmbH
MDlink