project-navigation
Personal tools

Author Topic: Unable to compile and package under Debian Sid (ufoai~svn11811) [FIXED]  (Read 2972 times)

Offline meden

  • Cannon Fodder
  • **
  • Posts: 4
    • View Profile
I'm trying to build UFO:AI packages for my Debian Sid, but I can't. Using the command
Code: [Select]
fakeroot debian/rules binary maps and languages are built and packaged in ufoai-data and ufoai-data-music, but the building task stops with the following output:

Code: [Select]
[...]
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


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

What's wrong?

Thanks
« Last Edit: September 22, 2007, 07:15:54 pm by meden »

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Unable to compile and package under Debian Sid (ufoai~svn11811)
« Reply #1 on: September 19, 2007, 10:03:02 pm »
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

Offline meden

  • Cannon Fodder
  • **
  • Posts: 4
    • View Profile
Re: Unable to compile and package under Debian Sid (ufoai~svn11811)
« Reply #2 on: September 20, 2007, 01:04:13 am »
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?

Offline meden

  • Cannon Fodder
  • **
  • Posts: 4
    • View Profile
Re: Unable to compile and package under Debian Sid (ufoai~svn11811)
« Reply #3 on: September 20, 2007, 01:52:01 am »
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: [Select]
#define HAVE_CURL 1
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: [Select]
#define CURL_STATICLIBMaybe 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

Offline meden

  • Cannon Fodder
  • **
  • Posts: 4
    • View Profile
Re: Unable to compile and package under Debian Sid (ufoai~svn11811) [FIXED]
« Reply #4 on: September 22, 2007, 07:23:37 pm »
svn version 11913 builds and runs!  Great work, thank you!