Opened 16 years ago
Closed 16 years ago
#1349 closed defect (worksforme)
Missing 'psphotModelBackgroundReadoutNoFile' definition in headers.
| Reported by: | Michael Wood-Vasey | Owned by: | Paul Price |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | build | Version: | Development Stage |
| Severity: | normal | Keywords: | |
| Cc: |
Description
I've been having trouble for a few days with message such as the following when attempting to compile 'eam-20091201':
---
cc1: warnings being treated as errors
ppStackMatch.c: In function 'stackBackgroundModel':
ppStackMatch.c:146: warning: implicit declaration of function 'psphotModelBackgroundReadoutNoFile'
ppStackMatch.c:146: warning: initialization makes pointer from integer without a cast
make[2]: * [ppStack-ppStackMatch.o] Error 1
make[2]: * Waiting for unfinished jobs....
---
It looks like there's a function prototype missing in the headers. I haven't been able to find such a definition. Is there an un-checked-in header file sitting around in someone's directory?
If I force things through (unsetting -Werror), I get a related error in ppSub.
---
ppSubMatchPSFs.c: In function ‘subScaleKernel’:
ppSubMatchPSFs.c:161: warning: implicit declaration of function ‘pmSubtractionParamsScale’
ppSubMatchPSFs.c: In function ‘ppSubMatchPSFs’:
ppSubMatchPSFs.c:337: error: too many arguments to function ‘pmSubtractionMatch’
---
Change History (3)
comment:1 by , 16 years ago
| Resolution: | → worksforme |
|---|---|
| Status: | new → closed |
comment:2 by , 16 years ago
| Component: | ppStack → build |
|---|---|
| Resolution: | worksforme |
| Status: | closed → reopened |
I think it's now clear that this is a build configuration issue and not a specific module issue. I'm getting a 'default.darwin_x86' dir as one of the include dirs instead of the 'eam.darwin_x86' dir I'm building in.
psconfig --include is right
/Volumes/data/PS1/code/ipp-2.9 : eam : darwin_x86
But, there is still one default.darwin_x86 include directory in the built makefiles (after make distclean; psautogen):
[serenity ppStack] grep default.darwin src/Makefile
PPSTATS_CFLAGS = -D_THREAD_SAFE -DHAVE_PSDB -D_DARWIN_C_SOURCE -I/Volumes/data/PS1/code/ipp-2.9/eam.darwin_x86/include -I/Volumes/data/PS1/code/ipp-2.9/eam.darwin_x86/include/pslib -I/Volumes/data/PS1/code/ipp-2.9/eam.darwin_x86/include/mysql -I/Volumes/data/PS1/code/ipp-2.9/default.darwin_x86/include -I/Volumes/data/PS1/code/ipp-2.9/eam.darwin_x86/include/psmodules -I/usr/X11/include
I'll look into this further
comment:3 by , 16 years ago
| Resolution: | → worksforme |
|---|---|
| Status: | reopened → closed |
User error.
I had copied all of the extlib and extperl stuff to the new tree that I was installing eam-20091201 under because it's still a pain to compile CFITSIO and a couple of PERL packages. Unfortunately, this meant that I had copied pkg-config and the pointers there to the 'default.darwin_x86' versions/installations. pkg-config was then providing the include directory.
Sorry.

I remember initially having this problem when building branches/eam_branches/20091201, but I no longer do. Please retry using "psbuild -dev -rebuild -clean". The "-rebuild -clean" options are necessary following the addition of new files.