PxLoadImage failure

I am porting a photon application from QNX 6.3 to 6.5 and running into a problem with PxLoadImage. The application uses “PxLoadImage(“sample.gif”, &pt_methods)” to load a gif image to the memory however it always fails with return value being NULL. I use the command “pv sample.gif” in the shell window and it also fails with “unable to load sample.gif”. The application runs on a compact flash card and I suspect some photon libraries are missing. So I use “export DL_DEBUG=1” before I run the “pv sample.gif” command, and the output is as follows, however I am still not able to figure out which library is missing. Can someone help me look into it? Greatly appreciated!

libs: load_object: attempt load of libAp.so.3
debug: find_file:1151: name=libAp.so.3 libpath=NULL rpath=NULL
debug: searchpath:1095: name=libAp.so.3 path= amode=4 bufsize=1025
debug: searchpath:1095: name=libAp.so.3 path= amode=4 bufsize=1025
debug: searchpath:1095: name=libAp.so.3 path=/usr/lib:/lib:/lib/dll:/cygnet/release/PC104:/lib/dll/font:/usr/local/apache/lib amode=4 bufsize=1025
debug: searchpath:1119: trying /usr/lib/libAp.so.3
debug: searchpath:1124:/usr/lib/libAp.so.3: success
libs: /usr/lib/libAp.so.3: found; real path:/usr/lib/libAp.so.3
libs: load_elf32: loaded lib at addr b8200000(text) b820f984(data)
libs: object libAp.so.3 loaded; real soname: libAp.so.3 loaded from: /usr/lib/libAp.so.3
libs: load_object: attempt load of libph.so.3
debug: find_file:1151: name=libph.so.3 libpath=NULL rpath=NULL
debug: searchpath:1095: name=libph.so.3 path= amode=4 bufsize=1025
debug: searchpath:1095: name=libph.so.3 path= amode=4 bufsize=1025
debug: searchpath:1095: name=libph.so.3 path=/usr/lib:/lib:/lib/dll:/cygnet/release/PC104:/lib/dll/font:/usr/local/apache/lib amode=4 bufsize=1025
debug: searchpath:1119: trying /usr/lib/libph.so.3
debug: searchpath:1124:/usr/lib/libph.so.3: success
libs: /usr/lib/libph.so.3: found; real path:/usr/lib/libph.so.3
libs: load_elf32: loaded lib at addr b8211000(text) b8316c68(data)
libs: object libph.so.3 loaded; real soname: libph.so.3 loaded from: /usr/lib/libph.so.3
libs: load_object: attempt load of libm.so.2
debug: find_file:1151: name=libm.so.2 libpath=NULL rpath=NULL
debug: searchpath:1095: name=libm.so.2 path= amode=4 bufsize=1025
debug: searchpath:1095: name=libm.so.2 path= amode=4 bufsize=1025
debug: searchpath:1095: name=libm.so.2 path=/usr/lib:/lib:/lib/dll:/cygnet/release/PC104:/lib/dll/font:/usr/local/apache/lib amode=4 bufsize=1025
debug: searchpath:1119: trying /usr/lib/libm.so.2
debug: searchpath:1130:/usr/lib/libm.so.2: failed (No such file or directory)
debug: searchpath:1119: trying /lib/libm.so.2
debug: searchpath:1124:/lib/libm.so.2: success
libs: /lib/libm.so.2: found; real path:/lib/libm.so.2
libs: load_elf32: loaded lib at addr b8320000(text) b834de7c(data)
libs: object libm.so.2 loaded; real soname: libm.so.2 loaded from: /lib/libm.so.2
libs: load_object: attempt load of libphexlib.so.3
debug: find_file:1151: name=libphexlib.so.3 libpath=NULL rpath=NULL
debug: searchpath:1095: name=libphexlib.so.3 path= amode=4 bufsize=1025
debug: searchpath:1095: name=libphexlib.so.3 path= amode=4 bufsize=1025
debug: searchpath:1095: name=libphexlib.so.3 path=/usr/lib:/lib:/lib/dll:/cygnet/release/PC104:/lib/dll/font:/usr/local/apache/lib amode=4 bufsize=1025
debug: searchpath:1119: trying /usr/lib/libphexlib.so.3
debug: searchpath:1124:/usr/lib/libphexlib.so.3: success
libs: /usr/lib/libphexlib.so.3: found; real path:/usr/lib/libphexlib.so.3
libs: load_elf32: loaded lib at addr b8353000(text) b8381bc0(data)
libs: object libphexlib.so.3 loaded; real soname: libphexlib.so.3 loaded from: /usr/lib/libphexlib.so.3
libs: load_object: attempt load of libimg.so.1
debug: find_file:1151: name=libimg.so.1 libpath=NULL rpath=NULL
debug: searchpath:1095: name=libimg.so.1 path= amode=4 bufsize=1025
debug: searchpath:1095: name=libimg.so.1 path= amode=4 bufsize=1025
debug: searchpath:1095: name=libimg.so.1 path=/usr/lib:/lib:/lib/dll:/cygnet/release/PC104:/lib/dll/font:/usr/local/apache/lib amode=4 bufsize=1025
debug: searchpath:1119: trying /usr/lib/libimg.so.1
debug: searchpath:1130:/usr/lib/libimg.so.1: failed (No such file or directory)
debug: searchpath:1119: trying /lib/libimg.so.1
debug: searchpath:1124:/lib/libimg.so.1: success
libs: /lib/libimg.so.1: found; real path:/lib/libimg.so.1
libs: load_elf32: loaded lib at addr b8383000(text) b8393e60(data)
libs: object libimg.so.1 loaded; real soname: libimg.so.1 loaded from: /lib/libimg.so.1
libs: load_object: attempt load of libfont.so.1
debug: find_file:1151: name=libfont.so.1 libpath=NULL rpath=NULL
debug: searchpath:1095: name=libfont.so.1 path= amode=4 bufsize=1025
debug: searchpath:1095: name=libfont.so.1 path= amode=4 bufsize=1025
debug: searchpath:1095: name=libfont.so.1 path=/usr/lib:/lib:/lib/dll:/cygnet/release/PC104:/lib/dll/font:/usr/local/apache/lib amode=4 bufsize=1025
debug: searchpath:1119: trying /usr/lib/libfont.so.1
debug: searchpath:1130:/usr/lib/libfont.so.1: failed (No such file or directory)
debug: searchpath:1119: trying /lib/libfont.so.1
debug: searchpath:1124:/lib/libfont.so.1: success
libs: /lib/libfont.so.1: found; real path:/lib/libfont.so.1
libs: load_elf32: loaded lib at addr b8395000(text) b839c514(data)
libs: object libfont.so.1 loaded; real soname: libfont.so.1 loaded from: /lib/libfont.so.1
debug: Added to link map
debug: Added libAp.so.3 to link map
debug: Added libph.so.3 to link map
debug: Added libm.so.2 to link map
debug: Added libphexlib.so.3 to link map
debug: Added libimg.so.1 to link map
debug: Added libc.so.3 to link map
debug: Added libfont.so.1 to link map
Resolution scope for Executable->pv:
Executable->pv
libAp.so.3->/usr/lib/libAp.so.3
libph.so.3->/usr/lib/libph.so.3
libm.so.2->/lib/libm.so.2
libphexlib.so.3->/usr/lib/libphexlib.so.3
libimg.so.1->/lib/libimg.so.1
libc.so.3->/usr/lib/ldqnx.so.2
libfont.so.1->/lib/libfont.so.1
libs: init: libfont.so.1 obj->refcount: 1
libs: init: libc.so.3 obj->refcount: 1
libs: init: libimg.so.1 obj->refcount: 1
libs: init: libphexlib.so.3 obj->refcount: 1
libs: init: libm.so.2 obj->refcount: 1
libs: init: libph.so.3 obj->refcount: 1
libs: init: libAp.so.3 obj->refcount: 1
debug: Looking up symbol atexit
debug: Symbol atexit bound to definition in libc.so.3
List dump. Name: debug: Startup objects list (DSO)
Object addr 0x0x8061000
Refcount: 1
Flags: 0x40e247 INITFINIRESOLVEDJMPRELSDONEEXECUTABLEINITARRAYFINIARRAYPREINITGLOBAL
Name:
Rpath:
Text: 0x0x8048000
Text size: 43200 (0xa8c0)
Text rel: 0 (0x0)
Data offset: 47296 (0xb8c0)
Data size: 6412 (0x190c)
Data rel: 0 (0x0)
Scope: 0x0xb037dca8
Object addr 0x0x8061400
Refcount: 1
Flags: 0x402043 INITRESOLVEDJMPRELSDONEINITARRAYGLOBAL
Name: libAp.so.3
Rpath:
Text: 0x0xb8200000
Text size: 59756 (0xe96c)
Text rel: 3089104896 (0xb8200000)
Data offset: 63876 (0xf984)
Data size: 2492 (0x9bc)
Data rel: 3089104896 (0xb8200000)
Scope: 0x0xb037dca8
Object addr 0x0x8061800
Refcount: 1
Flags: 0x402043 INITRESOLVEDJMPRELSDONEINITARRAYGLOBAL
Name: libph.so.3
Rpath:
Text: 0x0xb8211000
Text size: 1068112 (0x104c50)
Text rel: 3089174528 (0xb8211000)
Data offset: 1072232 (0x105c68)
Data size: 33788 (0x83fc)
Data rel: 3089174528 (0xb8211000)
Scope: 0x0xb037dca8
Object addr 0x0x8061c00
Refcount: 1
Flags: 0x402043 INITRESOLVEDJMPRELSDONEINITARRAYGLOBAL
Name: libm.so.2
Rpath:
Text: 0x0xb8320000
Text size: 183908 (0x2ce64)
Text rel: 3090284544 (0xb8320000)
Data offset: 188028 (0x2de7c)
Data size: 17252 (0x4364)
Data rel: 3090284544 (0xb8320000)
Scope: 0x0xb037dca8
Object addr 0x0x8062000
Refcount: 1
Flags: 0x402043 INITRESOLVEDJMPRELSDONEINITARRAYGLOBAL
Name: libphexlib.so.3
Rpath:
Text: 0x0xb8353000
Text size: 187304 (0x2dba8)
Text rel: 3090493440 (0xb8353000)
Data offset: 191424 (0x2ebc0)
Data size: 1368 (0x558)
Data rel: 3090493440 (0xb8353000)
Scope: 0x0xb037dca8
Object addr 0x0x8062400
Refcount: 1
Flags: 0x402043 INITRESOLVEDJMPRELSDONEINITARRAYGLOBAL
Name: libimg.so.1
Rpath:
Text: 0x0xb8383000
Text size: 65096 (0xfe48)
Text rel: 3090690048 (0xb8383000)
Data offset: 69216 (0x10e60)
Data size: 696 (0x2b8)
Data rel: 3090690048 (0xb8383000)
Scope: 0x0xb037dca8
Object addr 0x0x8062800
Refcount: 1
Flags: 0x402043 INITRESOLVEDJMPRELSDONEINITARRAYGLOBAL
Name: libc.so.3
Rpath:
Text: 0x0xb0300000
Text size: 497576 (0x797a8)
Text rel: 2955935744 (0xb0300000)
Data offset: 501696 (0x7a7c0)
Data size: 16044 (0x3eac)
Data rel: 2955935744 (0xb0300000)
Scope: 0x0xb037dca8
Object addr 0x0x8062c00
Refcount: 1
Flags: 0x402043 INITRESOLVEDJMPRELSDONEINITARRAYGLOBAL
Name: libfont.so.1
Rpath:
Text: 0x0xb8395000
Text size: 25852 (0x64fc)
Text rel: 3090763776 (0xb8395000)
Data offset: 29972 (0x7514)
Data size: 472 (0x1d8)
Data rel: 3090763776 (0xb8395000)
Scope: 0x0xb037dca8
List dump. Name: debug: All objects list (DAO)
Object addr 0x0x8061000
Refcount: 1
Flags: 0x40e247 INITFINIRESOLVEDJMPRELSDONEEXECUTABLEINITARRAYFINIARRAYPREINITGLOBAL
Name:
Rpath:
Text: 0x0x8048000
Text size: 43200 (0xa8c0)
Text rel: 0 (0x0)
Data offset: 47296 (0xb8c0)
Data size: 6412 (0x190c)
Data rel: 0 (0x0)
Scope: 0x0xb037dca8
Object addr 0x0x8061400
Refcount: 1
Flags: 0x402043 INITRESOLVEDJMPRELSDONEINITARRAYGLOBAL
Name: libAp.so.3
Rpath:
Text: 0x0xb8200000
Text size: 59756 (0xe96c)
Text rel: 3089104896 (0xb8200000)
Data offset: 63876 (0xf984)
Data size: 2492 (0x9bc)
Data rel: 3089104896 (0xb8200000)
Scope: 0x0xb037dca8
Object addr 0x0x8061800
Refcount: 1
Flags: 0x402043 INITRESOLVEDJMPRELSDONEINITARRAYGLOBAL
Name: libph.so.3
Rpath:
Text: 0x0xb8211000
Text size: 1068112 (0x104c50)
Text rel: 3089174528 (0xb8211000)
Data offset: 1072232 (0x105c68)
Data size: 33788 (0x83fc)
Data rel: 3089174528 (0xb8211000)
Scope: 0x0xb037dca8
Object addr 0x0x8061c00
Refcount: 1
Flags: 0x402043 INITRESOLVEDJMPRELSDONEINITARRAYGLOBAL
Name: libm.so.2
Rpath:
Text: 0x0xb8320000
Text size: 183908 (0x2ce64)
Text rel: 3090284544 (0xb8320000)
Data offset: 188028 (0x2de7c)
Data size: 17252 (0x4364)
Data rel: 3090284544 (0xb8320000)
Scope: 0x0xb037dca8
Object addr 0x0x8062000
Refcount: 1
Flags: 0x402043 INITRESOLVEDJMPRELSDONEINITARRAYGLOBAL
Name: libphexlib.so.3
Rpath:
Text: 0x0xb8353000
Text size: 187304 (0x2dba8)
Text rel: 3090493440 (0xb8353000)
Data offset: 191424 (0x2ebc0)
Data size: 1368 (0x558)
Data rel: 3090493440 (0xb8353000)
Scope: 0x0xb037dca8
Object addr 0x0x8062400
Refcount: 1
Flags: 0x402043 INITRESOLVEDJMPRELSDONEINITARRAYGLOBAL
Name: libimg.so.1
Rpath:
Text: 0x0xb8383000
Text size: 65096 (0xfe48)
Text rel: 3090690048 (0xb8383000)
Data offset: 69216 (0x10e60)
Data size: 696 (0x2b8)
Data rel: 3090690048 (0xb8383000)
Scope: 0x0xb037dca8
Object addr 0x0x8062800
Refcount: 1
Flags: 0x402043 INITRESOLVEDJMPRELSDONEINITARRAYGLOBAL
Name: libc.so.3
Rpath:
Text: 0x0xb0300000
Text size: 497576 (0x797a8)
Text rel: 2955935744 (0xb0300000)
Data offset: 501696 (0x7a7c0)
Data size: 16044 (0x3eac)
Data rel: 2955935744 (0xb0300000)
Scope: 0x0xb037dca8
Object addr 0x0x8062c00
Refcount: 1
Flags: 0x402043 INITRESOLVEDJMPRELSDONEINITARRAYGLOBAL
Name: libfont.so.1
Rpath:
Text: 0x0xb8395000
Text size: 25852 (0x64fc)
Text rel: 3090763776 (0xb8395000)
Data offset: 29972 (0x7514)
Data size: 472 (0x1d8)
Data rel: 3090763776 (0xb8395000)
Scope: 0x0xb037dca8
debug: Looking up symbol _init_libc
debug: Symbol _init_libc bound to definition in libc.so.3
debug: Looking up symbol _preinit_array
debug: Symbol _preinit_array bound to definition in libc.so.3
debug: Looking up symbol atexit
debug: Symbol atexit bound to definition in libc.so.3
debug: Looking up symbol _fini_array
debug: Symbol _fini_array bound to definition in libc.so.3
debug: Looking up symbol _init_array
debug: Symbol _init_array bound to definition in libc.so.3
debug: Looking up symbol ApInitialize
debug: Symbol ApInitialize bound to definition in libAp.so.3
debug: Looking up symbol getopt
debug: Symbol getopt bound to definition in libc.so.3
debug: Looking up symbol PtInit
debug: Symbol PtInit bound to definition in libph.so.3
debug: Looking up symbol calloc
debug: Symbol calloc bound to definition in libc.so.3
debug: Looking up symbol __calloc
debug: Symbol __calloc bound to definition in libc.so.3
debug: Looking up symbol PhAttach
debug: Symbol PhAttach bound to definition in libph.so.3
debug: Looking up symbol PhOpen
debug: Symbol PhOpen bound to definition in libph.so.3
debug: Looking up symbol __get_barena
debug: Symbol __get_barena bound to definition in libc.so.3
debug: Looking up symbol getenv
debug: Symbol getenv bound to definition in libc.so.3
debug: Looking up symbol _findenv
debug: Symbol _findenv bound to definition in libc.so.3
debug: Looking up symbol strncmp
debug: Symbol strncmp bound to definition in libc.so.3
debug: Looking up symbol __get_errno_ptr
debug: Symbol __get_errno_ptr bound to definition in libc.so.3
debug: Looking up symbol strdup
debug: Symbol strdup bound to definition in libc.so.3
debug: Looking up symbol strlen
debug: Symbol strlen bound to definition in libc.so.3
debug: Looking up symbol memcpy
debug: Symbol memcpy bound to definition in libc.so.3
debug: Looking up symbol _connect
debug: Symbol _connect bound to definition in libc.so.3
debug: Looking up symbol _connect_entry
debug: Symbol _connect_entry bound to definition in libc.so.3
debug: Looking up symbol _connect_ctrl
debug: Symbol _connect_ctrl bound to definition in libc.so.3
debug: Looking up symbol __stackavail
debug: Symbol __stackavail bound to definition in libc.so.3
debug: Looking up symbol ConnectAttach
debug: Symbol ConnectAttach bound to definition in libc.so.3
debug: Looking up symbol ConnectDetach_r
debug: Symbol ConnectDetach_r bound to definition in libc.so.3
debug: Looking up symbol ConnectFlags_r
debug: Symbol ConnectFlags_r bound to definition in libc.so.3
debug: Looking up symbol fcntl
debug: Symbol fcntl bound to definition in libc.so.3
debug: Looking up symbol _vfcntl
debug: Symbol _vfcntl bound to definition in libc.so.3
debug: Looking up symbol ConnectFlags
debug: Symbol ConnectFlags bound to definition in libc.so.3
debug: Looking up symbol PhDCCreate
debug: Symbol PhDCCreate bound to definition in libph.so.3
debug: Looking up symbol PhDCInit
debug: Symbol PhDCInit bound to definition in libph.so.3
debug: Looking up symbol PgCreateGC
debug: Symbol PgCreateGC bound to definition in libph.so.3
debug: Looking up symbol malloc
debug: Symbol malloc bound to definition in libc.so.3
debug: Looking up symbol PgSetGCCx
debug: Symbol PgSetGCCx bound to definition in libph.so.3
debug: Looking up symbol PgSetDrawBufferSizeCx
debug: Symbol PgSetDrawBufferSizeCx bound to definition in libph.so.3
debug: Looking up symbol PgFFlushCx
debug: Symbol PgFFlushCx bound to definition in libph.so.3
debug: Looking up symbol PgClearDrawBufferCx
debug: Symbol PgClearDrawBufferCx bound to definition in libph.so.3
debug: Looking up symbol PgDefaultBufGC
debug: Symbol PgDefaultBufGC bound to definition in libph.so.3
debug: Looking up symbol pthread_mutexattr_init
debug: Symbol pthread_mutexattr_init bound to definition in libc.so.3
debug: Looking up symbol pthread_mutexattr_setrecursive
debug: Symbol pthread_mutexattr_setrecursive bound to definition in libc.so.3
debug: Looking up symbol pthread_mutexattr_settype
debug: Symbol pthread_mutexattr_settype bound to definition in libc.so.3
debug: Looking up symbol pthread_mutex_init
debug: Symbol pthread_mutex_init bound to definition in libc.so.3
debug: Looking up symbol SyncTypeCreate_r
debug: Symbol SyncTypeCreate_r bound to definition in libc.so.3
debug: Looking up symbol strrchr
debug: Symbol strrchr bound to definition in libc.so.3
debug: Looking up symbol memcpy
debug: Symbol memcpy bound to definition in libc.so.3
debug: Looking up symbol PfAttach
debug: Symbol PfAttach bound to definition in libph.so.3
debug: Looking up symbol PfAttachCx
debug: Symbol PfAttachCx bound to definition in libfont.so.1
debug: Looking up symbol calloc
debug: Symbol calloc bound to definition in libc.so.3
debug: Looking up symbol strdup
debug: Symbol strdup bound to definition in libc.so.3
debug: Looking up symbol getenv
debug: Symbol getenv bound to definition in libc.so.3
debug: Looking up symbol open
debug: Symbol open bound to definition in libc.so.3
debug: Looking up symbol _vopen
debug: Symbol _vopen bound to definition in libc.so.3
debug: Looking up symbol _connect
debug: Symbol _connect bound to definition in libc.so.3
debug: Looking up symbol fcntl
debug: Symbol fcntl bound to definition in libc.so.3
debug: Looking up symbol setenv
debug: Symbol setenv bound to definition in libc.so.3
debug: Looking up symbol PtAllocAppContext
debug: Symbol PtAllocAppContext bound to definition in libph.so.3
debug: Looking up symbol pthread_key_create
debug: Symbol pthread_key_create bound to definition in libc.so.3
debug: Looking up symbol pthread_setspecific
debug: Symbol pthread_setspecific bound to definition in libc.so.3
debug: Looking up symbol realloc
debug: Symbol realloc bound to definition in libc.so.3
debug: Looking up symbol __realloc
debug: Symbol __realloc bound to definition in libc.so.3
debug: Looking up symbol pt_app_init_resources
debug: Symbol pt_app_init_resources bound to definition in libph.so.3
debug: Looking up symbol PtSetFocusRenderDflt
debug: Symbol PtSetFocusRenderDflt bound to definition in libph.so.3
debug: Looking up symbol PhRegisterTransportType
debug: Symbol PhRegisterTransportType bound to definition in libph.so.3
debug: Looking up symbol PtAddData
debug: Symbol PtAddData bound to definition in libph.so.3
debug: Looking up symbol dlopen
debug: Symbol dlopen bound to definition in libc.so.3
debug: Looking up symbol getenv
debug: Symbol getenv bound to definition in libc.so.3
libs: dlopen(“PtHook.so”,0)
Mode:

