On Thu, 28 Jun 2007 10:10:25 -0400
Daniel Macks <[EMAIL PROTECTED]> wrote:

> On Thu, Jun 28, 2007 at 09:45:32AM -0400, Kevin Horton wrote:
> > I'm trying to make a package for gpstk, on PPC on 10.4:
> > 
> > http://gpstk.sourceforge.net/

> That symbol is indeed from the gettext lib, but notice that no -lintl
> flag is being passed to the linker there. Look at the output of
> ./configure for gettext or intl detection and look at the contents of
> the config.log file for those same tests to see if there's some the
> "use -lintl" test that is failing for some weird reason. Try also
> builddepending on gettext-bin and gettext-tools.
> 
> As a last resort, you could:
> 
>   SetLDFLAGS: -lintl
> 

Thank you Dan and JF for the advice.

This program uses autoconf, and the config.log was incomprehensible to me.  A 
BuildDepends on gettext-bin and gettext-tools did not solve the problem.  But, 
SetLDFLAGS did the trick for this specific failure.

The compile attempt gets much further now, but it eventually fails with:

 g++ -DPACKAGE_NAME=\"GPSTK\" -DPACKAGE_TARNAME=\"gpstk\" 
-DPACKAGE_VERSION=\"1.2\" "-DPACKAGE_STRING=\"GPSTK 1.2\"" 
-DPACKAGE_BUGREPORT=\"http://www.gpstk.org/\"; -DPACKAGE=\"gpstk\" 
-DVERSION=\"1.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 
-DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_DIRENT_H=1 -DSTDC_HEADERS=1 
-DHAVE_LIBINTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 
-DHAVE_STRINGS_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_TIME_H=1 
-DHAVE_SYS_TIMEB_H=1 -DHAVE_UNISTD_H=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 
-DTIME_WITH_SYS_TIME=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_STDLIB_H=1 
-DHAVE_REALLOC=1 -DHAVE_BZERO=1 -DHAVE_FLOOR=1 -DHAVE_FTIME=1 -DHAVE_GETCWD=1 
-DHAVE_GETTIMEOFDAY=1 -DHAVE_MEMSET=1 -DHAVE_MKDIR=1 -DHAVE_MODF=1 -DHAVE_POW=1 
-DHAVE_REGCOMP=1 -DHAVE_SQRT=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL
 =1 -I. -I. -I../../src -I/sw/include -g -O2 -MT ScreenProc.lo -MD -MP -MF 
.deps/ScreenProc.Tpo -c mdpscreen/ScreenProc.cpp  -fno-common -DPIC -o 
.libs/ScreenProc.o
mdpscreen/ScreenProc.hpp:21: error: conflicting declaration 'typedef int attr_t'
/sw/include/curses.h:292: error: 'attr_t' has a previous declaration as 
'typedef chtype attr_t'
make[2]: *** [ScreenProc.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
### execution of /var/tmp/tmp.1.wSoLE8 failed, exit code 2

I see this error seems to be related to curses.  I have libnurses5-dev 
installed.  I tried switching to ncurses-dev, but this gave a similar failure:

 g++ -DPACKAGE_NAME=\"GPSTK\" -DPACKAGE_TARNAME=\"gpstk\" 
-DPACKAGE_VERSION=\"1.2\" "-DPACKAGE_STRING=\"GPSTK 1.2\"" 
-DPACKAGE_BUGREPORT=\"http://www.gpstk.org/\"; -DPACKAGE=\"gpstk\" 
-DVERSION=\"1.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 
-DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_DIRENT_H=1 -DSTDC_HEADERS=1 
-DHAVE_LIBINTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 
-DHAVE_STRINGS_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_TIME_H=1 
-DHAVE_SYS_TIMEB_H=1 -DHAVE_UNISTD_H=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 
-DTIME_WITH_SYS_TIME=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_STDLIB_H=1 
-DHAVE_REALLOC=1 -DHAVE_BZERO=1 -DHAVE_FLOOR=1 -DHAVE_FTIME=1 -DHAVE_GETCWD=1 
-DHAVE_GETTIMEOFDAY=1 -DHAVE_MEMSET=1 -DHAVE_MKDIR=1 -DHAVE_MODF=1 -DHAVE_POW=1 
-DHAVE_REGCOMP=1 -DHAVE_SQRT=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL
 =1 -I. -I. -I../../src -I/sw/include -g -O2 -MT ScreenProc.lo -MD -MP -MF 
.deps/ScreenProc.Tpo -c mdpscreen/ScreenProc.cpp  -fno-common -DPIC -o 
.libs/ScreenProc.o
mdpscreen/ScreenProc.hpp:21: error: conflicting declaration 'typedef int attr_t'
/usr/include/curses.h:285: error: 'attr_t' has a previous declaration as 
'typedef chtype attr_t'
make[2]: *** [ScreenProc.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
### execution of /var/tmp/tmp.1.AtDfMO failed, exit code 2

Now what?

Kevin

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Fink-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to