Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 671094 - net-misc/csync-0.50.0 : /.../csync_smb.c:76:5: error: assignment discards const qualifier from pointer target type [-Wdiscarded-qualifiers]
Summary: net-misc/csync-0.50.0 : /.../csync_smb.c:76:5: error: assignment discards con...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-13 18:38 UTC by Toralf Förster
Modified: 2018-12-06 22:20 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,16.88 KB, text/plain)
2018-11-13 18:38 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,327.89 KB, text/plain)
2018-11-13 18:38 UTC, Toralf Förster
Details
environment (environment,105.86 KB, text/plain)
2018-11-13 18:38 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,12.88 KB, application/x-bzip)
2018-11-13 18:38 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,4.88 KB, application/x-bzip)
2018-11-13 18:38 UTC, Toralf Förster
Details
net-misc:csync-0.50.0:20181113-105937.log (net-misc:csync-0.50.0:20181113-105937.log,67.01 KB, text/plain)
2018-11-13 18:38 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,29.79 KB, application/x-bzip)
2018-11-13 18:38 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2018-11-13 18:38:31 UTC
/var/tmp/portage/net-misc/csync-0.50.0/work/csync-0.50.0/modules/csync_smb.c: In function ‘get_auth_data_with_context_fn’:
/var/tmp/portage/net-misc/csync-0.50.0/work/csync-0.50.0/modules/csync_smb.c:76:5: error: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   h = smbc_getUser(smb_ctx);
     ^
make[2]: *** [modules/CMakeFiles/csync_smb.dir/build.make:63: modules/CMakeFiles/csync_smb.dir/csync_smb.c.o] Error 1

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-developer_test_20181106-171353

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-8.2.0 *

Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.6
  [3]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby23 (with Rubygems)
  [2]   ruby24 (with Rubygems) *
  [3]   ruby25 (with Rubygems)
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.9.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

emerge -qpvO net-misc/csync
[ebuild  N    ] net-misc/csync-0.50.0  USE="iconv sftp -doc -samba -test"
Comment 1 Toralf Förster gentoo-dev 2018-11-13 18:38:34 UTC
Created attachment 555036 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-11-13 18:38:37 UTC
Created attachment 555038 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2018-11-13 18:38:39 UTC
Created attachment 555040 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2018-11-13 18:38:43 UTC
Created attachment 555042 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2018-11-13 18:38:45 UTC
Created attachment 555044 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-11-13 18:38:48 UTC
Created attachment 555046 [details]
net-misc:csync-0.50.0:20181113-105937.log
Comment 7 Toralf Förster gentoo-dev 2018-11-13 18:38:51 UTC
Created attachment 555048 [details]
temp.tbz2
Comment 8 Larry the Git Cow gentoo-dev 2018-12-06 22:20:27 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=285a78869a91ee880369c230ab3fe241ca3d05b9

commit 285a78869a91ee880369c230ab3fe241ca3d05b9
Author:     Bernard Cafarelli <voyageur@gentoo.org>
AuthorDate: 2018-12-06 22:19:43 +0000
Commit:     Bernard Cafarelli <voyageur@gentoo.org>
CommitDate: 2018-12-06 22:20:18 +0000

    net-misc/csync: fix compilation with GCC 8
    
    Update ebuild (EAPI, patch, samba conditional)
    
    Closes: https://bugs.gentoo.org/671094
    Package-Manager: Portage-2.3.52, Repoman-2.3.12
    Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>

 net-misc/csync/csync-0.50.0-r1.ebuild              | 47 ++++++++++++++++++++++
 .../csync/files/csync-0.50.0-gcc_5_and_8.patch     | 36 +++++++++++++++++
 2 files changed, 83 insertions(+)