Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
SMS Forum Index » SMS User Support

Post new topic   Reply to topic
trying to install a c program
View previous topic :: View next topic  
Author Message
baboo
Senior Member


Joined: 04 Sep 2007
Posts: 676

PostPosted: Sat Jan 19, 2008 4:18 am    Post subject: trying to install a c program Reply with quote

I am trying to install ez-ipupdate. This will allow me to use dynamic dns from home. The configure went okay. When I did make the following errors occured:

make
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c ez-ipupdate.c
ez-ipupdate.c: In function 'main':
ez-ipupdate.c:4559: warning: assignment makes pointer from integer without a cast
ez-ipupdate.c:4560: warning: incompatible implicit declaration of built-in function 'strftime'
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c conf_file.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c md5.c
md5.c: In function 'md5_finish_ctx':
md5.c:106: warning: incompatible implicit declaration of built-in function 'memcpy'
md5.c: In function 'md5_process_bytes':
md5.c:203: warning: incompatible implicit declaration of built-in function 'memcpy'
md5.c:230: warning: incompatible implicit declaration of built-in function 'memcpy'
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c cache_file.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c pid_file.c
gcc -g -O2 -o ez-ipupdate ez-ipupdate.o conf_file.o md5.o cache_file.o pid_file.o
/usr/lib/gcc/i486-slackware-linux/4.1.2/../../../../i486-slackware-linux/bin/ld: errno: TLS definition in /lib/libc.so.6 section .tbss mismatches non-TLS reference in conf_file.o
/lib/libc.so.6: could not read symbols:Bad value
collect2: ld returned 1 exit status
make: *** [ez-ipupdate] Error 1

Hoping you can give me some insight.

thanks
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1753
Location: Greece

PostPosted: Sat Jan 19, 2008 1:29 pm    Post subject: Reply with quote

You can download it here
There are example config files at /etc/ez-ipupdate

gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
baboo
Senior Member


Joined: 04 Sep 2007
Posts: 676

PostPosted: Sat Jan 19, 2008 4:08 pm    Post subject: Reply with quote

okay I did an install of package. Thanks for doing that, but I would like to know what the error message was saying. That way I learn and the next time can solve it myself.

thanks again - just great support from you.
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1753
Location: Greece

PostPosted: Sat Jan 19, 2008 5:40 pm    Post subject: Reply with quote

The file I uploaded was an already compile package from slackware 9, but ez-ipupdate has nothing special and it's an old program to recompile...
If you like to recompile it your self, just for the fun of it...
replace in conf_file.c

extern int errno;
with
#include </usr/include/errno.h>

and do
Code:
./configure --prefix=/usr
make
make install


gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
baboo
Senior Member


Joined: 04 Sep 2007
Posts: 676

PostPosted: Sat Jan 19, 2008 5:51 pm    Post subject: Reply with quote

thanks for the mentoring Wink
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1753
Location: Greece

PostPosted: Sat Jan 19, 2008 6:37 pm    Post subject: Reply with quote

And here a slackbuild for not messing up your system.

Code:
#!/bin/bash

EZ=ez-ipupdate
VERSION="-3.0.11b7"
PKG=/tmp/package

if [ -f $EZ$VERSION.tar.gz ]; then
echo package found
else
wget http://ez-ipupdate.com/dist/ez-ipupdate-3.0.11b7.tar.gz
fi


rm -rf $PKG
mkdir -p $PKG

echo untar archive
tar -xf $EZ$VERSION.tar.gz
cd $EZ$VERSION
sed -e "s,extern int errno;,#include </usr/include/errno.h>,g" -i conf_file.c
./configure --prefix=/usr
make
make install DESTDIR=$PKG
cd $PKG
makepkg -l y -c n $EZ$VERSION.tgz
echo Slackware package $EZ$VERSION.tgz is on $PKG


gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
baboo
Senior Member


Joined: 04 Sep 2007
Posts: 676

PostPosted: Sat Jan 19, 2008 7:34 pm    Post subject: Reply with quote

bear with me for being dense:

does this build just build a package and then you have to install it?

Or does it install it as well?
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1753
Location: Greece

PostPosted: Sat Jan 19, 2008 7:39 pm    Post subject: Reply with quote

Just build the package, you 'll have to install it yourself with 'installpkg' command.
If you change
make install DESTDIR=$PKG
to
make install
and remove the rest of the lines bellow you will have a script that install the package only.
It's wise to create packages, it's easier to manage applications that way.

gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
baboo
Senior Member


Joined: 04 Sep 2007
Posts: 676

PostPosted: Sat Jan 19, 2008 7:43 pm    Post subject: Reply with quote

thanks. That's what I thought but just now learning to read scripts. I definitely see why it makes since to create a package.

thanks again
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SMS Forum Index » SMS User Support All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

SMS - Superb! Mini Server Project © 2016
Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional