one more on ‘mkpkg -p nmisc…’
Paula R. T. Coelho wrote on Sep 28, 2006
hi there, i'm trying to compile some packages under suse 10.1.
when i get to nmisc, i get:
softools> mkpkg -p nmisc
Library libpkg.a is up to date
Object x_imexam.o is up to date
xc -Nz -p nmisc x_imexam.o libpkg.a -lds -lncar -lgks -lllsq -lxtools -lcurfit -lgsurfit -lnlfit -liminterp -o xx_imexam.e
move `xx_imexam.e' to `nmiscbin$x_imexam.e'
Subdirectory src/xregister is up to date
xc -c -w -p nmisc t_ccdmask.x t_fixpix.x t_text2mask.x t_mask2text.x
t_ccdmask.x:
t_ccdmask:
cm_mask:
cm_interp:
cm_interp1:
t_fixpix.x:
t_fixpix:
fp_narrow:
t_text2mask.x:
t_text2mask:
t_mask2text.x:
t_mask2text:
t_ccdmask.f:
tccdmk:
cmmask:
cmintp:
cmint1:
t_ccdmask.c:216: error: conflicting types for â
t_ccdmask.c:80: error: previous declaration of â was here
ar r /iraf/extern/nmisc/src/libpkg.a rngranges.o spfgraph.o stfgraph.o stfmeasure.o stfprofile.o t_specfocus.o t_starfocus.o fpfixpix.o t_ccdmask.o t_fixpix.o t_text2mask.o t_mask2text.o
ar: t_ccdmask.o: No such file or directory
ranlib libpkg.a
Updated 12 files in libpkg.a
Object x_nmisc.o is up to date
xc -Nz -p nmisc x_nmisc.o libpkg.a -lds -lncar -lgks -lllsq -lxtools -lcurfit -lgsurfit -lnlfit -liminterp -o xx_nmisc.e
x_nmisc.o: In function `sysruk_':
x_nmisc.c:(.text+0x27a): undefined reference to `tfixpx_'
x_nmisc.c:(.text+0x2a1): undefined reference to `tccdmk_'
x_nmisc.c:(.text+0x2c8): undefined reference to `tmaskt_'
x_nmisc.c:(.text+0x2ef): undefined reference to `tpsfme_'
x_nmisc.c:(.text+0x316): undefined reference to `tspecs_'
x_nmisc.c:(.text+0x33b): undefined reference to `tstars_'
x_nmisc.c:(.text+0x35f): undefined reference to `ttextk_'
collect2: ld returned 1 exit status
Warning, mkpkg line 8: module `relink' not found or returned error
move `xx_nmisc.e' to `nmiscbin$x_nmisc.e'
$move: file `xx_nmisc.e' not found
Warning, mkpkg line 34: error moving file xx_nmisc.e
Warning, mkpkg line 9: module `install' not found or returned error
Warning, mkpkg line 3: module `update@src' not found or returned error
what am i missing? i tried adding ' -p noao ' too, didn't work either.
thx
paula
when i get to nmisc, i get:
softools> mkpkg -p nmisc
Library libpkg.a is up to date
Object x_imexam.o is up to date
xc -Nz -p nmisc x_imexam.o libpkg.a -lds -lncar -lgks -lllsq -lxtools -lcurfit -lgsurfit -lnlfit -liminterp -o xx_imexam.e
move `xx_imexam.e' to `nmiscbin$x_imexam.e'
Subdirectory src/xregister is up to date
xc -c -w -p nmisc t_ccdmask.x t_fixpix.x t_text2mask.x t_mask2text.x
t_ccdmask.x:
t_ccdmask:
cm_mask:
cm_interp:
cm_interp1:
t_fixpix.x:
t_fixpix:
fp_narrow:
t_text2mask.x:
t_text2mask:
t_mask2text.x:
t_mask2text:
t_ccdmask.f:
tccdmk:
cmmask:
cmintp:
cmint1:
t_ccdmask.c:216: error: conflicting types for â
t_ccdmask.c:80: error: previous declaration of â was here
ar r /iraf/extern/nmisc/src/libpkg.a rngranges.o spfgraph.o stfgraph.o stfmeasure.o stfprofile.o t_specfocus.o t_starfocus.o fpfixpix.o t_ccdmask.o t_fixpix.o t_text2mask.o t_mask2text.o
ar: t_ccdmask.o: No such file or directory
ranlib libpkg.a
Updated 12 files in libpkg.a
Object x_nmisc.o is up to date
xc -Nz -p nmisc x_nmisc.o libpkg.a -lds -lncar -lgks -lllsq -lxtools -lcurfit -lgsurfit -lnlfit -liminterp -o xx_nmisc.e
x_nmisc.o: In function `sysruk_':
x_nmisc.c:(.text+0x27a): undefined reference to `tfixpx_'
x_nmisc.c:(.text+0x2a1): undefined reference to `tccdmk_'
x_nmisc.c:(.text+0x2c8): undefined reference to `tmaskt_'
x_nmisc.c:(.text+0x2ef): undefined reference to `tpsfme_'
x_nmisc.c:(.text+0x316): undefined reference to `tspecs_'
x_nmisc.c:(.text+0x33b): undefined reference to `tstars_'
x_nmisc.c:(.text+0x35f): undefined reference to `ttextk_'
collect2: ld returned 1 exit status
Warning, mkpkg line 8: module `relink' not found or returned error
move `xx_nmisc.e' to `nmiscbin$x_nmisc.e'
$move: file `xx_nmisc.e' not found
Warning, mkpkg line 34: error moving file xx_nmisc.e
Warning, mkpkg line 9: module `install' not found or returned error
Warning, mkpkg line 3: module `update@src' not found or returned error
what am i missing? i tried adding ' -p noao ' too, didn't work either.
thx
paula
Mike Fitzpatrick wrote on Sep 28, 2006
This is a coding error: The call to cm_mask() on line 85 of t_ccdmask.x has 14 arguments but is declared with only 13. The fix is simply to delete the last argument (i.e. one of the two 'ngood') and try compiling again. This has been fixed in the master source but the package source hasn't been updated yet.
-Mike
P.S. FWIW, CCDMASK is also part of the IMRED.CCDRED package and in fact this version is more recent than the one in the NMISC package.
-Mike
P.S. FWIW, CCDMASK is also part of the IMRED.CCDRED package and in fact this version is more recent than the one in the NMISC package.
Paula R. T. Coelho wrote on Sep 28, 2006
thank you a lot Mike. it worked perfectly.
may i ask you the further step?
for gmisc i get:
softools> cd gmisc
softools> mkpkg -p gmisc
Subdirectory src/gdispcor is up to date
Subdirectory src/gscombine/src/generic is up to date
Subdirectory src/gscombine/src is up to date
Subdirectory src/gscombine is up to date
Subdirectory src/gstandard is up to date
Library libpkg.a is up to date
Object x_gmisc.o is up to date
xc -Nz -p gmisc x_gmisc.o libpkg.a -lsmw -lxtools -liminterp -o xx_gmisc.e
move `xx_gmisc.e' to `gmiscbin$x_gmisc.e'
$copy: cannot create output file `/iraf/extern/gmisc/bin.suse/x_gmisc.e'
$move: cannot create `/iraf/extern/gmisc/bin.suse/x_gmisc.e'
Warning, mkpkg line 19: error moving file xx_gmisc.e
Warning, mkpkg line 8: module `install' not found or returned error
Warning, mkpkg line 3: module `update@src' not found or returned error
what's the deal here?
cheers
paula
may i ask you the further step?
for gmisc i get:
softools> cd gmisc
softools> mkpkg -p gmisc
Subdirectory src/gdispcor is up to date
Subdirectory src/gscombine/src/generic is up to date
Subdirectory src/gscombine/src is up to date
Subdirectory src/gscombine is up to date
Subdirectory src/gstandard is up to date
Library libpkg.a is up to date
Object x_gmisc.o is up to date
xc -Nz -p gmisc x_gmisc.o libpkg.a -lsmw -lxtools -liminterp -o xx_gmisc.e
move `xx_gmisc.e' to `gmiscbin$x_gmisc.e'
$copy: cannot create output file `/iraf/extern/gmisc/bin.suse/x_gmisc.e'
$move: cannot create `/iraf/extern/gmisc/bin.suse/x_gmisc.e'
Warning, mkpkg line 19: error moving file xx_gmisc.e
Warning, mkpkg line 8: module `install' not found or returned error
Warning, mkpkg line 3: module `update@src' not found or returned error
what's the deal here?
cheers
paula
Mike Fitzpatrick wrote on Sep 28, 2006
You need to first do a
to set the package architecture. This will also create a 'bin.suse' directory for the binary which I suspect doesn't yet exist and so causes the error.
-Mike
mkpkg -p gmisc suseto set the package architecture. This will also create a 'bin.suse' directory for the binary which I suspect doesn't yet exist and so causes the error.
-Mike
Paula R. T. Coelho wrote on Sep 28, 2006
it worked perfectly MIke. thx a lot (once more).
Last post on Sep 28, 2006