02-18-2014
I'm confused. Is there no way to link your library code on each platform? That way it will always run wherever it is ported to. It is not clear to me if this is what you are asking.
You seem to want to be able to link your code where ever it resides. You have two choices: link statically on the home machine, or compile to object code - ex: libfoo.a, on the home machine, then link a new PIC code library on each platform. Assuming your code links correctly against various installation of c++.
Static linking kind of defeats the purpose of a library. But it will work.
You cannot depend on version libstsdc++5 or 6 or whatever being available when you port your code. Lugging dynamic code from box to box is not always feasible. As you found out.
This User Gave Thanks to jim mcnamara For This Post:
8 More Discussions You Might Find Interesting
1. Programming
Our development machines have libstdc++.so.5 and libstdc++.so.6.
When we build our native code, it uses libstdc++.so.6. Is there anyway I can force it to use libstdc++.so.5 instead ?
$ ldd try
/usr/lib/libcwait.so (0x00655000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6... (5 Replies)
Discussion started by: vino
5 Replies
2. HP-UX
I got my hands on a HP9000/380 and need a (really) old version of HP-UX, like 7 or 8.
Is there any vendor who sells older versions? I did a quick search here and checked the FAQ and HPs HP-UX site but couldn't find anything. :confused:
Any help is appreciated! (4 Replies)
Discussion started by: dlundh
4 Replies
3. AIX
hello everybody i am new on the AIX environment and i have faced an issue while running pstill it can't find ibstdc++.a (libstdc++.so.5) although i have the latest GCC and libstdc 4.0.0 i guess.
So to resolve the problem i have got an old versions that i want to install on AIX:
... (5 Replies)
Discussion started by: eternalflame
5 Replies
4. Ubuntu
Hi! I'm using Ubuntu Karmic and I lost libstdc++.so.6. Is there a way to recover it?..
Thanks in advance (0 Replies)
Discussion started by: Sapfeer
0 Replies
5. Red Hat
Hi all,
I am working on Red Hat Enterprise Linux ES release 4 (Nahant) with kernel 2.6.9-5 and try to install one application but unable to install it.
When I am trying to install it,it is throwing the following error--
To resolve it,I installed gcc 4.0.0 and when I am trying to see gcc... (2 Replies)
Discussion started by: smartgupta
2 Replies
6. UNIX for Dummies Questions & Answers
hi guys
I have to install a software that says have theses packages are required
Libaio.so.1
Libstdc++so.6
are these default packages for a Suse 11 installation for instance? or do I need to download them to avoid dependency issues
thanks a lot
---------- Post updated at 10:00 PM... (0 Replies)
Discussion started by: kopper
0 Replies
7. HP-UX
It took me a while, but I found the right libsdc++ for the current free vnc 4.1.3, deep in this: http://mirrors.develooper.com/hpux/gcc-3.3.2-11.00.sd.bz
Merijn's HP-UX software Download Section for ITRC members is a rich source for old libraries.
So if you cannot find the right depot or... (0 Replies)
Discussion started by: DGPickett
0 Replies
8. HP-UX
Lo guys, I've just started a new department in work and I'm going to be using HP-UX with Vi. The problem is I'm completely new to UNIX, I'm currently learning at work but I only have limited amounts of time on our dev systems. Is it possible to get a free/educational version any where? I don't... (4 Replies)
Discussion started by: john2012
4 Replies
LEARN ABOUT FREEBSD
hcsecd
HCSECD(8) BSD System Manager's Manual HCSECD(8)
NAME
hcsecd -- control link keys and PIN codes for Bluetooth devices
SYNOPSIS
hcsecd [-dh] -f configfile
DESCRIPTION
The hcsecd daemon controls link keys and PIN codes for Bluetooth devices. It opens a raw HCI socket and listens for Link_Key_Request,
PIN_Code_Request and Link_Key_Notification HCI events.
Once a Link_Key_Request or PIN_Code_Request HCI event is received, the daemon scans the configuration file for a matching entry. The remote
device BD_ADDR is used as a key. If no matching entry was found, the default entry will be used. If no default entry was found then it is
assumed that no link key and no PIN code exists. For any given entry, the link key takes precedence over the PIN code. If a link key was
not specified, the device must generate the link key from the PIN code. If an entry was found and the link key (or PIN code) exists, the
Link_Key_Request_Reply (or PIN_Code_Request_Reply) command will be sent back to the device. Otherwise, the Link_Key_Request_Negative_Reply
(or PIN_Code_Request_Negative_Reply) command will be sent back to the device.
The hcsecd daemon also handles HCI Link_Key_Notification events and caches link keys created from the PIN codes in memory. To preserve link
keys between restarts the hcsecd daemon dumps link keys for all entries in the /var/db/hcsecd.keys link keys file. If it exists, the link
keys file gets processed by the hcsecd daemon after it processes its main configuration file. The link keys file gets written every time the
hcsecd daemon shuts down gracefully. It is possible to force the hcsecd daemon to re-read its main configuration file and dump the link keys
file by sending the HUP signal to the hcsecd process. The user is expected to not modify the link keys file by hand.
The command line options are as follows:
-d Do not detach from the controlling terminal.
-f configfile
Specify the name of the configuration file. The default is /etc/bluetooth/hcsecd.conf.
-h Display usage message and exit.
FILES
/etc/bluetooth/hcsecd.conf
/var/db/hcsecd.keys
/var/run/hcsecd.pid
SEE ALSO
ng_btsocket(4), ng_hci(4), hcsecd.conf(5), hccontrol(8), hcseriald(8)
AUTHORS
Maksim Yevmenkin <m_evmenkin@yahoo.com>
BUGS
Currently there is no way to select the link key or the PIN code based on which local device received the request. Everything is based on
the remote device BD_ADDR. An interface for external helpers to obtain link keys and PIN codes is missing.
BSD
November 16, 2002 BSD