| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| baboo Senior Member
 
 
 Joined: 04 Sep 2007
 Posts: 676
 
 
 | 
			
				|  Posted: Sat Jan 19, 2008 4:18 am    Post subject: trying to install a c program |   |  
				| 
 |  
				| 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 |  | 
	
		| gerasimos_h Site Admin
 
 
 Joined: 09 Aug 2007
 Posts: 1757
 Location: Greece
 
 | 
			
				|  Posted: Sat Jan 19, 2008 1:29 pm    Post subject: |   |  
				| 
 |  
				| 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 |  | 
	
		| baboo Senior Member
 
 
 Joined: 04 Sep 2007
 Posts: 676
 
 
 | 
			
				|  Posted: Sat Jan 19, 2008 4:08 pm    Post subject: |   |  
				| 
 |  
				| 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 |  | 
	
		| gerasimos_h Site Admin
 
 
 Joined: 09 Aug 2007
 Posts: 1757
 Location: Greece
 
 | 
			
				|  Posted: Sat Jan 19, 2008 5:40 pm    Post subject: |   |  
				| 
 |  
				| 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 |  | 
	
		| baboo Senior Member
 
 
 Joined: 04 Sep 2007
 Posts: 676
 
 
 | 
			
				|  Posted: Sat Jan 19, 2008 5:51 pm    Post subject: |   |  
				| 
 |  
				| thanks for the mentoring  |  | 
	
		| Back to top |  | 
	
		| gerasimos_h Site Admin
 
 
 Joined: 09 Aug 2007
 Posts: 1757
 Location: Greece
 
 | 
			
				|  Posted: Sat Jan 19, 2008 6:37 pm    Post subject: |   |  
				| 
 |  
				| 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 |  | 
	
		| baboo Senior Member
 
 
 Joined: 04 Sep 2007
 Posts: 676
 
 
 | 
			
				|  Posted: Sat Jan 19, 2008 7:34 pm    Post subject: |   |  
				| 
 |  
				| 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 |  | 
	
		| gerasimos_h Site Admin
 
 
 Joined: 09 Aug 2007
 Posts: 1757
 Location: Greece
 
 | 
			
				|  Posted: Sat Jan 19, 2008 7:39 pm    Post subject: |   |  
				| 
 |  
				| 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 |  | 
	
		| baboo Senior Member
 
 
 Joined: 04 Sep 2007
 Posts: 676
 
 
 | 
			
				|  Posted: Sat Jan 19, 2008 7:43 pm    Post subject: |   |  
				| 
 |  
				| 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 |  | 
	
		|  |