libs: Neither RTLD_GROUP nor RTLD_WORLD specified, assuming RTLD_GROUP | RTLD_WORLD
libs: load_object: attempt load of PtHook.so
debug: find_file:1151: name=PtHook.so libpath=NULL rpath=NULL
debug: searchpath:1095: name=PtHook.so path= amode=4 bufsize=1025
debug: searchpath:1095: name=PtHook.so path= amode=4 bufsize=1025
debug: searchpath:1095: name=PtHook.so path=/usr/lib:/lib:/lib/dll:/cygnet/release/PC104:/lib/dll/font:/usr/local/apache/lib amode=4 bufsize=1025
debug: Looking up symbol strcpy
debug: Symbol strcpy bound to definition in libc.so.3
debug: searchpath:1119: trying /usr/lib/PtHook.so
debug: Looking up symbol eaccess
debug: Symbol eaccess bound to definition in libc.so.3
debug: searchpath:1130:/usr/lib/PtHook.so: failed (No such file or directory)
debug: searchpath:1119: trying /lib/PtHook.so
debug: searchpath:1130:/lib/PtHook.so: failed (No such file or directory)
debug: searchpath:1119: trying /lib/dll/PtHook.so
debug: searchpath:1130:/lib/dll/PtHook.so: failed (No such file or directory)
debug: searchpath:1119: trying /cygnet/release/PC104/PtHook.so
debug: searchpath:1130:/cygnet/release/PC104/PtHook.so: failed (No such file or directory)
debug: searchpath:1119: trying /lib/dll/font/PtHook.so
debug: searchpath:1130:/lib/dll/font/PtHook.so: failed (No such file or directory)
debug: searchpath:1119: trying /usr/local/apache/lib/PtHook.so
debug: searchpath:1130:/usr/local/apache/lib/PtHook.so: failed (No such file or directory)
debug: ldd:find_file:1175:PtHook.so: search failed
debug: Looking up symbol pthread_setspecific
debug: Symbol pthread_setspecific bound to definition in libc.so.3
debug: Looking up symbol pthread_getspecific
debug: Symbol pthread_getspecific bound to definition in libc.so.3
libs: dlopen: Library cannot be found
debug: Looking up symbol _dl_free
debug: Symbol _dl_free bound to definition in libc.so.3
debug: Looking up symbol PhDCGetCurrent
debug: Symbol PhDCGetCurrent bound to definition in libph.so.3
debug: Looking up symbol PgSetDrawBufferSizeCx
debug: Symbol PgSetDrawBufferSizeCx bound to definition in libph.so.3
debug: Looking up symbol free
debug: Symbol free bound to definition in libc.so.3
debug: Looking up symbol __free
debug: Symbol __free bound to definition in libc.so.3
debug: Looking up symbol _list_release
debug: Symbol _list_release bound to definition in libc.so.3
debug: Looking up symbol _cmdname
debug: Symbol _cmdname bound to definition in libc.so.3
debug: Looking up symbol ApAddContext
debug: Symbol ApAddContext bound to definition in libAp.so.3
debug: Looking up symbol ApAddClasses
debug: Symbol ApAddClasses bound to definition in libAp.so.3
debug: Looking up symbol ApAddClass
debug: Symbol ApAddClass bound to definition in libAp.so.3
debug: Looking up symbol realloc
debug: Symbol realloc bound to definition in libc.so.3
debug: Looking up symbol strdup
debug: Symbol strdup bound to definition in libc.so.3
debug: Looking up symbol strcmp
debug: Symbol strcmp bound to definition in libc.so.3
debug: Looking up symbol _msize
debug: Symbol _msize bound to definition in libc.so.3
debug: Looking up symbol free
debug: Symbol free bound to definition in libc.so.3
debug: Looking up symbol _band_rlse
debug: Symbol _band_rlse bound to definition in libc.so.3
debug: Looking up symbol __return_barena
debug: Symbol __return_barena bound to definition in libc.so.3
debug: Looking up symbol _list_resize
debug: Symbol _list_resize bound to definition in libc.so.3
debug: Looking up symbol __flist_dequeue_bin
debug: Symbol __flist_dequeue_bin bound to definition in libc.so.3
debug: Looking up symbol malloc
debug: Symbol malloc bound to definition in libc.so.3
debug: Looking up symbol strcpy
debug: Symbol strcpy bound to definition in libc.so.3
debug: Looking up symbol getenv
debug: Symbol getenv bound to definition in libc.so.3
debug: Looking up symbol ApResOpen
debug: Symbol ApResOpen bound to definition in libAp.so.3
debug: Looking up symbol ApFopen
debug: Symbol ApFopen bound to definition in libAp.so.3
debug: Looking up symbol open
debug: Symbol open bound to definition in libc.so.3
debug: Looking up symbol fcntl
debug: Symbol fcntl bound to definition in libc.so.3
debug: Looking up symbol ApElfResOpen
debug: Symbol ApElfResOpen bound to definition in libAp.so.3
debug: Looking up symbol ApSeek
debug: Symbol ApSeek bound to definition in libAp.so.3
debug: Looking up symbol lseek
debug: Symbol lseek bound to definition in libc.so.3
debug: Looking up symbol lseek64
debug: Symbol lseek64 bound to definition in libc.so.3
debug: Looking up symbol MsgSend
debug: Symbol MsgSend bound to definition in libc.so.3
debug: Looking up symbol ApRead
debug: Symbol ApRead bound to definition in libAp.so.3
debug: Looking up symbol read
debug: Symbol read bound to definition in libc.so.3
debug: Looking up symbol memcpy
debug: Symbol memcpy bound to definition in libc.so.3
debug: Looking up symbol free
debug: Symbol free bound to definition in libc.so.3
debug: Looking up symbol getopt
debug: Symbol getopt bound to definition in libc.so.3
debug: Looking up symbol calloc
debug: Symbol calloc bound to definition in libc.so.3
debug: Looking up symbol realpath
debug: Symbol realpath bound to definition in libc.so.3
debug: Looking up symbol _fullpath
debug: Symbol _fullpath bound to definition in libc.so.3
debug: Looking up symbol ConnectDetach
debug: Symbol ConnectDetach bound to definition in libc.so.3
debug: Looking up symbol strdup
debug: Symbol strdup bound to definition in libc.so.3
debug: Looking up symbol PtConnectionFindName
debug: Symbol PtConnectionFindName bound to definition in libph.so.3
debug: Looking up symbol _PhConnectorSend
debug: Symbol _PhConnectorSend bound to definition in libph.so.3
debug: Looking up symbol MsgSend
debug: Symbol MsgSend bound to definition in libc.so.3
debug: Looking up symbol __get_errno_ptr
debug: Symbol __get_errno_ptr bound to definition in libc.so.3
debug: Looking up symbol PtConnectorCreate
debug: Symbol PtConnectorCreate bound to definition in libph.so.3
debug: Looking up symbol PtAppAddInput
debug: Symbol PtAppAddInput bound to definition in libph.so.3
debug: Looking up symbol PtAppAddInputRemote
debug: Symbol PtAppAddInputRemote bound to definition in libph.so.3
debug: Looking up symbol PtChannelCreate
debug: Symbol PtChannelCreate bound to definition in libph.so.3
debug: Looking up symbol PhEventArm
debug: Symbol PhEventArm bound to definition in libph.so.3
debug: Looking up symbol PhChannelAttach
debug: Symbol PhChannelAttach bound to definition in libph.so.3
debug: Looking up symbol ChannelCreate
debug: Symbol ChannelCreate bound to definition in libc.so.3
debug: Looking up symbol ConnectAttach
debug: Symbol ConnectAttach bound to definition in libc.so.3
debug: Looking up symbol getprio
debug: Symbol getprio bound to definition in libc.so.3
debug: Looking up symbol SchedGet
debug: Symbol SchedGet bound to definition in libc.so.3
debug: Looking up symbol PhNotify
debug: Symbol PhNotify bound to definition in libph.so.3
debug: Looking up symbol _PhEventCtrl
debug: Symbol _PhEventCtrl bound to definition in libph.so.3
debug: Looking up symbol MsgSendv
debug: Symbol MsgSendv bound to definition in libc.so.3
debug: Looking up symbol ApOpenDBase
debug: Symbol ApOpenDBase bound to definition in libAp.so.3
debug: Looking up symbol ap_wgt_open
debug: Symbol ap_wgt_open bound to definition in libAp.so.3
debug: Looking up symbol ApFindModule
debug: Symbol ApFindModule bound to definition in libAp.so.3
debug: Looking up symbol ApTell
debug: Symbol ApTell bound to definition in libAp.so.3
debug: Looking up symbol ApGetString
debug: Symbol ApGetString bound to definition in libAp.so.3
debug: Looking up symbol atoi
debug: Symbol atoi bound to definition in libc.so.3
debug: Looking up symbol _Stoint
debug: Symbol _Stoint bound to definition in libc.so.3
debug: Looking up symbol ApAlloc
debug: Symbol ApAlloc bound to definition in libAp.so.3
debug: Looking up symbol calloc
debug: Symbol calloc bound to definition in libc.so.3
debug: Looking up symbol ApRealloc
debug: Symbol ApRealloc bound to definition in libAp.so.3
debug: Looking up symbol ApStrtol
debug: Symbol ApStrtol bound to definition in libAp.so.3
debug: Looking up symbol strtol
debug: Symbol strtol bound to definition in libc.so.3
debug: Looking up symbol strchr
debug: Symbol strchr bound to definition in libc.so.3
debug: Looking up symbol ApGetResType
debug: Symbol ApGetResType bound to definition in libAp.so.3
debug: Looking up symbol ApGetResTypeName
debug: Symbol ApGetResTypeName bound to definition in libAp.so.3
debug: Looking up symbol ApShmemAlloc
debug: Symbol ApShmemAlloc bound to definition in libAp.so.3
debug: Looking up symbol ApGetImageRes
debug: Symbol ApGetImageRes bound to definition in libAp.so.3
debug: Looking up symbol getenv
debug: Symbol getenv bound to definition in libc.so.3
debug: Looking up symbol strlen
debug: Symbol strlen bound to definition in libc.so.3
debug: Looking up symbol sprintf
debug: Symbol sprintf bound to definition in libc.so.3
debug: Looking up symbol _Printf
debug: Symbol _Printf bound to definition in libc.so.3
debug: Looking up symbol _Mbtowc
debug: Symbol _Mbtowc bound to definition in libc.so.3
debug: Looking up symbol _Mbtowcx
debug: Symbol _Mbtowcx bound to definition in libc.so.3
debug: Looking up symbol memchr
debug: Symbol memchr bound to definition in libc.so.3
debug: Looking up symbol strchr
debug: Symbol strchr bound to definition in libc.so.3
debug: Looking up symbol _Putfld
debug: Symbol _Putfld bound to definition in libc.so.3
debug: Looking up symbol _Puttxt
debug: Symbol _Puttxt bound to definition in libc.so.3
debug: Looking up symbol fopen
debug: Symbol fopen bound to definition in libc.so.3
debug: Looking up symbol _fsopen
debug: Symbol _fsopen bound to definition in libc.so.3
debug: Looking up symbol __fsopen
debug: Symbol __fsopen bound to definition in libc.so.3
debug: Looking up symbol __parse_oflag
debug: Symbol __parse_oflag bound to definition in libc.so.3
debug: Looking up symbol __sopen
debug: Symbol __sopen bound to definition in libc.so.3
debug: Looking up symbol ApLinkWindow
debug: Symbol ApLinkWindow bound to definition in libAp.so.3
debug: Looking up symbol PtSetParentWidget
debug: Symbol PtSetParentWidget bound to definition in libph.so.3
debug: Looking up symbol ApWgtOpen
debug: Symbol ApWgtOpen bound to definition in libAp.so.3
debug: Looking up symbol ApGetWidget
debug: Symbol ApGetWidget bound to definition in libAp.so.3
debug: Looking up symbol ApArgInit
debug: Symbol ApArgInit bound to definition in libAp.so.3
debug: Looking up symbol ApHeapInit
debug: Symbol ApHeapInit bound to definition in libAp.so.3
debug: Looking up symbol ApGetResource
debug: Symbol ApGetResource bound to definition in libAp.so.3
debug: Looking up symbol ApGetArg
debug: Symbol ApGetArg bound to definition in libAp.so.3
debug: Looking up symbol ApSetCommonResource
debug: Symbol ApSetCommonResource bound to definition in libAp.so.3
debug: Looking up symbol ApHeapAlloc
debug: Symbol ApHeapAlloc bound to definition in libAp.so.3
debug: Looking up symbol ApHeapAddPtr
debug: Symbol ApHeapAddPtr bound to definition in libAp.so.3
debug: Looking up symbol ApStrtoul
debug: Symbol ApStrtoul bound to definition in libAp.so.3
debug: Looking up symbol strtoul
debug: Symbol strtoul bound to definition in libc.so.3
debug: Looking up symbol ApGetTranslation
debug: Symbol ApGetTranslation bound to definition in libAp.so.3
debug: Looking up symbol ApHeapStrdup
debug: Symbol ApHeapStrdup bound to definition in libAp.so.3
debug: Looking up symbol ApGetClass
debug: Symbol ApGetClass bound to definition in libAp.so.3
debug: Looking up symbol _ApAddCallbacks
debug: Symbol _ApAddCallbacks bound to definition in libAp.so.3
debug: Looking up symbol ApBuildWidget
debug: Symbol ApBuildWidget bound to definition in libAp.so.3
debug: Looking up symbol PtCreateWidget
debug: Symbol PtCreateWidget bound to definition in libph.so.3
debug: Looking up symbol PtCreateOptWidgetClass
debug: Symbol PtCreateOptWidgetClass bound to definition in libph.so.3
debug: Looking up symbol PtSetStruct
debug: Symbol PtSetStruct bound to definition in libph.so.3
debug: Looking up symbol qsort
debug: Symbol qsort bound to definition in libc.so.3
debug: Looking up symbol memmove
debug: Symbol memmove bound to definition in libc.so.3
debug: Looking up symbol realloc
debug: Symbol realloc bound to definition in libc.so.3
debug: Looking up symbol PtSetParentWidget
debug: Symbol PtSetParentWidget bound to definition in libph.so.3
debug: Looking up symbol PtInvokeChildCreated
debug: Symbol PtInvokeChildCreated bound to definition in libph.so.3
debug: Looking up symbol PtSetResources
debug: Symbol PtSetResources bound to definition in libph.so.3
debug: Looking up symbol PtHold
debug: Symbol PtHold bound to definition in libph.so.3
debug: Looking up symbol PtImmortalizeWidget
debug: Symbol PtImmortalizeWidget bound to definition in libph.so.3
debug: Looking up symbol PtInvokeChildSettingResource
debug: Symbol PtInvokeChildSettingResource bound to definition in libph.so.3
debug: Looking up symbol PtFindResource
debug: Symbol PtFindResource bound to definition in libph.so.3
debug: Looking up symbol PtSetValue
debug: Symbol PtSetValue bound to definition in libph.so.3
debug: Looking up symbol strcmp
debug: Symbol strcmp bound to definition in libc.so.3
debug: Looking up symbol strcpy
debug: Symbol strcpy bound to definition in libc.so.3
debug: Looking up symbol PtWindowSetInfo
debug: Symbol PtWindowSetInfo bound to definition in libph.so.3
debug: Looking up symbol PgExtentText
debug: Symbol PgExtentText bound to definition in libph.so.3
debug: Looking up symbol PgExtentTextChars
debug: Symbol PgExtentTextChars bound to definition in libph.so.3
debug: Looking up symbol PfExtentText
debug: Symbol PfExtentText bound to definition in libph.so.3
debug: Looking up symbol PfExtentCx
debug: Symbol PfExtentCx bound to definition in libfont.so.1
debug: Looking up symbol strcpy
debug: Symbol strcpy bound to definition in libc.so.3
debug: Looking up symbol MsgSendv
debug: Symbol MsgSendv bound to definition in libc.so.3
debug: Looking up symbol __get_errno_ptr
debug: Symbol __get_errno_ptr bound to definition in libc.so.3
debug: Looking up symbol PtMortalizeWidget
debug: Symbol PtMortalizeWidget bound to definition in libph.so.3
debug: Looking up symbol PtRelease
debug: Symbol PtRelease bound to definition in libph.so.3
debug: Looking up symbol PtUpdate
debug: Symbol PtUpdate bound to definition in libph.so.3
debug: Looking up symbol PhDCGetCurrent
debug: Symbol PhDCGetCurrent bound to definition in libph.so.3
debug: Looking up symbol PgFlushCx
debug: Symbol PgFlushCx bound to definition in libph.so.3
debug: Looking up symbol PtWidgetOwner
debug: Symbol PtWidgetOwner bound to definition in libph.so.3
debug: Looking up symbol PtAddCallback
debug: Symbol PtAddCallback bound to definition in libph.so.3
debug: Looking up symbol _PtSetResource
debug: Symbol _PtSetResource bound to definition in libph.so.3
debug: Looking up symbol ApArgCleanup
debug: Symbol ApArgCleanup bound to definition in libAp.so.3
debug: Looking up symbol ApHeapCleanup
debug: Symbol ApHeapCleanup bound to definition in libAp.so.3
debug: Looking up symbol PtCreateWidget
debug: Symbol PtCreateWidget bound to definition in libph.so.3
debug: Looking up symbol PtSuperClassSetResources
debug: Symbol PtSuperClassSetResources bound to definition in libph.so.3
debug: Looking up symbol PtResetAnchors
debug: Symbol PtResetAnchors bound to definition in libph.so.3
debug: Looking up symbol PtCalcAnchorOffsets
debug: Symbol PtCalcAnchorOffsets bound to definition in libph.so.3
debug: Looking up symbol PtAddCallback
debug: Symbol PtAddCallback bound to definition in libph.so.3
debug: Looking up symbol PtConstrainWidgetDim
debug: Symbol PtConstrainWidgetDim bound to definition in libph.so.3

Looks like this was never resolved.

Tim

The “PtHook.so” library is actually not needed. I run “pv sample.gif” on a QNX 6.5 console and I get the same “PtHook.so: search failed” error however the image can be loaded successfully. There must be some files/libraries missing on the flash card.

The “PtHook.so” library is not needed actually. I run the same command “pv sample.gif” on a QNX 6.5 console and it loads the image successfully, and it also reports the “PtHook.so: search failed” error. I am wondering if some libraries are not linked correctly, but I can not tell from the debug output. Any suggestion?

OK so it’s not a 6.5 issue since it loads fine. Just copy them all 1 by 1 (or 2 by 2 etc) to the flash card. When is loads you know the one you are missing.

In the time you spent posting here plus waiting for an answer you’d have copied them all given there aren’t that many 8)

Tim

P.S. If building flash images / copying is too slow then consider moving aside all the libraries on your 6.5 (rename the lib directory) install. Then create a lib directory and start with whats on your flash drive and copy more and more till it works.

Here are libraries used by the “pv” command:

img_codec_gif.so->/lib/dll/img_codec_gif.so
libAp.so.3->/usr/lib/libAp.so.3
libph.so.3->/usr/lib/libph.so.3
libm.so.2->/lib/libm.so.2
libphexlib.so.3->/usr/lib/libphexlib.so.3
libimg.so.1->/lib/libimg.so.1
libc.so.3->/usr/lib/ldqnx.so.2
libfont.so.1->/lib/libfont.so.1

