curl/types.h not found

Requests for assistance and other HOWTOs.

Moderator: Board moderators

SilverNexus
Junior member
Posts: 165
Joined: Mon Jun 25, 2012 5:33 pm
Location: Planet Earth

curl/types.h not found

Post 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?
That SilverNexus guy? You needn't worry about him.
He is level negative 4 in oratory, and his singing is worse.
Ryo
Forum Fanatic
Posts: 752
Joined: Mon May 19, 2003 9:16 pm
Location: Paris, France

Post 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.
SilverNexus
Junior member
Posts: 165
Joined: Mon Jun 25, 2012 5:33 pm
Location: Planet Earth

Post 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.
That SilverNexus guy? You needn't worry about him.
He is level negative 4 in oratory, and his singing is worse.
Ryo
Forum Fanatic
Posts: 752
Joined: Mon May 19, 2003 9:16 pm
Location: Paris, France

Post 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.
SilverNexus
Junior member
Posts: 165
Joined: Mon Jun 25, 2012 5:33 pm
Location: Planet Earth

Post 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.
That SilverNexus guy? You needn't worry about him.
He is level negative 4 in oratory, and his singing is worse.
karl

Post 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.
Leaf
Forum Aficionado
Posts: 1994
Joined: Tue Apr 29, 2003 5:55 pm
Location: Minnesota, USA
Contact:

Post 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
"Put another, more succinct way: don't complain, contribute. It's more satisfying in the long run, and it's more constructive."
Eric Meyer
Post Reply