gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gpsd-dev] Solaris x86 (64-bit) 11.2 - "scons check" fails early on in i


From: Frank Nicholas
Subject: [gpsd-dev] Solaris x86 (64-bit) 11.2 - "scons check" fails early on in initialization
Date: Tue, 3 Feb 2015 13:27:53 -0500

Just for kicks, I tried ‘scons check’ on my Solaris server (current gpsd clone).  Scons dies, early on, I believe because it doesn’t detect my Solaris box as posix, cygwin, or darwin, in this part of “SConstruct”:

def VersionedSharedLibrary(env, libname, version, lib_objs=[], parse_flags=[]):
    platform = env.subst('$PLATFORM')
    shlib_pre_action = None
    shlib_suffix = env.subst('$SHLIBSUFFIX')
    shlib_post_action = None
    shlink_flags = SCons.Util.CLVar(env.subst('$SHLINKFLAGS'))

    if platform == 'posix':
        ilib_suffix = shlib_suffix + '.' + version
        (major, age, revision) = version.split(".")
        soname = "lib" + libname + shlib_suffix + "." + major
        shlink_flags += [ '-Wl,-Bsymbolic', '-Wl,-soname=%s' % soname ]
    elif platform == 'cygwin':
        ilib_suffix = shlib_suffix
        shlink_flags += [ '-Wl,-Bsymbolic',
                          '-Wl,--out-implib,${TARGET.base}.a' ]
    elif platform == 'darwin':
        ilib_suffix = '.' + version + shlib_suffix
        shlink_flags += [ '-current_version', '%s' % version,
                          '-compatibility_version', '%s' % version,
                          '-undefined', 'dynamic_lookup' ]

    ilib = env.SharedLibrary(libname,lib_objs,
                            SHLIBSUFFIX=ilib_suffix,
                            SHLINKFLAGS=shlink_flags, parse_flags=parse_flags)

The error output is below:

qt = False (default True): build QT bindings
UnboundLocalError: local variable 'ilib_suffix' referenced before assignment:
  File "/root/gpsd/SConstruct", line 980:
    parse_flags=dbus_libs + rtlibs)
  File "/root/gpsd/SConstruct", line 970:
    parse_flags=parse_flags)
  File "/root/gpsd/SConstruct", line 911:
    SHLIBSUFFIX=ilib_suffix,
address@hidden gpsd # 

Without detecting one of the three in the “if/elif” statements, “ilib_suffix” is undefined/uninitialized in the last statement.

I’m pretty sure Solaris is POSIX compliant…

If Solaris x86 matters to gpsd, I’m willing to provide either access to my box or troubleshoot with guidance from the dev group.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]