Ubuntu 22.04.1 : GCC 11 ( -fcommon ) : Issue … Multiple definition of.

148 x served & 31 x viewed

Avec GCC 11 on a changer la valeur par défaut.

Donc pour supprimer les problèmes (de facon rapide) il suffit d’ajouter la directive -fcommon. La solution idéale est de revoir le code … et surtout les .h.

Misère.

Pour information Ubuntu 22.04.1 utilise gcc 11.2.0-19 .

La doc : https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html

-fcommon

In C code, this option controls the placement of global variables defined without an initializer, known as tentative definitions in the C standard. Tentative definitions are distinct from declarations of a variable with the extern keyword, which do not allocate storage.

The default is -fno-common, which specifies that the compiler places uninitialized global variables in the BSS section of the object file. This inhibits the merging of tentative definitions by the linker so you get a multiple-definition error if the same variable is accidentally defined in more than one compilation unit.

The -fcommon places uninitialized global variables in a common block. This allows the linker to resolve all tentative definitions of the same variable in different compilation units to the same object, or to a non-tentative definition. This behavior is inconsistent with C++, and on many targets implies a speed and code size penalty on global variable references. It is mainly useful to enable legacy code to link without errors.

Ubuntu 20.04 : Thunderbirds impossible d’enregistrer un fichier

239 x served & 7 x viewed

Il était impossible d’ouvrir un dossier ou d’enregistrer un fichier, j »ai donc vu qu’il manquait un package :

$ sudo apt-get install xdg-desktop-portal-gtk
...
Les paquets supplémentaires suivants seront installés :
  xdg-desktop-portal
Les NOUVEAUX paquets suivants seront installés :
  xdg-desktop-portal xdg-desktop-portal-gtk
...

Je pense qu’il manque donc une dépendence entre Thunderbirds et xdg-desktop-portal.

A suivre.

Ubuntu : VMware player : Suppression … « userif-3: sent link up event »

360 x served & 83 x viewed

J’avais le problème de reset en boucle du soft …

$ dmesg | grep "userif-3" | tail
[169428.735247] userif-3: sent link down event.
[169428.735249] userif-3: sent link up event.
[169429.165362] userif-3: sent link down event.
[169429.165368] userif-3: sent link up event.
[169489.672222] userif-3: sent link down event.
[169489.672228] userif-3: sent link up event.
[169550.238633] userif-3: sent link down event.
[169550.238634] userif-3: sent link up event.
[169581.257563] userif-3: sent link down event.
[169581.257565] userif-3: sent link up event.

J’ai mis la dernière version mais le problème était persitant … j’ai donc supprimé

$ sudo vmware-installer -u vmware-workstation

Pour résoudre le problème j’ai essayé l’installation d’un patch :

$ sudo  /usr/bin/vmware-modconfig --console --install-all
...
$ systemctl restart vmware

Mon OS :

$ cat /etc/os-release | grep "PRETTY_NAME"
PRETTY_NAME="Ubuntu 20.04.2 LTS"

Ubuntu : Snap : Skype : DENIED : profile= »snap.skype.skype » name= »/sys/devices/* »

191 x served & 20 x viewed

Je viens de voir l’erreur en boucle sur mon Ubuntu :

$ dmesg | grep skype | grep "DENIED" | awk '{print $7 " " $8}' | tail
profile="snap.skype.skype" name="/sys/devices/virtual/net/tap0/speed"
profile="snap.skype.skype" name="/sys/devices/virtual/net/virbr0/speed"
profile="snap.skype.skype" name="/sys/devices/virtual/net/virbr0-nic/speed"
profile="snap.skype.skype" name="/sys/devices/virtual/net/anbox0/speed"
profile="snap.skype.skype" name="/sys/devices/virtual/net/vmnet1/speed"
profile="snap.skype.skype" name="/sys/devices/virtual/net/lo/speed"
profile="snap.skype.skype" name="/sys/devices/pci0000:00/0000:00:1d.0/0000:3b:00.1/net/enp59s0f1/speed"
profile="snap.skype.skype" name="/sys/devices/pci0000:00/0000:00:1d.1/0000:40:00.0/net/wlp64s0/speed"
profile="snap.skype.skype" name="/sys/devices/virtual/net/tap0/speed"
profile="snap.skype.skype" name="/sys/devices/virtual/net/virbr0/speed"

$ snap info skype
name:      skype
summary:   One Skype for all your devices. New features. New look. All Skype.
publisher: Skype✓
store-url: https://snapcraft.io/skype
contact:   https://www.skype.com/
license:   unset
description: |
  Skype keeps the world talking. Say “hello” with an instant message, voice or video call – all for
  free. Skype is available on phones, tablets, PCs, Macs and Linux.
  
  • Video calls – Don’t just hear the cheers, see it! Get together with 1 or 49 of your friends and
  family on a video call. Watch everyone’s smiles and cries when you tell them “We’re engaged!!!"
  
  • Chat – Reach people instantly. Send messages to your friends, liven up conversations with
  emoticons and Mojis, or create a group chat to make weekend plans with up to 300 people.
  
  • Share – Do more together. Easily share your screen, photos, videos, documents, and files with
  your family and friends. Unlike email, Skype will transfer up to 300MB per file.
  
  • Voice calls – Camera shy? Make voice calls to anyone on Skype. You can also call mobile and
  landlines at low rates.
  
  Microsoft Services Agreement - https://go.microsoft.com/fwlink/?linkid=2097426
commands:
  - skype
snap-id:      QRDEfjn4WJYnm0FzDKwqqRZZI77awQEV
tracking:     latest/stable
refresh-date: 8 days ago, at 11:59 CEST
channels:
  latest/stable:     8.75.0.140 2021-08-12 (183) 145MB -
  latest/candidate:  ↑                                 
  latest/beta:       ↑                                 
  latest/edge:       ↑                                 
  insider/stable:    8.76.76.70 2021-08-20 (184) 145MB -
  insider/candidate: ↑                                 
  insider/beta:      ↑                                 
  insider/edge:      ↑                                 
installed:           8.75.0.140            (183) 145MB -

J’ai donc ajouté les droits via l’interface :

On peut le faire en ligne de commande :

$ snap connections | grep skype
audio-playback                                skype:audio-playback                      :audio-playback                                                       -
audio-record                                  skype:audio-record                        :audio-record                                                         -
browser-support                               skype:browser-sandbox                     :browser-support                                                      -
browser-support                               skype:browser-support                     :browser-support                                                      -
camera                                        skype:camera                              :camera                                                               -
content[gnome-3-28-1804]                      skype:gnome-3-28-1804                     gnome-3-28-1804:gnome-3-28-1804                                       -
content[gtk-3-themes]                         skype:gtk-3-themes                        gtk-common-themes:gtk-3-themes                                        -
content[icon-themes]                          skype:icon-themes                         gtk-common-themes:icon-themes                                         -
content[sound-themes]                         skype:sound-themes                        gtk-common-themes:sound-themes                                        -
desktop                                       skype:desktop                             :desktop                                                              -
desktop-legacy                                skype:desktop-legacy                      :desktop-legacy                                                       -
gsettings                                     skype:gsettings                           :gsettings                                                            -
home                                          skype:home                                :home                                                                 -
mount-observe                                 skype:mount-observe                       :mount-observe                                                        manual
network                                       skype:network                             :network                                                              -
network-observe                               skype:network-observe                     :network-observe                                                      manual
opengl                                        skype:opengl                              :opengl                                                               -
password-manager-service                      skype:password-manager-service            :password-manager-service                                             -
screen-inhibit-control                        skype:screen-inhibit-control              :screen-inhibit-control                                               -
unity7                                        skype:unity7                              :unity7                                                               -
wayland                                       skype:wayland                             :wayland                                                              -
x11                                           skype:x11                                 :x11                                                                  -

La clef c’est « skype:network-observe » … il faut donc faire un connect sur la clef.