Login Register Actian.com  

Actian Community Forum


Go Back   Actian Community Forums > Ingres Forums > Ingres Database Contributions
 

Reply
 
LinkBack Thread Tools Display Modes
Old 2012-01-02   #1 (permalink)
Ingres Community
 
Join Date: Oct 2011
Posts: 14
Default Building Ingres on Solaris 10 Sparc

Hello,

i'm trying to build Ingres 10 revision 4911 on a Sun Ultra 45 With Solaris 10 Sparc.

I used 'svn ingres - Revision 4911: /main' to check out this revision.

When I run 'runbuild.sh' everything seems to be fine, but after a while the build proces stops with the following errors:

flex /ingres/server/src/testtool/sep/sepdiff/grammar.lex

...failed Lex /ingres/server/src/testtool/sep/sepdiff/grammar.c ...
...skipped <testtool!sep!sepdiff>grammar.o for lack of <testtool!sep!sepdiff>grammar.c...
...skipped /ingres/server/tools/lib/libsepdiff.a for lack of /ingres/server/tools/lib/libsepdiff.a(grammar.o)...
...failed updating 1 target(s)...
...skipped 59 target(s)...
...updated 12531 target(s)...
./runbuild.sh: line 132: buildrel: command not found.

Does anyone know how to build Ingres 10.1 successfully on Solaris 10 Sparc?

Regards,
Michel Oosterom
mpoosterom is offline   Reply With Quote
Old 2012-01-02   #2 (permalink)
Ingres Community
 
kschendel's Avatar
 
Join Date: Mar 2007
Location: Pittsburgh, PA
Posts: 1,661
Default

Download or install flex (free lex variant), or make sure it's in the path if it's already installed. That will take care of the sep grammar compile problem. When I first installed Solaris, many moons ago, there was a separate free software companion cd or dvd that contained flex (among other things).

Sep is just a testing tool, though. I don't use runbuild, so I'm not sure about the buildrel not found error. If it were a csh script I would suggest adding a rehash command, I forget whether solaris's sh has a rehash as well. Maybe make sure that the path is OK at that point in the runbuild script.
kschendel is offline   Reply With Quote
Old 2012-01-04   #3 (permalink)
Ingres Community
 
Join Date: Oct 2011
Posts: 14
Default

Hi Kschendel,

thnx for your reply.

I've installed the free lex variant, and started a new build process. Ingres seems to be build, but now I get another error:

Chmod1 /ingres/server/build/utility/unimapcompile
IIUCHARMAP /ingres/server/build/files/ucharmaps/ca-big5-cht-2004
ld.so.1: unimapcompile: fatal: tr/ingres/ingres-10.1.0-120-gpl-src/xerces-c-src_2_7_0/obj/SOLARIS: open failed: No such file or directory
ld.so.1: unimapcompile: fatal: tr/ingres/ingres-10.1.0-120-gpl-src/xerces-c-src_2_7_0/obj/SOLARIS: audit initialization failure: disabled
/bin/sh: line 1: 9062 Killed unimapcompile -o=ca-big5-cht-2004 /ingres/server/src/common/adf/adn/ca-big5-cht-2004.xml
chmod: WARNING: can't access /ingres/server/build/files/ucharmaps/ca-big5-cht-2004

unimapcompile -o=ca-big5-cht-2004 /ingres/server/src/common/adf/adn/ca-big5-cht-2004.xml
chmod 644 /ingres/server/build/files/ucharmaps/ca-big5-cht-2004

...failed IIUCHARMAP /ingres/server/build/files/ucharmaps/ca-big5-cht-2004 ...
...failed updating 1 target(s)...
...skipped 1 target(s)...
...updated 5406 target(s)...
./runbuild.sh: line 132: buildrel: command not found

I figured out that buildrel is actually a file called buildrel.c, but because of the fatal error this program won't be build.

The message

IUCHARMAP /ingres/server/build/files/ucharmaps/ca-big5-cht-2004
ld.so.1: unimapcompile: fatal: tr/ingres/ingres-10.1.0-120-gpl-src/xerces-c-src_2_7_0/obj/SOLARIS: open failed: No such file or directory


looks strange to me because the directory /ingres/ingres-10.1.0-120-gpl-src/xerces-c-src_2_7_0/obj/Solaris exists and is readable by the user which makes the Ingres build. In my case i've created a user ingres to make the build.

Could you give me some more tips how to build Ingres on Solaris 10 Sparc?
mpoosterom is offline   Reply With Quote
Old 2012-01-04   #4 (permalink)
Ingres Community
 
kschendel's Avatar
 
Join Date: Mar 2007
Location: Pittsburgh, PA
Posts: 1,661
Default

What is your LD_LIBRARY_PATH set to? It appears that unimapcompile is looking for the xerces shared library (libxerces-c.27.so or some such name) in a weird directory. It should be looking in $ING_BUILD/lib. What does "ldd $ING_BUILD/utility/unimapcompile" say? Also, the ld.so message about audit initialization failure is strange, I have no idea what that means. (ld.so is the Solaris dynamic linker.)
kschendel is offline   Reply With Quote
Old 2012-01-04   #5 (permalink)
Ingres Community
 
