Ticket 148: static linking to the library
I cannot statically link to the libuuid.a library.  I compiled a test code but it requires the shared object library be available.
My test code is simply the function call described in the man page (uuid_v1) within a main function.  My compile line is "gcc -o myuuid myuuid.c -L/usr/local/lib -luuid"
When I execute I get
"./myuuid: error while loading shared libraries: libuuid.so.15: cannot open shared object file: No such file or directory"
I am guessing that this is not a bug with the uuid package, but something I am doing wrong?  But there is no forum or support to send to.  Thanks in advance for any pointers you could provide.
Thanks
Bernard Puc
Remarks:
/usr/local/lib has to be in your LD_LIBRARY_PATH if you
have installed OSSP uuid with --enable-shared --prefix=/usr/local.
Alternatively build OSSP uuid statically with --enable-static --disable-shared
and reinstall and relink your program.
Properties:
  | Type: | event |  | Version: | 1.5.1 | 
  | Status: | closed |  | Created: | 2006-Dec-18 04:13 | 
  | Severity: | 4 |  | Last Change: | 2007-Jan-01 19:31 | 
  | Priority: | 1 |  | Subsystem: | uuid | 
  | Assigned To: | rse |  | Derived From: |  | 
  | Creator: | anonymous |