Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 496758 - net-im/silc-server-1.1.18 - .../work/silc-server-1.1.18/lib/silcasn1/silcasn1_encode.c:314: undefined reference to `silc_mp_sinit'
Summary: net-im/silc-server-1.1.18 - .../work/silc-server-1.1.18/lib/silcasn1/silcasn1...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michael 'veremitz' Everitt
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-02 12:51 UTC by Berthold Humkamp
Modified: 2016-10-31 15:55 UTC (History)
6 users (show)

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


Attachments
build.log (build.log,252.60 KB, text/plain)
2014-01-02 12:51 UTC, Berthold Humkamp
Details
environment (environment,93.23 KB, text/plain)
2014-01-02 12:52 UTC, Berthold Humkamp
Details
emerge --info '=net-im/silc-server-1.1.18::gentoo' (emerge--info.txt,7.80 KB, text/plain)
2014-01-02 12:53 UTC, Berthold Humkamp
Details
functioning ebuild (silc-server-1.1.19.ebuild,1.82 KB, text/plain)
2015-08-21 09:55 UTC, Berthold Humkamp
Details
functioning ebuild (silc-toolkit-1.1.12.ebuild,1.13 KB, text/plain)
2015-08-21 09:55 UTC, Berthold Humkamp
Details
functioning ebuild (silc-client-1.1.11.ebuild,1.13 KB, text/plain)
2015-08-21 09:56 UTC, Berthold Humkamp
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Berthold Humkamp 2014-01-02 12:51:55 UTC
Created attachment 366766 [details]
build.log

libtool: link: x86_64-pc-linux-gnu-gcc -march=core2 -O2 -pipe -D_GNU_SOURCE -g -Wall -finline-functions -Wno-pointer-sign -D_REENTRANT -Wl,-O1 -Wl,--as-needed -o silcd serverconfig.o silcd.o server_version.o serverid.o route.o idlist.o se
rver_query.o server.o packet_send.o packet_receive.o command.o command_reply.o server_util.o server_backup.o server_http.o  -L/var/tmp/portage/net-im/silc-server-1.1.18/work/silc-server-1.1.18/lib /var/tmp/portage/net-im/silc-server-1.1.1
8/work/silc-server-1.1.18/lib/.libs/libsilc.a -lgmp -lpthread
/var/tmp/portage/net-im/silc-server-1.1.18/work/silc-server-1.1.18/lib/.libs/libsilc.a(silcasn1_encode.o): In function `silc_asn1_encoder':
/var/tmp/portage/net-im/silc-server-1.1.18/work/silc-server-1.1.18/lib/silcasn1/silcasn1_encode.c:314: undefined reference to `silc_mp_sinit'
/var/tmp/portage/net-im/silc-server-1.1.18/work/silc-server-1.1.18/lib/.libs/libsilc.a(silcasn1_decode.o): In function `silc_asn1_decoder':
/var/tmp/portage/net-im/silc-server-1.1.18/work/silc-server-1.1.18/lib/silcasn1/silcasn1_decode.c:466: undefined reference to `silc_mp_sinit'
/var/tmp/portage/net-im/silc-server-1.1.18/work/silc-server-1.1.18/lib/silcasn1/silcasn1_decode.c:504: undefined reference to `silc_mp_sinit'
collect2: error: ld returned 1 exit status
Comment 1 Berthold Humkamp 2014-01-02 12:52:13 UTC
Created attachment 366768 [details]
environment
Comment 2 Berthold Humkamp 2014-01-02 12:53:39 UTC
Created attachment 366770 [details]
emerge --info '=net-im/silc-server-1.1.18::gentoo'
Comment 3 Berthold Humkamp 2014-05-26 14:47:19 UTC
There are new sources for toolkit-1.1.12, server-1.1.19 and client-1.1.11 on the project-homepage.

All three compile successfully on direct commands like
./configure --prefix=/usr
make
make install (as root)