I did copy all of them from the console to the flash card and it still fails. I also tried copying all files in “/usr/lib” and “/lib” directories from the flash card to the console, and rename the original directories on the console before copying, and the “pv” command always succeed in the console.

It looks like all library file on the flash card are good. But what could go wrong on the card? Any investigation suggestion is welcome!

What’s the path on your CF card machine (‘echo $PATH’).

Are you by any chance only using libraries embedded into the boot image and not pathing to libraries installed on CF card in the /lib folders?

The alternative is that the libraries embedded in the boot image are out of date and it’s using those instead of the ones in your /lib folder. You might want to diff what’s in /proc/boot (whats in the boot image) vs what’s in your /lib folders.

Assuming that’s all OK, next thing to check is what’s in your Photon profile .ph folder in your home directory. Might want to copy that over to the CF card too. Plus make sure both are running with same privileges (root?). Are screen resolutions the same?

Tim

Here is the PATH on the CF card: /sbin:/usr/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/photon/bin:/cygnet/PC104/release:/usr/local/apache/bin:/usr/local/bin:/opt/bin:/opt/sbin

The libraries in the “/proc/boot” are all identical between the CF card and the QNX console, the only difference is that there are more files on the QNX console than the CF card in the “/proc/boot” directory. Here is the list of files in CF card under “/proc/boot”:

