Ticket #99 (closed defect: fixed)

Opened 10 years ago

Last modified 10 years ago

make zoo_loader.cgi : version.h not in trunk

Reported by: stetou Owned by:
Priority: blocker Milestone:
Component: zoo-kernel Version:
Keywords: Cc:

Description

From ./zoo-kernel/zoo_service_loader.c:46: service.h:84:22: erreur: version.h : Aucun fichier ou dossier de ce type

Line 84 of ./zoo-kernel/service.h #include "version.h"

version.h doesn't exist in ./zoo-kernel

Result: zoo_loader.cgi is not created

Change History

  Changed 10 years ago by djay

Please, can you try to run make clean before running make again and confirm this solves your issue ?

  Changed 10 years ago by stetou

Still have the error, version.h still not in trunk after svn update

  Changed 10 years ago by djay

Sorry, indeed there is no version.h in the trunk tree, it is dynamically generated when you run make (ref.). Nevertheless, I should invite you to first run configure to make sure that the Makefile is up-to-date, then everything should run smoothly, byt running make clean and then make.

  Changed 10 years ago by stetou

I did run make clean.....I think.....I'm not familiar with all these linux compilation stuff, I'm learning a lot....Here is my script maybe you'll see what I'm doing wrong.... Again, I'm having this problem since I'm using trunk. I didn't have this problem with tag release 1.3.0

#First of all, compile the cgic library providen in the SVN source tree cd ./src/zoo-trunk/thirds/cgic206 make clean make

#compile cd ../../zoo-project/zoo-kernel autoconf ./configure --with-python=/usr

#install make clean make zoo_loader.cgi

thanks!

  Changed 10 years ago by djay

I would like you to try the command svnversion, indeed as you can see on line 31 in the Makefile.in there is a call to this tool (ref).

I suppose that there is issue in calling this tool.

In any case, you can still try to run the following command:

make version.h

Which should produce the requested file.

  Changed 10 years ago by stetou

I ran this command and it created version.h echo "#define ZOO_VERSION \"svnversion\"" > version.h

Here is the content of version.h #define ZOO_VERSION "488"

So thecommand is good, but there is a problem when it is called during make thanks for your help

follow-up: ↓ 8   Changed 10 years ago by jlarouche

From Trunk r489, in the Zoo-Kernel Makefile.in, version.h is only called if you do a simple make or make version.h. It is not included when you're only doing make zoo_loader.cgi.

Adding version.h to the make deps of zoo_loader.cgi would fix this issue.

in reply to: ↑ 7   Changed 10 years ago by djay

  • status changed from new to closed
  • resolution set to fixed

Replying to jlarouche:

From Trunk r489, in the Zoo-Kernel Makefile.in, version.h is only called if you do a simple make or make version.h. It is not included when you're only doing make zoo_loader.cgi.

Adding version.h to the make deps of zoo_loader.cgi would fix this issue.

Thanks for the feedbacks.

Modifications applied in r490 .

Note: See TracTickets for help on using tickets.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png