Oracle 8i (8.1.7), FreeBSD 5.1 i386 installation questions

Jon Adams jkadams at computer.org
Tue Nov 2 17:26:03 PST 2004


Scott T. Hildreth wrote:

>yes that would be a problem, should be in /compat/linux/usr/bin.  Did
>you install linux-devel?  (Sorry I forgot if you indicated that
>already.)
>
>  
>

no apologies needed... I **thought** I had it, but I didnt... after 
installing it I got this:
su-2.04$ ./setup_stubs.sh
Setting up patch files...done.
Patching makefiles as necessary:
  checking file '/ora/app/rdbms/demo/demo_rdbms.mk'...OK.
  checking file '/ora/app/rdbms/demo/ociucb.mk'...OK.
  checking file '/ora/app/rdbms/lib/ins_rdbms.mk'...OK.
  checking file '/ora/app/rdbms/lib/env_rdbms.mk'...OK.
  checking file '/ora/app/network/lib/ins_net_client.mk'...OK.
  checking file '/ora/app/network/lib/env_network.mk'...OK.
  checking file '/ora/app/network/lib/ins_cman.mk'...OK.
  checking file '/ora/app/network/lib/ins_names.mk'...OK.
  checking file '/ora/app/network/lib/ins_oemagent.mk'...OK.
  checking file '/ora/app/network/lib/env_oemagent.mk'...OK.
  checking file '/ora/app/network/lib/ins_net_server.mk'...OK.
  checking file '/ora/app/network/lib/ins_nau.mk'...OK.
  checking file '/ora/app/plsql/lib/env_plsql.mk'...OK.
  checking file '/ora/app/plsql/lib/ins_plsql.mk'...OK.
  checking file '/ora/app/plsql/demo/demo_plsql.mk'...OK.
  checking file '/ora/app/precomp/lib/ins_precomp.mk'...OK.
  checking file '/ora/app/precomp/lib/env_precomp.mk'...OK.
  checking file '/ora/app/ldap/lib/env_ldap.mk'...OK.
  checking file '/ora/app/ldap/lib/ins_ldap.mk'...OK.
  checking file '/ora/app/ldap/demo/demo_ldap.mk'...OK.
  checking file '/ora/app/sqlplus/lib/env_sqlplus.mk'...OK.
  checking file '/ora/app/sqlplus/lib/ins_sqlplus.mk'...OK.
  checking file '/ora/app/ord/im/lib/env_ordim.mk'...OK.
  checking file '/ora/app/ord/img/demo/demo_ordimg.mk'...OK.
  checking file '/ora/app/otrace/demo/atmoci.mk'...OK.
  checking file '/ora/app/otrace/lib/env_otrace.mk'...OK.
  checking file '/ora/app/otrace/lib/ins_otrace.mk'...OK.
Rebuilding client shared library...+ 
PATH=/compat/linux/usr/bin:/compat/linux/bin:
+ export PATH
+ PRODUCTS=rdbms precomp plsql ldap network
+ errCount=0
+ SHREPT=/ora/app/rdbms/admin/shrept.lst
+ '[' '!' -f /ora/app/rdbms/admin/shrept.lst ']'
+ SHREPT=/ora/app/precomp/admin/shrept.lst
+ '[' '!' -f /ora/app/precomp/admin/shrept.lst ']'
+ SHREPT=/ora/app/plsql/admin/shrept.lst
+ '[' '!' -f /ora/app/plsql/admin/shrept.lst ']'
+ SHREPT=/ora/app/ldap/admin/shrept.lst
+ '[' '!' -f /ora/app/ldap/admin/shrept.lst ']'
+ SHREPT=/ora/app/network/admin/shrept.lst
+ '[' '!' -f /ora/app/network/admin/shrept.lst ']'
+ '[' 0 '!=' 0 ']'
+ LSQL=-lsql8
+ LPLSQL=-lpls8
+ LMM=-lmm
+ LCLIENT=-lclient8
+ LCOMMON=-lcommon8
+ LGENERIC=-lgeneric8
+ LNLSRTL=-lnls8
+ LCORE=-lcore8
+ LTRACE=-ltrace8
+ LLDAP=-lldapclnt8
+ LWTC=-lwtc8
++ cat /ora/app/lib/ldflags
/ora/app/bin/genclntsh: cat: command not found
+ LDFLAGS=
+ LNETWORK= -ln8 -lnl8 -lnro8
++ listf_rdbms
++ fmt_syms
++ awk '/[ \t]*#/       {next}\
                                {printf " -u %s", $1}'