-rw-rw-rw- 1 root root 1808 May 14 16:03 .script
-rwxr-xr-x 1 root root 13738 Jul 09 2010 cam-disk.so
-rwxr-xr-x 1 root root 107156 Jul 09 2010 devb-eide
-rwxr-xr-x 1 root root 86733 Jul 09 2010 devc-con
-rwxr-xr-x 1 root root 55343 Jul 09 2010 fs-qnx4.so
-rwxr-xr-x 1 root root 169908 Jul 09 2010 io-blk.so
lrwxr-xr-x 1 root root 9 Jul 09 2010 libc.so → libc.so.3
-rwxr-xr-x 1 root root 513152 Jul 09 2010 libc.so.3
lrwxr-xr-x 1 root root 11 Jul 09 2010 libcam.so → libcam.so.
2
-rwxr-xr-x 1 root root 73504 Jul 09 2010 libcam.so.2
-rwxr-xr-x 1 root root 499712 Jul 09 2010 procnto

The screen resolution is different between the CF card and the QNX console though. So I think simply copy .ph folder would not work in the CF card.

Here is the PATH on the CF card: /sbin:/usr/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/photon/bin:/cygnet/PC104/release:/usr/local/apache/bin:/usr/local/bin:/opt/bin:/opt/sbin

The libraries in the “/proc/boot” are all identical between the CF card and the QNX console, the only difference is that there are more files on the QNX console than the CF card in the “/proc/boot” directory. Here is the list of files in CF card under “/proc/boot”:

