On 06/20/2015 09:54 PM, Carsten John wrote:
> Hi Alex,
>
> many thanks for your suggestions.
>
> I checked out  B52_5 and did the following steps:
>
> autogen.sh
> configure.sh  --prefix=/opt/firebird-2.5 --with-system-icu
>
> In src/jrd/common.h I commented out the follwing lines (SFIO seems only to be 
> needed for older Solaris versions):
>
> /*
> #if (!defined(SFIO) && defined(SUPERSERVER))
> #error "need to use SFIO"
> #endif
> */
>
>
> in src/include/types_pub.h:32 I added the definition of the SunStudio 
> compiler:
>
> #if defined(__GNUC__) || defined (__HP_cc) || defined (__HP_aCC) || defined 
> (__SUNPRO_CC)
>
> the SunStudio compiler needs the following environment to be exported:
>
> export LANG=C;export LC_ALL=C
>
>
> unfortunately I ran into an issue when running "make":
>
> make[3]: Entering directory `/usr/share/src/B2_5_Release/gen'
> CC -DBOOT_BUILD -I../src/include/gen -I../src/include -I../src/vulcan 
> -DNAMESPACE=Vulcan -DNDEBUG -w -DSOLARIS -DSOLX86 -DBSD_COMP 
> -fno-omit-frame-pointer -fmessage-length=0 -MMD -fPIC -O2 -march=pentium  
> -D_REENTRANT    -c ../src/jrd/isc_file.cpp -o ../temp/boot/jrd/isc_file.o
> CC: Warning: Option -fno-omit-frame-pointer passed to ld, if ld is invoked, 
> ignored otherwise
> CC: Warning: Option -fmessage-length=0 passed to ld, if ld is invoked, 
> ignored otherwise
> CC: Warning: Option -fPIC passed to ld, if ld is invoked, ignored otherwise
> CC: Warning: Option -march=pentium passed to ld, if ld is invoked, ignored 
> otherwise
> "../src/jrd/isc_file.cpp", line 1387: Error: mnt_tab is not defined.
> "../src/jrd/isc_file.cpp", line 1387: Error: Badly formed expression.
> "../src/jrd/isc_file.cpp", line 1387: Error: Badly formed expression.
> 3 Error(s) detected.
>
>
> this seems to be related to the use of SFIO (even it's no longer required).

No. That's sooner is related to the fact that after Sun/Oracle deal 
nobody used to build for Solaris before you.

> in src/jrd/isc_file.cpp:1360 a special handler for solaris is defined that 
> seams not to work with newer versions (like openindiana).
>
> BTW it's a 64bit build.

Looks like previously you were using autoconfig.h from 32-bit system... 
Therefore bugs with ISC_LONG/ISC_ULONG. Do not know how could it happen. 
Starting from the beginning helped - I assume that issue is closed.

>
> any help is really appreciated.

Try to make that line look so:
     const int n = fscanf(mtab, "%s %s %s %s %s ", device, mount_point, 
type, opts, ftime);

(i.e. remove 'mnt_tab.')



------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to