?

Log in

No account? Create an account
CVS Commit: Feh. CURL url encoding routines don't really fully URL… - LogJam [entries|archive|friends|userinfo]
LogJam

[ website | LogJam ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

[Jul. 30th, 2001|12:28 pm]
LogJam
logjam
[evan]
CVS Commit:
Feh. CURL url encoding routines don't really fully URL encode; see http://www.livejournal.com/talkread.bml?itemid=7869870&view=9741920#t9741920 for details.
LinkReply

Comments:
[User Picture]From: revjim
2001-07-31 07:15 am (UTC)
CVS does not compile due to missing curl.h ni network.c

I commented out the include line. But there were still compile errors.


gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -D_REENTRANT -I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/xmms -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/include -Wall -g -c network.c
network.c:51: parse error before `CURL'
network.c:51: warning: no semicolon at end of struct or union
network.c:52: warning: type defaults to `int' in declaration of `res'
network.c:52: warning: data definition has no type or storage class
network.c:60: parse error before `}'
network.c:60: warning: type defaults to `int' in declaration of `net_request'
network.c:60: warning: data definition has no type or storage class
network.c:68: parse error before `*'
network.c: In function `stop_request':
network.c:69: `nr' undeclared (first use in this function)
network.c:69: (Each undeclared identifier is reported only once
network.c:69: for each function it appears in.)
network.c: At top level:
network.c:81: parse error before `*'
network.c: In function `set_status':
network.c:82: `nr' undeclared (first use in this function)
network.c:82: `text' undeclared (first use in this function)
network.c: At top level:
network.c:86: parse error before `*'
network.c: In function `error':
network.c:87: `text' undeclared (first use in this function)
network.c:88: `std' undeclared (first use in this function)
network.c:90: `nr' undeclared (first use in this function)
network.c: At top level:
network.c:110: parse error before `*'
network.c: In function `pixrotate_cb':
network.c:112: `nr' undeclared (first use in this function)
network.c: At top level:
network.c:121: parse error before `net_request'
network.c: In function `cancel_cb':
network.c:122: `nr' undeclared (first use in this function)
network.c: At top level:
[...snip... too long....]
network.c: In function `net_request_run_cli':
network.c:418: `net_request' undeclared (first use in this function)
network.c:418: parse error before `actual_nr'
network.c:418: warning: control reaches end of non-void function
network.c: At top level:
network.c:419: redefinition of `response'
network.c:382: `response' previously defined here
network.c:420: `CURL_ERROR_SIZE' undeclared here (not in a function)
network.c:420: conflicting types for `curlerrorbuf'
network.c:383: previous declaration of `curlerrorbuf'
network.c:422: warning: type defaults to `int' in declaration of `curl_request_run'
network.c:422: warning: parameter names (without types) in function declaration
network.c:422: warning: data definition has no type or storage class
network.c:424: parse error before `if'
network.c:430: parse error before `->'
network.c:385: warning: `create_win' defined but not used
network.c:398: warning: `handle_response_gui' defined but not used
network.c:326: warning: `curl_request_run' defined but not used
make[2]: *** [network.o] Error 1
make[2]: Leaving directory `/home/revjim/CVS/logjam/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/revjim/CVS/logjam'
make: *** [all-recursive-am] Error 2
revjim@kilgore:~/CVS/logjam$

(Reply) (Thread)
[User Picture]From: gleepy
2001-08-01 01:26 am (UTC)

That error is basically the same as compiling logjam from the version 3.0.0 tarball when configure couldn't find libcurl. network.c complained in about the same way.

Yell when the fix is complete; I'll still use loserjabber in the meantime.

(Reply) (Parent) (Thread)
From: evan
2001-08-01 05:13 pm (UTC)
What is the output of
curl-config --cflags

curl-config --prefix

and where is the file "curl/curl.h" located?
(Use
locate curl/curl.h
).
(Reply) (Parent) (Thread)
[User Picture]From: gleepy
2001-08-01 09:16 pm (UTC)

The problem was a little different.

I never had libcurl installed! configure never complained about it, unfortunately, so that was part of the problem. Installing libcurl to "my usual place in /usr" fixed things. Do I want to let you know about the numerous warnings about undeclared functions which gcc 3.0 alerted me to?
(Reply) (Parent) (Thread)
From: evan
2001-08-02 02:39 pm (UTC)

Re: The problem was a little different.

(Sorry, my previous comment was to the wrong person.)

What was the output of ./configure with respect to curl? It should've printed an error message.
(Reply) (Parent) (Thread)
[User Picture]From: bnordman
2001-08-01 10:17 am (UTC)
This is a little off subject, but I was working on getting logjam up and running. Seems to be going smooth until I try to run it...

I get an error stating: logjam: error while loading shared libraries: libcurl.so.1: cannot open shared object file: No such file or directory. Does this mean I installed curl wrong somehow? It looked as if it was all successful.
(Reply) (Thread)
From: evan
2001-08-01 05:19 pm (UTC)
How'd you install curl?

What's the output of locate libcurl.so.1?
(Reply) (Parent) (Thread)
[User Picture]From: bnordman
2001-08-01 09:01 pm (UTC)
I went to Curl's website and dled cUrl 7.8.
did ./configure
dide a make
did a make install

locate returned:
/usr/local/lib/libcurl.so.1.1.0
/usr/local/lib/libcurl.so.1
(Reply) (Parent) (Thread)
From: evan
2001-08-02 02:39 pm (UTC)
Could you tell me the contents of /etc/ld.so.conf ?
(Reply) (Parent) (Thread)
[User Picture]From: bnordman
2001-08-02 09:15 pm (UTC)
contents of /etc/ld.so.conf

/usr/X11R6/lib
/usr/local/lib
/usr/lib
/usr/kerberos/lib
/usr/lib/qt-2.2.0/lib
/usr/lib/qt-1.45/lib
/usr/lib/sane
(Reply) (Parent) (Thread)
[User Picture]From: seanb
2001-08-02 10:51 pm (UTC)
Did you try re-running ldconfig after you installed libcurl? This would allow the new libraries to be picked up by the system.
(Reply) (Parent) (Thread)
[User Picture]From: bnordman
2001-08-12 01:08 pm (UTC)
ahh, that was it, thanks much!
(Reply) (Parent) (Thread)
From: ceside
2001-08-13 02:56 pm (UTC)

FreeBSD Port

I just submitted a FreeBSD port for logjam, as there wasn't one already. I also have a binary package available Here!

You can add the package by typing "pkg_add logjam-3.0.0.tgz", of course.

You may want to post something in the logjam journal about this, as I can't.
(Reply) (Thread)