++ entryList=/ora/app/rdbms/admin/shrept.lst
/ora/app/bin/genclntsh: awk: command not found
++ grep -v '#' /ora/app/rdbms/admin/shrept.lst
++ grep rdbms
++ awk '{print $3}'
/ora/app/bin/genclntsh: awk: command not found
+ SYMS_OCIC= -lclient8
++ listf_precomp
++ fmt_syms
++ awk '/[ \t]*#/       {next}\
                                {printf " -u %s", $1}'
/ora/app/bin/genclntsh: awk: command not found
++ entryList=/ora/app/precomp/admin/shrept.lst
++ grep -v '#' /ora/app/precomp/admin/shrept.lst
++ awk '{print $3}'
/ora/app/bin/genclntsh: awk: command not found
++ grep precomp
+ SYMS_SQL= -lsql8
++ listf_plsql
++ entryList=/ora/app/plsql/admin/shrept.lst
++ fmt_syms
++ awk '/[ \t]*#/       {next}\
                                {printf " -u %s", $1}'
/ora/app/bin/genclntsh: awk: command not found
++ grep plsql
++ awk '{print $3}'
/ora/app/bin/genclntsh: awk: command not found
++ grep -v '#' /ora/app/plsql/admin/shrept.lst
+ SYMS_PLSQL= -lpls8
++ listf_ldap
++ fmt_syms
++ awk '/[ \t]*#/       {next}\
                                {printf " -u %s", $1}'
++ entryList=/ora/app/ldap/admin/shrept.lst
/ora/app/bin/genclntsh: awk: command not found
++ grep -v '#' /ora/app/ldap/admin/shrept.lst
++ grep ldap
++ awk '{print $3}'
/ora/app/bin/genclntsh: awk: command not found
+ SYMS_LDAP= -lldapclnt8
++ listf_network
++ fmt_syms
++ awk '/[ \t]*#/       {next}\
                                {printf " -u %s", $1}'
