trouble in .ycp module compilation
hi, i am trying to compile the yast2 package (yast2-2.9.75), when i try to make, i got the following errors: make[3]: Entering directory `yast2-2.9.75/library/types/src' /usr/bin/ycpc -c -M. -I. -q Hostname.ycp Hostname.ycp:15 [Interpreter] Loading module 'IP' failed Import.cc(import):100 [libycp] No matching component found Hostname.ycp:15 [Parser] Can't load module 'IP'. i read the ycpc code, and notice it tries to import 'IP' module, but failed. however, the IP.ycp is compiled OK and IP.ybc is sitting right in the same directory. it seems to be the problem of Y2ComponentBroker, and could be related to the YaST environment not properly setup (I have to admit i am using RH9 to do the compilation). one thing strange is that genericfrontend.cc in yast2-core contains a 'main' routine, when tries to link ycpc with liby2, i got the duplicate 'main' routine error, so i have to remove the 'main' routine in genericfrontend.cc to compile ycpc. wonder if someone here could give me some hint on that, or point me to some YaST2 development document (i searched the web but found almost nothing useful). Thanks in advance,
On Saturday 20 November 2004 05:04, Pengcheng Zou wrote:
hi,
i am trying to compile the yast2 package (yast2-2.9.75), when i try to make, i got the following errors:
make[3]: Entering directory `yast2-2.9.75/library/types/src' /usr/bin/ycpc -c -M. -I. -q Hostname.ycp Hostname.ycp:15 [Interpreter] Loading module 'IP' failed Import.cc(import):100 [libycp] No matching component found Hostname.ycp:15 [Parser] Can't load module 'IP'.
...
wonder if someone here could give me some hint on that, or point me to some YaST2 development document (i searched the web but found almost nothing useful).
Try SuSE's build system, package 'build'. It builds packages in a chrooted environment, thereby protecting your current environment, and loads rpms if they are needed for the build. I used this to build several needed rpms just by using the LiveDVD (had to build a few 9.2 packages on 9.1 first). Cheers, Leen
participants (2)
-
Leendert Meyer
-
Pengcheng Zou