-rw-rw-rw- 1 root root 1808 May 14 16:03 .script
-rwxr-xr-x 1 root root 13738 Jul 09 2010 cam-disk.so
-rwxr-xr-x 1 root root 107156 Jul 09 2010 devb-eide
-rwxr-xr-x 1 root root 86733 Jul 09 2010 devc-con
-rwxr-xr-x 1 root root 55343 Jul 09 2010 fs-qnx4.so
-rwxr-xr-x 1 root root 169908 Jul 09 2010 io-blk.so
lrwxr-xr-x 1 root root 9 Jul 09 2010 libc.so → libc.so.3
-rwxr-xr-x 1 root root 513152 Jul 09 2010 libc.so.3
lrwxr-xr-x 1 root root 11 Jul 09 2010 libcam.so → libcam.so.
2
-rwxr-xr-x 1 root root 73504 Jul 09 2010 libcam.so.2
-rwxr-xr-x 1 root root 499712 Jul 09 2010 procnto

The screen resolution is different between the CF card and the QNX console though. So I think simply copy .ph folder would not work in the CF card.

I agree a straight copy won’t work. However what’s in the .ph folder is the only thing different between your CF version of QNX and your console version of QNX since you’ve verified the libraries are identical.

What resolutions are you running in on your two machines? Can you try and find a common resolution maybe 800x600 or something like that where it works on your console version and is supported on your CF version.

