LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 07-27-2014, 08:13 AM   #1
rebeka_catalina
LQ Newbie
 
Registered: Jul 2014
Location: Berlin
Distribution: Arch, Slackware
Posts: 3

Rep: Reputation: Disabled
[solved] Slackware 14.1-64 problem with building msmtp package


Hy there :-)

A few days ago I began using Slackware and today I had the first problem with building a package with a slackbuild, but also without the slackbuild just from source-package.

The package I'd like to install is msmtp and the building process runs a while and suddenly there appears the following stuff on my screen :

Code:
make  all-recursive
make[3]: Entering directory `/tmp/SBo/msmtp-1.4.20/gnulib'
make[4]: Entering directory `/tmp/SBo/msmtp-1.4.20/gnulib'
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -I../intl   -O2 -fPIC -MT base64.o -MD -MP -MF .deps/base64.Tpo -c -o base64.o base64.c
mv -f .deps/base64.Tpo .deps/base64.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -I../intl   -O2 -fPIC -MT c-ctype.o -MD -MP -MF .deps/c-ctype.Tpo -c -o c-ctype.o c-ctype.c
mv -f .deps/c-ctype.Tpo .deps/c-ctype.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -I../intl   -O2 -fPIC -MT close-hook.o -MD -MP -MF .deps/close-hook.Tpo -c -o close-hook.o close-hook.c
mv -f .deps/close-hook.Tpo .deps/close-hook.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -I../intl   -O2 -fPIC -MT sockets.o -MD -MP -MF .deps/sockets.Tpo -c -o sockets.o sockets.c
mv -f .deps/sockets.Tpo .deps/sockets.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -I../intl   -O2 -fPIC -MT xvasprintf.o -MD -MP -MF .deps/xvasprintf.Tpo -c -o xvasprintf.o xvasprintf.c
In file included from xvasprintf.c:24:0:
./stdio.h:397:1: error: 'gets' undeclared here (not in a function)
 _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
 ^
make[4]: *** [xvasprintf.o] Error 1
make[4]: Leaving directory `/tmp/SBo/msmtp-1.4.20/gnulib'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/tmp/SBo/msmtp-1.4.20/gnulib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/tmp/SBo/msmtp-1.4.20/gnulib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/SBo/msmtp-1.4.20'
make: *** [all] Error 2
It says that gets shouldn't be used and fgets should be used instead, but I didn't really know how I could tell the programm what to do, so I tried at first to give it as argument to the slackbuild, but that didn't work. Then I opened the slackbuild for editing typed --fget after the make command, saved the file und ran it again and again not successful. Then I opened the /usr/include/stdio.h file and yeah I found the entry gets, but I didn't changed anything on that file. So I opened the xvasprintf.c
file and looked around, because in the errormessage there this file is mentioned, but also there I didn't find anything to do and closed it.

Is there anybody who knows what to do and could help me, please ?

Greets,


Beka

Last edited by rebeka_catalina; 07-27-2014 at 08:37 AM.
 
Old 07-27-2014, 08:24 AM   #2
kkady32
Member
 
Registered: Dec 2010
Distribution: Slackware64
Posts: 86

Rep: Reputation: 14
In Slackbuilds.org the version is 1.4.31.
I compiled(slackware64-current)version 1.4.32 and no have problem.

Last edited by kkady32; 07-27-2014 at 08:26 AM.
 
Old 07-27-2014, 08:31 AM   #3
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,447

Rep: Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875
hi rebeka, have you done a full installation? it seems to me you are missing some packages...
to verify it, if you have setup a mirror in /etc/slackpkg/mirrors, launch (as root)
Code:
slackpkg update
slackpkg install slackware64
 
Old 07-27-2014, 08:36 AM   #4
rebeka_catalina
LQ Newbie
 
Registered: Jul 2014
Location: Berlin
Distribution: Arch, Slackware
Posts: 3

Original Poster
Rep: Reputation: Disabled
Yes I did the full installation.


Quote:
Originally Posted by kkady32 View Post
In Slackbuilds.org the version is 1.4.31.
I compiled(slackware64-current)version 1.4.32 and no have problem.
That's it Problem solved.
I got it from github now and finally could install it :-)

Thank you, now I can configure my mutt.

Thanks again :-)
 
  


Reply

Tags
build, compile, msmtp, package, slackbuild


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] building brasero package fails on Slackware 14.1 slacksam Slackware 4 11-28-2013 12:25 PM
[SOLVED] How to make mutt to listen to smtp ip without using msmtp package Iyyappan Linux - Server 2 01-13-2013 07:33 AM
Building a Slackware package... Alexvader Slackware 3 10-21-2009 04:00 PM
problem building evms package via src2pg matters Slackware 7 06-15-2007 04:57 AM
Package building problem Thilips Red Hat 1 02-08-2007 09:57 AM


All times are GMT -5. The time now is 09:21 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration