Click here to Skip to main content
14,693,704 members
Home » Discussions » Linux Programming
   

Linux Programming

 
GeneralRe: Using virtualbox to load Debian OS Pin
Vaclav_27-Mar-19 6:32
MemberVaclav_27-Mar-19 6:32 
GeneralRe: Using virtualbox to load Debian OS Pin
k505427-Mar-19 7:25
mvek505427-Mar-19 7:25 
GeneralRe: Using virtualbox to load Debian OS Pin
Vaclav_27-Mar-19 11:54
MemberVaclav_27-Mar-19 11:54 
QuestionBlueZ part 3 - English translation please Pin
Vaclav_9-Mar-19 5:14
MemberVaclav_9-Mar-19 5:14 
GeneralRe: BlueZ part 3 - English translation please Pin
k50549-Mar-19 7:59
mvek50549-Mar-19 7:59 
AnswerRe: BlueZ part 3 - English translation please Pin
Richard MacCutchan9-Mar-19 22:46
mveRichard MacCutchan9-Mar-19 22:46 
GeneralRe: BlueZ part 3 - English translation please Pin
Gerry Schmitz10-Mar-19 6:26
mveGerry Schmitz10-Mar-19 6:26 
QuestionBlueZ part 2 - which "bluetooth" library is actually used / linked to? Pin
Vaclav_9-Mar-19 4:46
MemberVaclav_9-Mar-19 4:46 
This is a linker question.

Could somebody help me to decode this linker verbose output to find WHERE is the " linked to" option actually located.



Building target: BLUE2_LINUX_19381
Invoking: GCC C++ Linker
g++ -v -o "BLUE2_LINUX_19381"  ./src/BLUE.o   -lbluetooth
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.11' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.11) 
COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/
LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-o' 'BLUE2_LINUX_19381' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
 /usr/lib/gcc/x86_64-linux-gnu/5/collect2 -plugin /usr/lib/gcc/x86_64-linux-gnu/5/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper -plugin-opt=-fresolution=/tmp/ccFV22zV.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --sysroot=/ --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -dynamic-linker /lib64/ld-linux-x86-64.so.2 -z relro -o BLUE2_LINUX_19381 /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/5/crtbegin.o -L/usr/lib/gcc/x86_64-linux-gnu/5 -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/5/../../.. ./src/BLUE.o -lbluetooth -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-linux-gnu/5/crtend.o /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crtn.o
Finished building target: BLUE2_LINUX_19381
 

08:15:26 Build Finished. 0 errors, 1 warnings. (took 2s.946ms)


I did try this and cannot find it:



jim@jim-desktop:~$ sudo find /usr -type f -name "bluetooth.*"
[sudo] password for jim: 
/usr/share/help-langpack/en_GB/ubuntu-help/bluetooth.page
/usr/share/help-langpack/cs/ubuntu-help/bluetooth.page
/usr/share/help-langpack/cs/gnome-help/bluetooth.page
/usr/share/help-langpack/en_AU/ubuntu-help/bluetooth.page
/usr/share/help-langpack/en_CA/ubuntu-help/bluetooth.page
/usr/share/man/man1/bluetooth.1.gz
/usr/share/icons/Humanity/apps/22/bluetooth.svg
/usr/share/icons/Humanity/apps/48/bluetooth.svg
/usr/share/icons/Humanity/apps/24/bluetooth.svg
/usr/share/icons/HighContrast/48x48/apps/bluetooth.png
/usr/share/icons/HighContrast/16x16/apps/bluetooth.png
/usr/share/icons/HighContrast/22x22/apps/bluetooth.png
/usr/share/icons/HighContrast/24x24/apps/bluetooth.png
/usr/share/icons/HighContrast/32x32/apps/bluetooth.png
/usr/share/icons/HighContrast/256x256/apps/bluetooth.png
/usr/share/app-install/icons/bluetooth.svg
/usr/share/help/C/ubuntu-help/bluetooth.page
/usr/share/help/C/gnome-help/bluetooth.page
/usr/share/plainbox-provider-checkbox/jobs/bluetooth.txt.in
/usr/include/bluetooth/bluetooth.h
/usr/src/linux-headers-4.15.0-45/include/net/bluetooth/bluetooth.h
/usr/src/linux-headers-4.15.0-46/include/net/bluetooth/bluetooth.h
jim@jim-desktop:~$ sudo find /usr -type f -name "bluetooth.a"
jim@jim-desktop:~$ 


