19.01.2018 11:41, Adriano dos Santos Fernandes wrote:
On 19/01/2018 07:14, Roman Simakov wrote:
Hello!

It seems that we have a problem with installation of Firebird 3 on
OpenSuse. I get "Could not find acceptable ICU library".

I took a look into sources. FB tries to search ICU modules in some
magic manner combining major and minor versions. But it looks in Suse
icu libraries has additional prefix like ".1" or "_1". I tries to make
symlink and server could find .so! However it could not find functions
because of the same problem. They also use such suffixes.

Anybody can fix a magic of library and functions looking up or at
least explain me an idea of naming?

You should use some heuristics, try each different name scheme...

Unfortunately ICU (or Linux distros) is changing this every time.

  I could be wrong, but... look at UnicodeUtil::getConversionICU():

-----------
        const int majorArray[] = {5, 4, 3, 6, 0};

        for (const int* major = majorArray; *major; ++major)
        {
                for (int minor = 20; minor--; ) // from 19 down to 0
                {
                        if ((*major == favMaj) && (minor == favMin))
                        {
                                continue;
                        }

                        try
                        {
                                if ((convIcu = 
ImplementConversionICU::create(*major, minor)))
                                        return *convIcu;
                        }
-----------

it search for ICU library using versions numbers such as 5.19 ... 5.0, 4.19 ... 
4.0 etc.

  But, IIRC, current ICU versions is 51.x, 52.x, 60.x etc. I.e. they changed 
version
numbering from N.xy to Nx.y. Is it correct ?

Regards,
Vlad

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to