Page 1 of 1

curl/types.h not found

Posted: Sat Jun 30, 2012 8:05 pm
by SilverNexus
I'm trying to set up Crossfire client trunk on a computer (not mine), and am being stonewalled by an compiler error stating

Code: Select all

metaserver.c:52:24: fatal error: curl/types.h: No such file or directory
I was looking at curl, and I think they dropped types.h as of 7.21.7. Meanwhile, the computer I am trying to install the client on has 7.22.0.

This computer is running a hybrid Ubuntu 11.10 and Ubuntu 12.04. I think it didn't install the 12.04 version update correctly, which may be a contributing factor.

Is this an issue with the configuration of Crossfire, or just an issue with the computer?

Posted: Sun Jul 01, 2012 9:23 am
by Ryo
Hello.

You're probably trying to build a 1.60 server, no?

That header was removed later on, maybe before 1.70, but definitely in trunk.


If you only need to build locally (and definitely a 1.60 version :)), just remove the offending line, it should be ok.

Posted: Sun Jul 01, 2012 2:29 pm
by SilverNexus
This was in the trunk version (r18311), not the 1.60.0 version, since I did manage to update my version, so I tried to set up the same version client on this other computer (its connected locally to my computer) for consistency's sake.

If it was removed, I don't know what it was doing in my error messages.

I'll have to try removing the header, and see what happens.

Posted: Sun Jul 01, 2012 5:16 pm
by Ryo
SilverNexus wrote:This was in the trunk version (r18311), not the 1.60.0 version

There is no such include in current metaserver.c file, so you don't have the latest version.

You probably are still on a 1.70 branch, or even the 1.60.

The revision number isn't relevant, since tags and branch share the numbers - you can be revision 18300 on the 1.20 branch...

Check the top of a .svn/entries file (something like head .svn/entries will do it) to see where you are pointing, it should be trunk.

Posted: Sun Jul 01, 2012 8:41 pm
by SilverNexus
It turned out it was 1.60.0 (I could have sworn it was trunk, but I guess not). I updated it to trunk, and it compiled.

When I run the client, however, the server selection window does not have anything in it (not even the buttons).

This other problem may be something to do with the failed install of Ubuntu 12.04 on it, though.

Posted: Sat Nov 03, 2012 1:42 am
by karl
I am running Puppy Linux, which is a minimal Distro. Whenever i am missing a header i use the search at debian or ubuntu for contents. curl/curl.h showed up that it is included in Lucid (10.x) but seems not to be in Precise (12.x)
http://packages.ubuntu.com/lucid/libcurl4-openssl-dev
and
http://packages.ubuntu.com/lucid/libcurl4-gnutls-dev

Since it comes in two flavours i would compile curl from source .

Side Note : This metaserver2 thingy that came with 1.11.0 i think forces my clients to run 100% on one core if no internet connection available and they often do not respond nicely by clicking on a label in the main menu-bar. Seems that there is too low usleep value or usleep missing in the loop to prevent this. Bug IMHO. I don't like to disable something in the configuration options of sources, but here i will probably do it in future.

Posted: Mon Nov 05, 2012 9:51 pm
by Leaf
karl wrote: Whenever i am missing a header i use the search at debian or ubuntu for contents. curl/curl.h showed up that it is included in Lucid (10.x) but seems not to be in Precise (12.x)
I just compiled a server on a pristine install of Xubuntu Precise and used the following packages:

libcurl3
libcurl4-openssl-dev