General > Discussion

Unable to compile and package under Debian Sid (ufoai~svn11811) [FIXED]

(1/1)

meden:
I'm trying to build UFO:AI packages for my Debian Sid, but I can't. Using the command
--- Code: ---fakeroot debian/rules binary
--- End code ---
maps and languages are built and packaged in ufoai-data and ufoai-data-music, but the building task stops with the following output:


--- Code: ---[...]
dh_testdir
/usr/bin/make BUILDDIR=/usr/src/ufoai/BUILD
make[1]: Entering directory `/usr/src/ufoai'
 * [UFO] src/common/ioapi.c
 * [UFO] src/common/unzip.c
 * [UFO] src/common/md4.c
 * [UFO] src/common/dbuffer.c
 * [UFO] src/ports/unix/unix_glob.c
 * [UFO] ... linking  (-ldl  -lm   -lz -ljpeg -lpng -lSDL_ttf -lvorbisfile -lvorbis -logg  -lcurl  -L/usr/lib -lSDL )
/usr/src/ufoai/BUILD/client/client/cl_main.o: In function `CL_ConnectionlessPacket':
/usr/src/ufoai/src/client/cl_main.c:1262: undefined reference to `CL_SetHTTPServer'
/usr/src/ufoai/BUILD/client/client/cl_main.o: In function `CL_RequestNextDownload':
/usr/src/ufoai/src/client/cl_main.c:1527: undefined reference to `CL_PendingHTTPDownloads'
/usr/src/ufoai/BUILD/client/client/cl_main.o: In function `CL_InitLocal':
/usr/src/ufoai/src/client/cl_main.c:2139: undefined reference to `cl_http_proxy'
/usr/src/ufoai/src/client/cl_main.c:2140: undefined reference to `cl_http_filelists'
/usr/src/ufoai/src/client/cl_main.c:2141: undefined reference to `cl_http_downloads'
/usr/src/ufoai/src/client/cl_main.c:2142: undefined reference to `cl_http_max_connections'
/usr/src/ufoai/BUILD/client/client/cl_main.o: In function `CL_Frame':
/usr/src/ufoai/src/client/cl_main.c:2446: undefined reference to `CL_RunHTTPDownloads'
/usr/src/ufoai/BUILD/client/client/cl_main.o: In function `CL_Init':
/usr/src/ufoai/src/client/cl_main.c:2607: undefined reference to `CL_InitHTTPDownloads'
/usr/src/ufoai/BUILD/client/client/cl_main.o: In function `CL_Shutdown':
/usr/src/ufoai/src/client/cl_main.c:2635: undefined reference to `CL_HTTP_Cleanup'
/usr/src/ufoai/BUILD/client/client/cl_parse.o: In function `CL_CheckOrDownloadFile':
/usr/src/ufoai/src/client/cl_parse.c:289: undefined reference to `CL_QueueHTTPDownload'
collect2: ld returned 1 exit status
make[1]: *** [ufo] Error 1
make[1]: Leaving directory `/usr/src/ufoai'
make: *** [stamps/build-arch] Error 2


--- End code ---

I used debian/rules because it is there, but the same happens with make deb.

What's wrong?

Thanks

Mattn:
i'm using ubuntu here, but i will try to check it

there were some updates to the debian build scripts in the last few minutes, please check them

meden:
Nothing to do, apart the need of manually patch the (incorrect) header of new debian/changelog... :)
Same errors, plus a couple of warning from dpkg-gencontrol ("unknown substitution variable ${misc:Depends}").

OT: In the changelog I read something about exclusive use of SDL: what about performances? Is the same using gl?

meden:
I read some code...
I'm pretty sure the the problem is related to curl. The undefined references refer (sorry...) to definitions in cl_http.h; this one is included in client.h only if HAVE_CURL is defined (for the C preprocessor). The default behavior of configure script it to check whether curl is present or not; looking into config.h I can read

--- Code: ---#define HAVE_CURL 1
--- End code ---

so there shouldn't be any problem. But...

I have only one suspect, now... Well, actually a feeling, because I'm not an expert programmer. In client.h there is a line:

--- Code: ---#define CURL_STATICLIB
--- End code ---
Maybe the linker is looking for static libs, when I have only their dynamic version?

In my box I have these packages:
libcurl3 (7.17.0-1)
libcurl3-gnutls (7.17.0-1)
libcurl4-openssl (7.16.2-4)
libcurl4-openssl-dev (7.16.2-4)

The last one is the only (of course) providing curl.h

meden:
svn version 11913 builds and runs!  Great work, thank you!

Navigation

[0] Message Index

Go to full version