++ entryList=/ora/app/network/admin/shrept.lst
/ora/app/bin/genclntsh: awk: command not found
++ grep network
++ awk '{print $3}'
/ora/app/bin/genclntsh: awk: command not found
++ grep -v '#' /ora/app/network/admin/shrept.lst
+ SYMS_NETWORK=  -ln8 -lnl8 -lnro8
+ CLNT_NAM=clntsh
+ CLNT_VER=8.0
+ CLNT_LNK=libclntsh.so
+ CLNT_LIB=libclntsh.so.8.0
+ '[' '' '!=' '' ']'
+ LIB_DIR=/ora/app/lib
+ '[' -h /ora/app/lib/libclntsh.so.8.0 ']'
+ MAPFILE=/ora/app/lib/clntsh.map
+ LD=ld -shared  -L/ora/app/lib
+ LD_RUNTIME=-R/ora/app/lib
+ LD_OPT=-Map /ora/app/lib/clntsh.map -h libclntsh.so.8.0
+ LD_OUT=-o /ora/app/lib/libclntsh.so.8.0
+ LD_SELF_CONTAINED=-z defs
+ DEF_ON=/ora/app/rdbms/lib/kpudfo.o
+ SSDBED=/ora/app/rdbms/lib/ssdbaed.o
+ NAUTAB=/ora/app/lib/nautab.o
+ NAETAB=/ora/app/lib/naeet.o /ora/app/lib/naect.o
+ NAEDHS=/ora/app/lib/naedhs.o
+ ATCH_DEF=/ora/app/rdbms/lib/kpuadef.o
+ OLIBS=-lclient8 -lsql8  -ln8 -lnl8 -lnro8  -lclient8 -lcommon8 
-lgeneric8 -lmm /ora/app/rdbms/lib/xaondy.o -lnls8 -lcore8 -lnls8 
-lcore8 -lnls8 -lwtc8  -ln8 -lnl8 -lnro8  -lclient8 -lcommon8 -lgeneric8 
-ltrace8 -lnls8 -lcore8 -lnls8 -lcore8 -lnls8
++ cat /ora/app/lib/sysliblist
/ora/app/bin/genclntsh: cat: command not found
+ SYSLIBS= -ldl -lm -lc
+ /bin/rm -f /ora/app/lib/libclntsh.so.8.0 /ora/app/lib/clntsh.map
+ ld -shared -L/ora/app/lib -R/ora/app/lib -Map /ora/app/lib/clntsh.map 
-h libclntsh.so.8.0 -o /ora/app/lib/libclntsh.so.8.0 -z defs 
/ora/app/rdbms/lib/kpudfo.o /ora/app/rdbms/lib/ssdbaed.o 
/ora/app/lib/nautab.o /ora/app/lib/naeet.o /ora/app/lib/naect.o 
/ora/app/lib/naedhs.o -lsql8 /ora/app/rdbms/lib/kpuadef.o -lpls8 
-lclient8 -lldapclnt8 -ln8 -lnl8 -lnro8 -lclient8 -lsql8 -ln8 -lnl8 
-lnro8 -lclient8 -lcommon8 -lgeneric8 -lmm /ora/app/rdbms/lib/xaondy.o 
-lnls8 -lcore8 -lnls8 -lcore8 -lnls8 -lwtc8 -ln8 -lnl8 -lnro8 -lclient8 
-lcommon8 -lgeneric8 -ltrace8 -lnls8 -lcore8 -lnls8 -lcore8 -lnls8 -ldl 
-lm -lc
/ora/app/lib/libclient8.a(skgup.o): In function `skgupii':
skgup.o(.text+0xa05): undefined reference to `pthread_mutexattr_init'
skgup.o(.text+0xa0b): undefined reference to `pthread_mutexattr_destroy'
/ora/app/lib/libn8.a(nzb.o): In function `nzbEncVKey':
nzb.o(.text+0x1ed3): undefined reference to `ZeroBuffer'
nzb.o(.text+0x1edf): undefined reference to `ZeroBuffer'
nzb.o(.text+0x1ee8): undefined reference to `ZeroBuffer'
nzb.o(.text+0x1f4f): undefined reference to `PKCS5EncryptDER'
nzb.o(.text+0x1f71): undefined reference to `FreeBuffer'
nzb.o(.text+0x1f77): undefined reference to `FreeBuffer'
/ora/app/lib/libn8.a(nzb.o): In function `nzbEncodePK':
nzb.o(.text+0x2005): undefined reference to `ASNAllocateElement'
nzb.o(.text+0x2028): undefined reference to `PKCS1EncodePrivateKey'
nzb.o(.text+0x2038): undefined reference to `PKCS8EncodePrivateKey'
nzb.o(.text+0x2053): undefined reference to `ASNEncodeDER'
nzb.o(.text+0x2060): undefined reference to `ASNFreeElement'
/ora/app/lib/libn8.a(nae.o): In function `naeccn':
nae.o(.text+0xf85): undefined reference to `naedhpk'
nae.o(.text+0x103e): undefined reference to `naedhsk'
/ora/app/lib/libn8.a(nae.o): In function `naecsn':
nae.o(.text+0x190e): undefined reference to `naedhp'
nae.o(.text+0x19d0): undefined reference to `naedhpk'
nae.o(.text+0x1a6b): undefined reference to `naedhsk'
/ora/app/lib/libn8.a(naefips.o): In function `naefips':
naefips.o(.text+0x33f): undefined reference to `naeshai'
naefips.o(.text+0x39b): undefined reference to `naeshau'
naefips.o(.text+0x3b4): undefined reference to `naeshaf'
/ora/app/lib/libn8.a(nnfgt.o)(.rodata+0x64): undefined reference to 
`nnftboot'
/ora/app/lib/libn8.a(nnfgt.o)(.rodata+0x74): undefined reference to 
`nnfoboot'
/ora/app/lib/libn8.a(nnfgt.o)(.rodata+0x84): undefined reference to 
`nnfhboot'
/ora/app/lib/libn8.a(nnfgt.o)(.rodata+0x94): undefined reference to 
`nnflboot'
/ora/app/lib/libn8.a(ntcontab.o)(.data+0x4): undefined reference to `nttini'
/ora/app/lib/libn8.a(ntcontab.o)(.data+0x14): undefined reference to 
`ntzini'
/ora/app/lib/libn8.a(ntcontab.o)(.data+0x34): undefined reference to 
`ntpini'
/ora/app/lib/libn8.a(ntcontab.o)(.data+0x44): undefined reference to 
`ntusini'
/ora/app/lib/libnl8.a(nlol.o): In function `nlolgcmru':
nlol.o(.text+0x628): undefined reference to `nnflrne'
nlol.o(.text+0x6c7): undefined reference to `nnflgav'
/ora/app/lib/libnl8.a(nlol.o): In function `nlolfaddr':
nlol.o(.text+0x8a3): undefined reference to `nnflrne'
nlol.o(.text+0x8d3): undefined reference to `nnflgav'
nlol.o(.text+0xb18): undefined reference to `nnflgav'
nlol.o(.text+0x15fe): undefined reference to `nnflfrm'
/ora/app/lib/libnl8.a(nlol.o): In function `nlolglist':
nlol.o(.text+0x1770): undefined reference to `nnflgav'
nlol.o(.text+0x1f66): undefined reference to `nnflfrm'
/ora/app/lib/libnl8.a(nlol.o): In function `nlolgprof':
nlol.o(.text+0x20ff): undefined reference to `nnflgav'
nlol.o(.text+0x23a3): undefined reference to `nnflrne'
nlol.o(.text+0x23cd): undefined reference to `nnflgav'
nlol.o(.text+0x24e0): undefined reference to `nnflfrm'
nlol.o(.text+0x27e6): undefined reference to `nnflfrm'
/ora/app/lib/libnl8.a(nlol.o): In function `nlolgcman':
nlol.o(.text+0x2987): undefined reference to `nnflgav'
/ora/app/lib/libnl8.a(nlol.o): In function `nlolgobj':
nlol.o(.text+0x3675): undefined reference to `nnflrne'
nlol.o(.text+0x3767): undefined reference to `nnflrne'
nlol.o(.text+0x37f3): undefined reference to `nnflrne'
nlol.o(.text+0x3833): undefined reference to `nnflgav'
nlol.o(.text+0x3891): undefined reference to `nnflrne'
nlol.o(.text+0x395d): undefined reference to `nnflrne'
/ora/app/lib/libcore8.a(slts.o): In function `sltsimt':
slts.o(.text+0x10d): undefined reference to `pthread_mutex_trylock'
/ora/app/lib/libcore8.a(slts.o): In function `sltskyc':
slts.o(.text+0x16e): undefined reference to `pthread_key_create'
/ora/app/lib/libcore8.a(slts.o): In function `sltskyg':
slts.o(.text+0x204): undefined reference to `pthread_getspecific'
/ora/app/lib/libcore8.a(slts.o): In function `sltskys':
slts.o(.text+0x248): undefined reference to `pthread_setspecific'
/ora/app/lib/libcore8.a(sltsm.o): In function `sltsmdt':
sltsm.o(.text+0x13a): undefined reference to `pthread_mutex_trylock'
/ora/app/lib/libcore8.a(sltsm.o): In function `sltsmnt':
sltsm.o(.text+0x209): undefined reference to `pthread_mutex_trylock'
/ora/app/lib/libcore8.a(sltspc.o): In function `sltspctimewait':
sltspc.o(.text+0x227): undefined reference to `pthread_cond_timedwait'
/ora/app/lib/libcore8.a(sltst.o): In function `sltstcr':
sltst.o(.text+0x196): undefined reference to `pthread_create'
/ora/app/lib/libcore8.a(sltst.o): In function `sltstjn':
sltst.o(.text+0x548): undefined reference to `pthread_join'
/ora/app/lib/libcore8.a(sltst.o): In function `sltstkill':
sltst.o(.text+0x639): undefined reference to `pthread_kill'
/ora/app/lib/libcore8.a(sltst.o): In function `sltstspawn':
sltst.o(.text+0x826): undefined reference to `pthread_create'
/ora/app/lib/libcore8.a(sslts.o): In function `ssltssigmask':
sslts.o(.text+0x10): undefined reference to `pthread_sigmask'
/ora/app/lib/libcore8.a(sslts.o): In function `ssltstraise':
sslts.o(.text+0x3c): undefined reference to `pthread_kill'
/lib/libc.so.6: undefined reference to `_dl_lazy at GLIBC_2.1.1'
/lib/libc.so.6: undefined reference to `_dl_dst_substitute at GLIBC_2.1.1'
/lib/libc.so.6: undefined reference to `_dl_out_of_memory at GLIBC_2.2'
/lib/libc.so.6: undefined reference to `_dl_relocate_object at GLIBC_2.0'
/lib/libc.so.6: undefined reference to `_dl_clktck at GLIBC_2.2'
/lib/libc.so.6: undefined reference to `__libc_enable_secure at GLIBC_2.0'
/lib/libc.so.6: undefined reference to `_dl_catch_error at GLIBC_2.0'
/lib/libc.so.6: undefined reference to `_dl_platformlen at GLIBC_2.1.1'
/lib/libc.so.6: undefined reference to 
`_dl_lookup_versioned_symbol_skip at GLIBC_2.0'
/lib/libc.so.6: undefined reference to 
`_dl_lookup_versioned_symbol at GLIBC_2.0'
/lib/libc.so.6: undefined reference to `_dl_mcount at GLIBC_2.1'
/lib/libc.so.6: undefined reference to `_dl_dst_count at GLIBC_2.1.1'
/lib/libc.so.6: undefined reference to `_dl_initial_searchlist at GLIBC_2.1'
/lib/libc.so.6: undefined reference to `_dl_start_profile at GLIBC_2.1'
/lib/libc.so.6: undefined reference to `_dl_lookup_symbol at GLIBC_2.0'
/lib/libc.so.6: undefined reference to `__libc_stack_end at GLIBC_2.1'
/lib/libc.so.6: undefined reference to `_dl_argv at GLIBC_2.2'
/lib/libc.so.6: undefined reference to `_dl_loaded at GLIBC_2.1'
/lib/libc.so.6: undefined reference to `_dl_origin_path at GLIBC_2.1.1'
/lib/libc.so.6: undefined reference to `_dl_check_map_versions at GLIBC_2.2'
/lib/libc.so.6: undefined reference to `_dl_map_object at GLIBC_2.0'
/lib/libc.so.6: undefined reference to `_dl_main_searchlist at GLIBC_2.1'
/lib/libc.so.6: undefined reference to `_dl_debug_mask at GLIBC_2.2.3'
/lib/libc.so.6: undefined reference to `_dl_load_lock at GLIBC_2.2'
/lib/libc.so.6: undefined reference to `_dl_profile at GLIBC_2.1'
/lib/libc.so.6: undefined reference to `_dl_debug_state at GLIBC_2.0'
/lib/libc.so.6: undefined reference to `_dl_init_all_dirs at GLIBC_2.2'
/lib/libc.so.6: undefined reference to `_r_debug at GLIBC_2.0'
/lib/libc.so.6: undefined reference to `_dl_unload_cache at GLIBC_2.1'
/lib/libc.so.6: undefined reference to `_dl_signal_error at GLIBC_2.0'
/lib/libc.so.6: undefined reference to `_dl_debug_printf at GLIBC_2.2.3'
/lib/libc.so.6: undefined reference to `_dl_init at GLIBC_2.2'
/lib/libc.so.6: undefined reference to `_dl_all_dirs at GLIBC_2.2'
/lib/libc.so.6: undefined reference to `_dl_map_object_deps at GLIBC_2.0'
/lib/libc.so.6: undefined reference to `_dl_nloaded at GLIBC_2.2'
/lib/libc.so.6: undefined reference to `_dl_profile_map at GLIBC_2.1'
/lib/libc.so.6: undefined reference to `_dl_profile_output at GLIBC_2.1'
/lib/libc.so.6: undefined reference to `_dl_pagesize at GLIBC_2.2'
/lib/libc.so.6: undefined reference to `_dl_lookup_symbol_skip at GLIBC_2.0'
/lib/libc.so.6: undefined reference to `_dl_fpu_control at GLIBC_2.1'
/usr/lib/libdl.so: undefined reference to `_dl_catch_error'
/lib/libc.so.6: undefined reference to `_dl_global_scope_alloc at GLIBC_2.1'

still like libdl isnt there.. but..

su-2.04$ ls /compat/linux/usr/lib/*dl*
/compat/linux/usr/lib/libdl.a   /compat/linux/usr/lib/libreadline.so.4
/compat/linux/usr/lib/libdl.so  /compat/linux/usr/lib/libreadline.so.4.1
su-2.04$ ls -l 
/compat/linux/usr/lib/*dl*                                      
-rw-r--r--    1 root     wheel       47240 Nov  5  2003 
/compat/linux/usr/lib/libdl.a
lrwxr-xr-x    1 root     wheel          20 Nov  2 20:16 
/compat/linux/usr/lib/libdl.so -> ../../lib/libdl.so.2


>On Tue, 2004-11-02 at 17:19, Jon Adams wrote:
>  
>
>>Dima Dorfman wrote:
>>
>>    
>>
>>>[Jon Adams]
>>> 
>>>
>>>      
>>>
>>>>>>bash-2.04$ ./setup_stubs.sh
>>>>>>Setting up patch files...done.
>>>>>>Patching makefiles as necessary:
>>>>>>
>>>>>>
>>>>>>       
>>>>>>
>>>>>>            
>>>>>>
>>>>>...
>>>>>
>>>>>
>>>>>     
>>>>>
>>>>>          
>>>>>
>>>>>>Rebuilding client shared library...ld: cannot find -ldl
>>>>>>       
>>>>>>
>>>>>>            
>>>>>>
>>>[Dima Dorfman]
>>> 
>>>
>>>      
>>>
>>>>>You should be compiling and running everything Oracle-related under
>>>>>Linux emulation, and if you installed the linux_devtools port, you
>>>>>should have libdl in /compat/linux/lib. I suspect that either you
>>>>>aren't running under Linux emulation or that you don't have that port
>>>>>installed.
>>>>>     
>>>>>
>>>>>          
>>>>>
>>>[Jon Adams]
>>> 
>>>
>>>      
>>>
>>>>I do have libdl
>>>>
>>>>   
>>>>
>>>>        
>>>>
>>>...
>>> 
>>>
>>>      
>>>
>>>>do I need to put a -L somewhere in the oracle files, do I need to modify
>>>>my LD_INCLUDE_PATH ?
>>>>   
>>>>
>>>>        
>>>>
>>>/lib is almost certainly already in the library path. The most likely
>>>explanation is that the compiler (or linker, or whatever is trying to
>>>access libdl) isn't running under Linux emulation. Even if you start
>>>something from a compat shell, it can break out of the emulator if
>>>something tries to run a FreeBSD binary. We need to find the command
>>>that it's trying to run when it fails. Find the script that it's in (it
>>>might be setup_stubs, but it might be another one) and run it with the
>>>-x option to sh to show the commands being executed. 
>>>
>>>      
>>>
>>...
>>I set my path to /compat/linux/bin:/compat/linux/usr/bin and noticed 
>>that the linker ld itself doesnt exist in the linux compat....
>>perhaps this is the problem?
>>
>>    
>>
>>>Dima.
>>>
>>> 
>>>
>>>      
>>>
>>-- 
>>...........................
>>Jon Adams - 
>>"Chance favors the prepared mind"
>>web: http://webpages.uncc.edu/~jkadams
>>AOL IM: j2k4real
>>GPG Sig: 2965 F58A 5DF8 B4C5 16D2 0AB4 ACE2 C4A1 D105 50D2 
>>
>>    
>>
>
>  
>


-- 
...........................
Jon Adams - 
"Chance favors the prepared mind"
email: jka at ja6.com | jkadams at computer.org
web: http://webpages.uncc.edu/~jkadams
AOL IM: j2k4real
GPG Sig: 2965 F58A 5DF8 B4C5 16D2 0AB4 ACE2 C4A1 D105 50D2 


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.



More information about the freebsd-database mailing list