Join Date: Oct 2011
Posts: 14
Default

LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/lib:/usr/sfw/lib
libxerces-c.27.so is in $INGBUILD/lib

ldd $INGBUILD/utility/unimapcompile gives the following output:

ld.so.1: unimapcompile: fatal: tr/ingres/ingres-10.1.0-120-gpl-src/xerces-c-src_2_7_0/obj/SOLARIS: open failed: No such file or directory
ld.so.1: unimapcompile: fatal: tr/ingres/ingres-10.1.0-120-gpl-src/xerces-c-src_2_7_0/obj/SOLARIS: audit initialization failure: disabled
ldd: /ingres/server/build/utility/unimapcompile: execution failed due to signal 9


It looks to me that when unimapcompile was linked tr was placed in front of /ingres/ingres-10.1.0-......
mpoosterom is offline   Reply With Quote
Old 2012-01-04   #6 (permalink)
Ingres Community
 
kschendel's Avatar
 
Join Date: Mar 2007
Location: Pittsburgh, PA
Posts: 1,661
Default

Is LD_AUDIT set in the environment? Maybe try unsetting it.

unimapcompile links fine for me, so I'm not sure what is going on here. You can try:
cd $ING_SRC/common/adf/adl
jam -a

which will recompile and relink the unimapcompile (and unialscompile) utilities. Maybe you can see something in the link string that is wrong in your environment.
kschendel is offline   Reply With Quote
Old 2012-01-19   #7 (permalink)
Ingres Community
 
Join Date: Oct 2011
Posts: 14
Default

Hi,

I think I found a part of the problem.
When I start the build the following messages appear in the logfile

Quote:
tools: doing group
ING_SRC: doing top
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
don't know how to make <hb>libxerces-c.so.27.0
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...found 37645 target(s)...
...updating 15189 target(s)...
...can't find 1 target(s)...
...can't make 58 target(s)...
Could this be the cause of the problem in message "6".
And could you tell me how to avoid the message "don't know how to make <hb>libxerces-c.so.27.0"
mpoosterom is offline   Reply With Quote
Old 2012-01-19   #8 (permalink)
Ingres Community
 
Join Date: Mar 2007
Posts: 166
Default

Hi,

my first step prior to build Ingres is to build xerces-c: both 32- and 64-bit. Look here Ingres Community Build Page - Ingres Community Wiki and change linux stuff to solaris eg.

./runConfigure -psolaris -ccc -xCC -minmem -nsocket -tnative -rpthread -b32 -l"-m32" -z"-m32"
....
remember to put 64-bit versions in lp64 directory.

Then run runbuild.sh and buildrel -a and tartools -a and mksaveset.

For OpenSolaris there is a problem with mksaveset but is easy to fix.

---
jjanusz
jjanusz is offline   Reply With Quote
Old 2012-01-30   #9 (permalink)
Ingres Community
 
Join Date: Oct 2011
Posts: 14
Default

Hi,

I was able to build both the 32-bit and the 64-bit version of Xerces 2.7, the message "don't know how to make <hb>....." disappeared.

However, Buildrel still fails, but now with a different message:
Quote:
ink /export/home/ingres/server/build/utility/unimapcompile
Chmod1 /export/home/ingres/server/build/utility/unimapcompile
IIUCHARMAP /export/home/ingres/server/build/files/ucharmaps/ca-big5-cht-2004
ld.so.1: unimapcompile: fatal: tr/export/home/xerces-c-src_2_7_0/obj/SOLARIS: open failed: No such file or directory
ld.so.1: unimapcompile: fatal: tr/export/home/xerces-c-src_2_7_0/obj/SOLARIS: audit initialization failure: disabled
Killed
chmod: WARNING: can't access /export/home/ingres/server/build/files/ucharmaps/ca-big5-cht-2004

unimapcompile -o=ca-big5-cht-2004 /export/home/ingres/server/src/common/adf/adn/ca-big5-cht-2004.xml
chmod 644 /export/home/ingres/server/build/files/ucharmaps/ca-big5-cht-2004

...failed IIUCHARMAP /export/home/ingres/server/build/files/ucharmaps/ca-big5-cht-2004 ...
...failed updating 1 target(s)...
...updated 5441 target(s)...
./runbuild.sh: line 148: buildrel: command not found

The directory "export/home/xerces-c-src_2_7_0/obj/SOLARIS" does exist.
What could be the problem here?
mpoosterom is offline   Reply With Quote
Old 2012-01-30   #10 (permalink)
Ingres Community
 
kschendel's Avatar
 
Join Date: Mar 2007
Location: Pittsburgh, PA
Posts: 1,661
Default

So we're back to the problem of 3 weeks ago? Is LD_AUDIT defined in the environment? Try unsetting it.
kschendel is offline   Reply With Quote

Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


© 2011 Actian Corporation. All Rights Reserved