I am trying to figure out how BlueZ is actually used , so I did purge Bluez.
There is no package "Bluez".
Before that I fully configured Bluez - and I added enable-library to the configuration.
I did not even run make make install and tested my app and it run with the -lbluetooth linker option.

It appears the "bluetooth" library was build by running BlueZ -> configure and "purge Bluez" won't delete it.

I like to prove this by deleting it manually, but need to know where it is.


There is no package "Bluez".

But my test app still compiles / links and runs.

Thanks
AnswerRe: BlueZ part 2 - which "bluetooth" library is actually used / linked to? Pin
Richard MacCutchan9-Mar-19 5:07
mveRichard MacCutchan9-Mar-19 5:07 
GeneralRe: BlueZ part 2 - which "bluetooth" library is actually used / linked to? Pin
Vaclav_9-Mar-19 5:19
MemberVaclav_9-Mar-19 5:19 
GeneralRe: BlueZ part 2 - which "bluetooth" library is actually used / linked to? Pin
k50549-Mar-19 5:27
mvek50549-Mar-19 5:27 
AnswerRe: BlueZ part 2 - which "bluetooth" library is actually used / linked to? Pin
k50549-Mar-19 5:18
mvek50549-Mar-19 5:18 
GeneralRe: BlueZ part 2 - which "bluetooth" library is actually used / linked to? Pin
Vaclav_9-Mar-19 6:37
MemberVaclav_9-Mar-19 6:37 
GeneralRe: BlueZ part 2 - which "bluetooth" library is actually used / linked to? Pin
k50549-Mar-19 7:13
mvek50549-Mar-19 7:13 
GeneralRe: BlueZ part 2 - which "bluetooth" library is actually used / linked to? Pin
Vaclav_9-Mar-19 7:50
MemberVaclav_9-Mar-19 7:50 
GeneralRe: BlueZ part 2 - which "bluetooth" library is actually used / linked to? Pin
k50549-Mar-19 9:17
mvek50549-Mar-19 9:17 
AnswerRe: BlueZ part 2 - which "bluetooth" library is actually used / linked to? Pin
k50549-Mar-19 7:48
mvek50549-Mar-19 7:48 
GeneralRe: BlueZ part 2 - which "bluetooth" library is actually used / linked to? Pin
Vaclav_24-Mar-19 8:37
MemberVaclav_24-Mar-19 8:37 
QuestionWho is on first? Which BlueZ version SOURCE code is best documented? Pin
Vaclav_8-Mar-19 14:46
MemberVaclav_8-Mar-19 14:46 
AnswerRe: Who is on first? Which BlueZ version SOURCE code is best documented? Pin
Richard MacCutchan8-Mar-19 23:14
mveRichard MacCutchan8-Mar-19 23:14 
AnswerRe: Who is on first? Which BlueZ version SOURCE code is best documented? Pin
k50549-Mar-19 4:57
mvek50549-Mar-19 4:57 
QuestionMore 'bluez" Pin
Vaclav_8-Mar-19 4:56
MemberVaclav_8-Mar-19 4:56 
QuestionHow does perror works? Pin
Vaclav_8-Mar-19 4:43
MemberVaclav_8-Mar-19 4:43 
AnswerRe: How does perror works? Pin
Richard MacCutchan8-Mar-19 5:02
mveRichard MacCutchan8-Mar-19 5:02 
GeneralRe: How does perror works? Pin
Vaclav_8-Mar-19 6:34
MemberVaclav_8-Mar-19 6:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.