r1ch.net forums
* Home Help Search Login Register
r1ch.net  |  r1ch.net stuff  |  R1Q2  |  Topic: r1q2 updater
Pages: [1]
Print
Author Topic: r1q2 updater  (Read 7016 times)
zipax
Guest
« on: October 01, 2005, 11:59:06 am »

cannot update r1q2ded-old server on linux:

R1Q2Updater v0.0.6
(c)2004 r1ch.net

Connecting...Segmentation fault
Press any key to continue...


...please advise
Logged
Snake
Member

Posts: 184


« Reply #1 on: October 01, 2005, 01:36:32 pm »

Have you tried compiling the updater on your system?

http://www.r1ch.net/stuff/r1q2/src/update.c
Logged
zipax
Guest
« Reply #2 on: October 01, 2005, 02:46:59 pm »

Have you tried compiling the updater on your system?

nope.. thx for the advice
Logged
R1CH
Administrator
Member

Posts: 2625



« Reply #3 on: October 01, 2005, 04:12:08 pm »

The joys of linux binary compatibility...

Here's the compiler command you should use:
gcc -O2 -o r1q2updater -lcurl -lz -lcrypto update.c
Logged
Snake
Member

Posts: 184


« Reply #4 on: October 01, 2005, 05:50:32 pm »

Might be a good idea to add that to the .c file. "suggested compile command, needed libs".
Logged
Bossman
Member

Posts: 486


« Reply #5 on: October 01, 2005, 07:42:22 pm »

   

   What happens to the r1q2ded-old files when you download them on a win2000 and transfer them to a Linux? because when I did this the file would not work, so then I downloaded it from Linux server and it worked fine. Is something done to the file or is it just that it is a Linux file and changes during the download? I tried this a few times to make sure and it don't work kinda weard. Not a big deal just wondering.
Logged
R1CH
Administrator
Member

Posts: 2625



« Reply #6 on: October 01, 2005, 08:09:45 pm »

You likely transferred over ASCII FTP or in some other way that corrupted them. You download the same files regardless of what platform the updater runs on.
Logged
zipax
Guest
« Reply #7 on: October 02, 2005, 05:34:37 am »

The joys of linux binary compatibility...

Here's the compiler command you should use:
gcc -O2 -o r1q2updater -lcurl -lz -lcrypto update.c

works... thx
Logged
Bossman
Member

Posts: 486


« Reply #8 on: October 02, 2005, 06:50:27 am »

 
   Ah ok I guess that windows default transfer must be that. Well thanks I just use myftp next time.
Logged
maxkrey
Member

Posts: 1


« Reply #9 on: October 02, 2006, 05:52:56 pm »

Hello, i tried run r1q2updater but Segmentation fault error was show...
Reading the forums i found the solution but it show following error:

Code:
[root@gs2 src]# gcc -O2 -o r1q2updater -lcurl -lz -lcrypto update.c
[b]update.c:21:23: curl/curl.h: No such file or directory
update.c:22:18: zlib.h: No such file or directory
update.c:27:25: openssl/evp.h: No such file or directory
update.c:28:25: openssl/pem.h: No such file or directory[/b]
update.c: In function `GrabFile':
update.c:161: error: syntax error before '*' token
update.c:174: error: `curl' undeclared (first use in this function)
update.c:174: error: (Each undeclared identifier is reported only once
update.c:174: error: for each function it appears in.)
update.c:180: error: `CURLOPT_USERPWD' undeclared (first use in this function)
update.c:181: error: `CURLOPT_HTTPAUTH' undeclared (first use in this function)
update.c:181: error: `CURLAUTH_BASIC' undeclared (first use in this function)
update.c:184: error: `CURLOPT_WRITEFUNCTION' undeclared (first use in this function)
update.c:185: error: `CURLOPT_VERBOSE' undeclared (first use in this function)
update.c:186: error: `CURLOPT_NOPROGRESS' undeclared (first use in this function)
update.c:187: error: `CURLOPT_URL' undeclared (first use in this function)
update.c:188: error: `CURLOPT_ERRORBUFFER' undeclared (first use in this function)
update.c:189: error: `CURLOPT_USERAGENT' undeclared (first use in this function)
update.c:192: error: `CURLOPT_PROXY' undeclared (first use in this function)
update.c:196: error: `CURLINFO_RESPONSE_CODE' undeclared (first use in this function)
update.c:197: error: `CURLINFO_SPEED_DOWNLOAD' undeclared (first use in this function)
update.c: In function `CheckProduct':

I did install curl and zlib with: yum install zlib and curl (and openssl), but the error not off..

OS Centos.

PD: SOrry my english.. but i don't know it Tongue
Logged
R1CH
Administrator
Member

Posts: 2625



« Reply #10 on: October 02, 2006, 06:49:38 pm »

To compile using curl and zlib, you also need to install the development packages. Try for example:

yum install curl-devel zlib-devel openssl-devel
Logged
fak3r
Member

Posts: 5


« Reply #11 on: October 05, 2006, 01:57:41 pm »

I am having problems compiling on FreeBSD; I have curl, zlib, openssl installed -- but there aren't 'dev' packages for such in the Ports tree.  Compile errors out with:

Code:
[root@chavez /home/q2admin]# gcc -O2 -o r1q2updater -lcurl -lz -lcrypto update.c
update.c:21:23: curl/curl.h: No such file or directory
update.c: In function `GrabFile':
update.c:161: error: syntax error before '*' token
update.c:174: error: `curl' undeclared (first use in this function)
update.c:174: error: (Each undeclared identifier is reported only once
update.c:174: error: for each function it appears in.)
update.c:180: error: `CURLOPT_USERPWD' undeclared (first use in this function)
update.c:181: error: `CURLOPT_HTTPAUTH' undeclared (first use in this function)
update.c:181: error: `CURLAUTH_BASIC' undeclared (first use in this function)
update.c:184: error: `CURLOPT_WRITEFUNCTION' undeclared (first use in this function)
update.c:185: error: `CURLOPT_VERBOSE' undeclared (first use in this function)
update.c:186: error: `CURLOPT_NOPROGRESS' undeclared (first use in this function)
update.c:187: error: `CURLOPT_URL' undeclared (first use in this function)
update.c:188: error: `CURLOPT_ERRORBUFFER' undeclared (first use in this function)
update.c:189: error: `CURLOPT_USERAGENT' undeclared (first use in this function)
update.c:192: error: `CURLOPT_PROXY' undeclared (first use in this function)
update.c:196: error: `CURLINFO_RESPONSE_CODE' undeclared (first use in this function)
update.c:197: error: `CURLINFO_SPEED_DOWNLOAD' undeclared (first use in this function)
update.c: In function `CheckProduct':
update.c:282: error: `CURLE_OK' undeclared (first use in this function)
update.c: In function `main':
update.c:471: error: `CURL' undeclared (first use in this function)
update.c:471: error: `url' undeclared (first use in this function)
update.c:512: error: `CURL_GLOBAL_WIN32' undeclared (first use in this function)
update.c:525: error: `CURLOPT_WRITEFUNCTION' undeclared (first use in this function)
update.c:526: error: `CURLOPT_TIMEOUT' undeclared (first use in this function)
update.c:527: error: `CURLOPT_VERBOSE' undeclared (first use in this function)
update.c:528: error: `CURLOPT_NOPROGRESS' undeclared (first use in this function)
update.c:529: error: `CURLOPT_URL' undeclared (first use in this function)
update.c:530: error: `CURLOPT_USERAGENT' undeclared (first use in this function)
update.c:533: error: `CURLOPT_PROXY' undeclared (first use in this function)
update.c:545: error: `CURLE_OK' undeclared (first use in this function)

So, would I need to compile this in Linux first, then bring it over to FreeBSD and run it?  I currently don't have a Linux box out there, maybe it's time to get a VMware image going, but would rather do it this way if possible.

Thanks for the client/server, I have my old WoD 6.02 mod running on the server here: http://fak3r.com/games/

fak3r
Logged
R1CH
Administrator
Member

Posts: 2625



« Reply #12 on: October 05, 2006, 06:21:00 pm »

Yeah that output definitely suggests you're missing the curl headers. Check the curl site, there might be a FreeBSD package: http://curl.haxx.se/
Logged
Maurox?
Member

Posts: 82


« Reply #13 on: October 05, 2006, 06:58:08 pm »

Yeah that output definitely suggests you're missing the curl headers. Check the curl site, there might be a FreeBSD package: http://curl.haxx.se/

FreeBSD FreeBSD
FreeBSD tar+bz2    7.15.5    binary      SSL enabled       
FreeBSD                  7.15.5  source   optional    
Logged
fak3r
Member

Posts: 5


« Reply #14 on: October 10, 2006, 09:03:04 am »

Thanks r1ch, I actually just ran a Debian machine in VMware (free as in beer player) and grabbed, updated the stuff over there.  Since I'm on the mailing list I'll just watch those for server changes.  Looking at a cheap (~300$) AMD64 3200 / 512Megs RAM box from Dell to run your latest q2client in Linux on next, then I'll configure the latest LOX on the server.  Should handle it.
Logged
Pages: [1]
Print
r1ch.net  |  r1ch.net stuff  |  R1Q2  |  Topic: r1q2 updater
Jump to:  

Powered by SMF 1.1.19 | SMF © 2013, Simple Machines