The old server didn't do this, maybe server/toolkit versions didn't match.

Will you do a version-bump please? I think that will fix the problems.
Comment 4 Jesse Adelman 2014-10-27 18:26:29 UTC
Yep, I get this on amd64 (stable, with package.unmask hole poked)

/bin/sh ../../libtool --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -march=core-avx-i -O2 -pipe -D_G
NU_SOURCE -g -Wall -finline-functions -Wno-pointer-sign -D_REENTRANT  -L/dev/shm/portage/net-im/silc-s
erver-1.1.18/work/silc-server-1.1.18/lib -Wl,-O1 -Wl,--as-needed -o silcd serverconfig.o silcd.o serve
r_version.o serverid.o route.o idlist.o server_query.o server.o packet_send.o packet_receive.o command
.o command_reply.o server_util.o server_backup.o server_http.o  -lsilc -lgmp  -lpthread
libtool: link: x86_64-pc-linux-gnu-gcc -march=core-avx-i -O2 -pipe -D_GNU_SOURCE -g -Wall -finline-fun
ctions -Wno-pointer-sign -D_REENTRANT -Wl,-O1 -Wl,--as-needed -o silcd serverconfig.o silcd.o server_v
ersion.o serverid.o route.o idlist.o server_query.o server.o packet_send.o packet_receive.o command.o 
command_reply.o server_util.o server_backup.o server_http.o  -L/dev/shm/portage/net-im/silc-server-1.1
.18/work/silc-server-1.1.18/lib /dev/shm/portage/net-im/silc-server-1.1.18/work/silc-server-1.1.18/lib
/.libs/libsilc.a -lgmp -lpthread
/dev/shm/portage/net-im/silc-server-1.1.18/work/silc-server-1.1.18/lib/.libs/libsilc.a(silcasn1_encode
.o): In function `silc_asn1_encoder':
/dev/shm/portage/net-im/silc-server-1.1.18/work/silc-server-1.1.18/lib/silcasn1/silcasn1_encode.c:314:
 undefined reference to `silc_mp_sinit'
/dev/shm/portage/net-im/silc-server-1.1.18/work/silc-server-1.1.18/lib/.libs/libsilc.a(silcasn1_decode
.o): In function `silc_asn1_decoder':
/dev/shm/portage/net-im/silc-server-1.1.18/work/silc-server-1.1.18/lib/silcasn1/silcasn1_decode.c:466:
 undefined reference to `silc_mp_sinit'
/dev/shm/portage/net-im/silc-server-1.1.18/work/silc-server-1.1.18/lib/silcasn1/silcasn1_decode.c:504:
 undefined reference to `silc_mp_sinit'
collect2: error: ld returned 1 exit status
Makefile:377: recipe for target 'silcd' failed
Comment 5 Pacho Ramos gentoo-dev 2015-06-19 13:50:39 UTC
still fails to build
Comment 6 Berthold Humkamp 2015-08-21 09:55:08 UTC
Created attachment 409728 [details]
functioning ebuild
Comment 7 Berthold Humkamp 2015-08-21 09:55:42 UTC
Created attachment 409730 [details]
functioning ebuild
Comment 8 Berthold Humkamp 2015-08-21 09:56:54 UTC
Created attachment 409732 [details]
functioning ebuild
Comment 9 Berthold Humkamp 2015-08-21 09:58:54 UTC
Some source-files exist only as *.tar.gz, the *.tar.bz2 are down on upstream.
Comment 10 Pacho Ramos gentoo-dev 2015-09-05 18:40:49 UTC
Do you want to proxy maintain this?
Comment 11 Berthold Humkamp 2015-09-15 08:35:03 UTC
No problem. What will I have to do?
Comment 12 Pacho Ramos gentoo-dev 2015-09-15 17:58:38 UTC
Well, please take a look to https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers , I will also CC the team here 

Thanks a lot for volunteering :)
Comment 13 Ian Delaney (RETIRED) gentoo-dev 2015-09-20 06:12:33 UTC
(In reply to Berthold Humkamp from comment #8)
> Created attachment 409732 [details]
> functioning ebuild

On runtesting this ebuild, it builds and installs to /image with 3 qa issues. They are all warnings and the 3rd. is coded to be submitted to upstream.

 >>> Completed installing silc-server-1.1.18-r1 into /mnt/gen2/TmpDir/portage/net-im/silc-server-1.1.18-r1/image/

 * QA Notice: Unrecognized configure options:
 * 
 * 	--with-simdir
 * 	--with-simdir

 * QA Notice: The following files contain writable and executable sections
 *  Files with such sections will not work properly (or at all!) on some
 *  architectures/operating systems.  A bug should be filed at
 *  http://bugs.gentoo.org/ to make sure the issue is fixed.
 *  For more information, see:
 * 
 *    https://wiki.gentoo.org/wiki/Hardened/GNU_stack_quickstart
 * 
 *  Please include the following list of files in your report:
 *  Note: Bugs should be filed for the respective maintainers
 *  of the package in question and not hardened@g.o.
 * RWX --- --- usr/sbin/silcd


 * QA Notice: Package triggers severe warnings which indicate that it
 *            may exhibit random runtime failures.
 * silcfileutil.c:160:29: warning: argument to ‘sizeof’ in ‘memset’ call is the same expression as the destination; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess]
 * md5.c:157:24: warning: argument to ‘sizeof’ in ‘memset’ call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess]

 * Please do not file a Gentoo bug and instead report the above QA
 * issues directly to the upstream developers of this software.
 * Homepage: http://silcnet.org/

Being warnings they are non fatal, however the first two still require correction:
1. --with-simdir=/usr/$(get_libdir)/${PN}/modules appears to be a bogus option so I don't know whence you acquired it.
2. usr/sbin/silcd is installed by default since it doesn't appear to be set within econf \. Offhand I can't tell what is wrong with it in that state.

Thanks you for the contribution.
Comment 14 Pacho Ramos gentoo-dev 2016-01-05 11:22:27 UTC
Any updates on this? :/
Comment 15 Michael 'veremitz' Everitt 2016-01-07 05:40:16 UTC
I've made the silc-toolkit ebuild compile and qmerge successfully. There is no silc-client in portage currently, but probably not difficult to integrate.

The download URI's have changed to sourceforge, this is a minor adjustment.

I can also get the silc-server to compile, but there are some issues with the sandbox image pre-qmerge which I'm investigating currently.

If nobody comes forward in the next few days, I'll proxy this set of packages for/until someone else does.
^^ Proposed in IRC #gentoo-proxy-maint by idella4.
Comment 16 Michael 'veremitz' Everitt 2016-01-08 12:42:54 UTC
For reference, the long and short is that the server has a dependency on the silc-toolkit, and should link to it (clearly an omission in the upstream configure script). This is why it fails to link at the final stages, with the messages detailed above.

As the 1.1.18 package is already slated, we shall version-bump to 1.1.19 which is upstream stable, and the silc-toolkit similarly to v1.1.12 where the old version (v1.1.10) will also be slated.
Comment 17 Berthold Humkamp 2016-01-19 11:58:09 UTC
see https://bugs.gentoo.org/show_bug.cgi?id=522916

There you will find new ebuilds for all three packages, with all hints worked in.
Comment 18 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-10-31 15:55:10 UTC
[master 37194df] net-im/silc-server: Remove last-rited pkg, #522916
 6 files changed, 1 insertion(+), 113 deletions(-)
 delete mode 100644 net-im/silc-server/Manifest
 delete mode 100644 net-im/silc-server/files/silcd.initd-r1
 delete mode 100644 net-im/silc-server/metadata.xml
 delete mode 100644 net-im/silc-server/silc-server-1.1.18-r1.ebuild