The alternative is to diff the files in the .ph folders looking for differences (most of the subfolders in there won’t be something you care about, probably only the wm folder and the .ph/.pv_files file).

Tim

It turned out that “/etc/system/config/img.conf” was missing from the built CF card. Once the file was added in, the image can be loaded successfully. Here is the content of img.conf:

[img_codec_bmp.so]
mime=image/bmp:image/x-bmp:image/x-bitmap:image/x-xbitmap:image/x-win-bitmap:image/x-windows-bmp:image/ms-b
mp:image/x-ms-bmp:application/bmp:application/x-bmp:application/x-win-bitmap:application/preview
ext=bmp
[img_codec_gif.so]
mime=image/gif:/image/x-xbitmap:image/gi_
ext=gif
[img_codec_jpg.so]
mime=image/jpeg:image/jpg:image/jp_:application/jpg:application/x-jpg:image/pjpeg:image/pipeg:image/vnd.swi
ftview-jpeg:image/x-xbitmap
ext=jpg:jpeg
[img_codec_png.so]
mime=image/png:application/png:application/x-png
ext=png
[img_codec_sgi.so]
mime=image/sgi:image/x-sgi:image/x-sgi-rgba:image/x-sgi-bw:image/rgb:image/x-rgb
ext=sgi:rgb:rgba:bw
[img_codec_tga.so]
mime=application/tga:application/x-tga:application/x-targa:image/tga:image/x-tga:image/targa:image/x-targa
ext=tga
[img_codec_pcx.so]
mime=application/pcx:application/x-pcx:image/pcx:image/x-pcx:image/x-pc-paintbrush:zz-application/zz-winass
oc-pcx
ext=pcx