Menu

#3 FTBFS on cygwin

open
nobody
5
2015-02-19
2004-09-10
Anonymous
No

From: Hilmar Preusse <hille42@web.de>
Version: ytnef-2.5

preusse@preusse ~/ytnef-2.5 $ ./configure
checking for a BSD-compatible install...
/usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking whether byte ordering is bigendian... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for memset... yes
checking for strstr... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/ytnef/Makefile
config.status: creating src/ytnefprint/Makefile
config.status: creating config.h
config.status: executing depfiles commands
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/ytnef/Makefile
config.status: creating src/ytnefprint/Makefile
config.status: creating ytnef.spec
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
preusse@preusse ~/ytnef-2.5 $

seems OK.

preusse@preusse ~/ytnef-2.5 $ make
cd . && /bin/bash ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
make all-recursive
make[1]: Entering directory `/home/preusse/ytnef-2.5'
Making all in src
make[2]: Entering directory `/home/preusse/ytnef-2.5/src'
Making all in ytnef
make[3]: Entering directory
`/home/preusse/ytnef-2.5/src/ytnef'
source='main.c' object='main.o' libtool=no \
depfile='.deps/main.Po' tmpdepfile='.deps/main.TPo' \
depmode=gcc3 /bin/bash ../../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -g -O2 -c `test
-f 'main.c' || echo './'
`main.c
main.c:4:19: ytnef.h: No such file or directory

******* Hmmm ***********

main.c:14: error: parse error before "TNEF"
main.c:15: error: parse error before "TNEF"
main.c:16: error: parse error before "TNEF"
main.c:17: error: parse error before "TNEF"
main.c: In function `main':
main.c:51: error: `TNEFStruct' undeclared (first use in
this function)
main.c:51: error: (Each undeclared identifier is
reported only once
main.c:51: error: for each function it appears in.)
main.c:51: error: parse error before "TNEF"
main.c:102: error: `TNEF' undeclared (first use in this
function)
main.c: At top level:
main.c:113: error: parse error before "TNEF"
main.c: In function `ProcessTNEF':
main.c:115: error: `variableLength' undeclared (first
use in this function)
main.c:115: error: `filename' undeclared (first use in
this function)
main.c:116: error: `filedata' undeclared (first use in
this function)
main.c:117: error: `Attachment' undeclared (first use
in this function)
main.c:117: error: `p' undeclared (first use in this
function)
main.c:128: error: `TNEF' undeclared (first use in this
function)
main.c:141: error: `PT_STRING8' undeclared (first use
in this function)
main.c:141: error: `MAPI_UNDEFINED' undeclared (first
use in this function)
main.c:155: error: `PT_BINARY' undeclared (first use in
this function)
main.c:155: error: `PR_RTF_COMPRESSED' undeclared
(first use in this function)
main.c:158: error: parse error before "buf"
main.c:159: error: `buf' undeclared (first use in this
function)
main.c:174: error: `BYTE' undeclared (first use in this
function)
main.c:196: error: `PT_OBJECT' undeclared (first use in
this function)
main.c:196: error: `PR_ATTACH_DATA_OBJ' undeclared
(first use in this function)
main.c:211: error: `TNEFStruct' undeclared (first use
in this function)
main.c:211: error: parse error before "emb_tnef"
main.c:212: error: `DWORD' undeclared (first use in
this function)
main.c:213: error: `signature' undeclared (first use in
this function)
main.c:216: error: `emb_tnef' undeclared (first use in
this function)
main.c:226: error: parse error before "emb_tnef"
In file included from main.c:287:
utility.c: At top level:
utility.c:1: error: parse error before "TNEF"
utility.c: In function `fprintProperty':
utility.c:2: error: `variableLength' undeclared (first
use in this function)
utility.c:2: error: `vl' undeclared (first use in this
function)
utility.c:3: error: `TNEF' undeclared (first use in
this function)
utility.c:3: error: `PROPTYPE' undeclared (first use in
this function)
utility.c:3: error: `PROPID' undeclared (first use in
this function)
utility.c:3: error: `MAPI_UNDEFINED' undeclared (first
use in this function)
utility.c:7: error: `FPTR' undeclared (first use in
this function)
utility.c:7: error: `TEXT' undeclared (first use in
this function)
utility.c: At top level:
utility.c:12: error: parse error before "TNEF"
utility.c: In function `fprintUserProp':
utility.c:13: error: `variableLength' undeclared (first
use in this function)
utility.c:13: error: `vl' undeclared (first use in this
function)
utility.c:14: error: `TNEF' undeclared (first use in
this function)
utility.c:14: error: `PROPTYPE' undeclared (first use
in this function)
utility.c:14: error: `PROPID' undeclared (first use in
this function)
utility.c:14: error: `MAPI_UNDEFINED' undeclared (first
use in this function)
utility.c:18: error: `FPTR' undeclared (first use in
this function)
utility.c:18: error: `TEXT' undeclared (first use in
this function)
utility.c: At top level:
utility.c:23: error: parse error before "variableLength"
utility.c: In function `quotedfprint':
utility.c:26: error: `VL' undeclared (first use in this
function)
utility.c:28: error: `FPTR' undeclared (first use in
this function)
utility.c: At top level:
utility.c:36: error: parse error before "variableLength"
utility.c: In function `Cstylefprint':
utility.c:39: error: `VL' undeclared (first use in this
function)
utility.c:41: error: `FPTR' undeclared (first use in
this function)
utility.c: At top level:
utility.c:56: error: parse error before "variableLength"
utility.c: In function `PrintRTF':
utility.c:65: error: `VL' undeclared (first use in this
function)
utility.c:83: error: `fptr' undeclared (first use in
this function)
In file included from main.c:288:
vcal.c: At top level:
vcal.c:109: error: parse error before "TNEFStruct"
vcal.c: In function `PrintRrule':
vcal.c:110: error: `variableLength' undeclared (first
use in this function)
vcal.c:110: error: `filename' undeclared (first use in
this function)
vcal.c:112: error: `size' undeclared (first use in this
function)
vcal.c:116: error: `fptr' undeclared (first use in this
function)
vcal.c:118: error: `recur_data' undeclared (first use
in this function)
vcal.c:123: error: `TNEF' undeclared (first use in this
function)
vcal.c:124: error: `PT_I2' undeclared (first use in
this function)
vcal.c:124: error: `MAPI_UNDEFINED' undeclared (first
use in this function)
vcal.c: At top level:
vcal.c:182: error: parse error before "TNEF"
vcal.c: In function `SaveVCalendar':
vcal.c:184: error: `variableLength' undeclared (first
use in this function)
vcal.c:184: error: `filename' undeclared (first use in
this function)
vcal.c:188: error: `DDWORD' undeclared (first use in
this function)
vcal.c:188: error: `ddword_ptr' undeclared (first use
in this function)
vcal.c:189: error: parse error before "ddword_val"
vcal.c:190: error: `dtr' undeclared (first use in this
function)
vcal.c:205: error: `TNEF' undeclared (first use in this
function)
vcal.c:235: error: `PT_BINARY' undeclared (first use in
this function)
vcal.c:235: error: `MAPI_UNDEFINED' undeclared (first
use in this function)
vcal.c:252: error: `PT_LONG' undeclared (first use in
this function)
vcal.c:253: error: parse error before ')' token
vcal.c:257: error: `PR_SENDER_SEARCH_KEY' undeclared
(first use in this function
)
vcal.c:271: error: `PT_STRING8' undeclared (first use
in this function)
vcal.c:340: error: `PR_CONVERSATION_TOPIC' undeclared
(first use in this functio
n)
vcal.c:349: error: `PR_RTF_COMPRESSED' undeclared
(first use in this function)
vcal.c:351: error: parse error before "buf"
vcal.c:352: error: `buf' undeclared (first use in this
function)
vcal.c:375: error: `PT_SYSTIME' undeclared (first use
in this function)
vcal.c:383: error: `thedate' undeclared (first use in
this function)
vcal.c:417: error: `PT_BOOLEAN' undeclared (first use
in this function)
vcal.c:418: error: parse error before ')' token
vcal.c:419: error: `ddword_val' undeclared (first use
in this function)
vcal.c:419: error: `BYTE' undeclared (first use in this
function)
vcal.c:419: error: parse error before ')' token
In file included from main.c:289:
vcard.c: At top level:
vcard.c:1: error: parse error before "TNEF"
vcard.c: In function `SaveVCard':
vcard.c:4: error: `variableLength' undeclared (first
use in this function)
vcard.c:4: error: `vl' undeclared (first use in this
function)
vcard.c:5: error: `pobox' undeclared (first use in this
function)
vcard.c:5: error: `street' undeclared (first use in
this function)
vcard.c:5: error: `city' undeclared (first use in this
function)
vcard.c:5: error: `state' undeclared (first use in this
function)
vcard.c:5: error: `zip' undeclared (first use in this
function)
vcard.c:5: error: `country' undeclared (first use in
this function)
vcard.c:6: error: `dtr' undeclared (first use in this
function)
vcard.c:6: error: parse error before "thedate"
vcard.c:9: error: `TNEF' undeclared (first use in this
function)
vcard.c:9: error: `PT_STRING8' undeclared (first use in
this function)
vcard.c:9: error: `PR_DISPLAY_NAME' undeclared (first
use in this function)
vcard.c:9: error: `MAPI_UNDEFINED' undeclared (first
use in this function)
vcard.c:10: error: `PR_COMPANY_NAME' undeclared (first
use in this function)
vcard.c:53: error: `PR_NICKNAME' undeclared (first use
in this function)
vcard.c:55: error: `PR_SPOUSE_NAME' undeclared (first
use in this function)
vcard.c:56: error: `PR_MANAGER_NAME' undeclared (first
use in this function)
vcard.c:57: error: `PR_ASSISTANT' undeclared (first use
in this function)
vcard.c:65: error: `PR_DEPARTMENT_NAME' undeclared
(first use in this function)
vcard.c:73: error: `PR_OFFICE_LOCATION' undeclared
(first use in this function)
vcard.c:74: error: `PR_TITLE' undeclared (first use in
this function)
vcard.c:75: error: `PR_PROFESSION' undeclared (first
use in this function)
vcard.c:76: error: `PR_BODY' undeclared (first use in
this function)
vcard.c:86: error: `PR_POST_OFFICE_BOX' undeclared
(first use in this function)
vcard.c:89: error: `PR_STREET_ADDRESS' undeclared
(first use in this function)
vcard.c:92: error: `PR_LOCALITY' undeclared (first use
in this function)
vcard.c:95: error: `PR_STATE_OR_PROVINCE' undeclared
(first use in this function
)
vcard.c:98: error: `PR_POSTAL_CODE' undeclared (first
use in this function)
vcard.c:101: error: `PR_COUNTRY' undeclared (first use
in this function)
vcard.c:139: error: `PR_HOME_ADDRESS_POST_OFFICE_BOX'
undeclared (first use in t
his function)
vcard.c:142: error: `PR_HOME_ADDRESS_STREET' undeclared
(first use in this funct
ion)
vcard.c:145: error: `PR_HOME_ADDRESS_CITY' undeclared
(first use in this functio
n)
vcard.c:148: error: `PR_HOME_ADDRESS_STATE_OR_PROVINCE'
undeclared (first use in
this function)
vcard.c:151: error: `PR_HOME_ADDRESS_POSTAL_CODE'
undeclared (first use in this
function)
vcard.c:154: error: `PR_HOME_ADDRESS_COUNTRY'
undeclared (first use in this func
tion)
vcard.c:192: error: `PR_OTHER_ADDRESS_POST_OFFICE_BOX'
undeclared (first use in
this function)
vcard.c:195: error: `PR_OTHER_ADDRESS_STREET'
undeclared (first use in this func
tion)
vcard.c:198: error: `PR_OTHER_ADDRESS_CITY' undeclared
(first use in this functi
on)
vcard.c:201: error:
`PR_OTHER_ADDRESS_STATE_OR_PROVINCE' undeclared (first
use i
n this function)
vcard.c:204: error: `PR_OTHER_ADDRESS_POSTAL_CODE'
undeclared (first use in this
function)
vcard.c:207: error: `PR_OTHER_ADDRESS_COUNTRY'
undeclared (first use in this fun
ction)
vcard.c:239: error: `PR_CALLBACK_TELEPHONE_NUMBER'
undeclared (first use in this
function)
vcard.c:240: error: `PR_PRIMARY_TELEPHONE_NUMBER'
undeclared (first use in this
function)
vcard.c:241: error: `PR_MOBILE_TELEPHONE_NUMBER'
undeclared (first use in this f
unction)
vcard.c:242: error: `PR_RADIO_TELEPHONE_NUMBER'
undeclared (first use in this fu
nction)
vcard.c:243: error: `PR_CAR_TELEPHONE_NUMBER'
undeclared (first use in this func
tion)
vcard.c:244: error: `PR_OTHER_TELEPHONE_NUMBER'
undeclared (first use in this fu
nction)
vcard.c:245: error: `PR_PAGER_TELEPHONE_NUMBER'
undeclared (first use in this fu
nction)
vcard.c:246: error: `PR_TELEX_NUMBER' undeclared (first
use in this function)
vcard.c:247: error: `PR_ISDN_NUMBER' undeclared (first
use in this function)
vcard.c:248: error: `PR_HOME2_TELEPHONE_NUMBER'
undeclared (first use in this fu
nction)
vcard.c:249: error: `PR_TTYTDD_PHONE_NUMBER' undeclared
(first use in this funct
ion)
vcard.c:250: error: `PR_HOME_TELEPHONE_NUMBER'
undeclared (first use in this fun
ction)
vcard.c:251: error: `PR_ASSISTANT_TELEPHONE_NUMBER'
undeclared (first use in thi
s function)
vcard.c:252: error: `PR_COMPANY_MAIN_PHONE_NUMBER'
undeclared (first use in this
function)
vcard.c:253: error: `PR_BUSINESS_TELEPHONE_NUMBER'
undeclared (first use in this
function)
vcard.c:254: error: `PR_BUSINESS2_TELEPHONE_NUMBER'
undeclared (first use in thi
s function)
vcard.c:255: error: `PR_PRIMARY_FAX_NUMBER' undeclared
(first use in this functi
on)
vcard.c:256: error: `PR_BUSINESS_FAX_NUMBER' undeclared
(first use in this funct
ion)
vcard.c:257: error: `PR_HOME_FAX_NUMBER' undeclared
(first use in this function)

vcard.c:283: error: `PR_BUSINESS_HOME_PAGE' undeclared
(first use in this functi
on)
vcard.c:289: error: `PT_SYSTIME' undeclared (first use
in this function)
vcard.c:289: error: `PR_BIRTHDAY' undeclared (first use
in this function)
vcard.c:291: error: `thedate' undeclared (first use in
this function)
vcard.c:296: error: `PR_WEDDING_ANNIVERSARY' undeclared
(first use in this funct
ion)
In file included from main.c:290:
vtask.c: At top level:
vtask.c:1: error: parse error before "TNEF"
vtask.c: In function `SaveVTask':
vtask.c:2: error: `variableLength' undeclared (first
use in this function)
vtask.c:2: error: `vl' undeclared (first use in this
function)
vtask.c:3: error: `filename' undeclared (first use in
this function)
vtask.c:7: error: `dtr' undeclared (first use in this
function)
vtask.c:7: error: parse error before "thedate"
vtask.c:9: error: `DDWORD' undeclared (first use in
this function)
vtask.c:9: error: `ddword_ptr' undeclared (first use in
this function)
vtask.c:10: error: parse error before "ddword_val"
vtask.c:12: error: `TNEF' undeclared (first use in this
function)
vtask.c:12: error: `PT_STRING8' undeclared (first use
in this function)
vtask.c:12: error: `PR_CONVERSATION_TOPIC' undeclared
(first use in this functio
n)
vtask.c:14: error: `MAPI_UNDEFINED' undeclared (first
use in this function)
vtask.c:54: error: `PR_DISPLAY_TO' undeclared (first
use in this function)
vtask.c:85: error: `PT_SYSTIME' undeclared (first use
in this function)
vtask.c:85: error: `PR_CREATION_TIME' undeclared (first
use in this function)
vtask.c:89: error: `thedate' undeclared (first use in
this function)
vtask.c:104: error: `PR_LAST_MODIFICATION_TIME'
undeclared (first use in this fu
nction)
vtask.c:114: error: `PT_BOOLEAN' undeclared (first use
in this function)
vtask.c:117: error: parse error before ')' token
vtask.c:118: error: `ddword_val' undeclared (first use
in this function)
vtask.c:118: error: `BYTE' undeclared (first use in
this function)
vtask.c:118: error: parse error before ')' token
make[3]: *** [main.o] Error 1
make[3]: Leaving directory
`/home/preusse/ytnef-2.5/src/ytnef'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/preusse/ytnef-2.5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/preusse/ytnef-2.5'
make: *** [all] Error 2
preusse@preusse ~/ytnef-2.5 $

Thanks for response.

Regards,
Hilmar

Discussion

  • Randall Hand

    Randall Hand - 2004-09-10

    Logged In: YES
    user_id=677608

    You need to download & install ytneflib first.

     
  • Nobody/Anonymous

    Logged In: NO

    Thanks for the hint.

    1. Why does configure not tell me, that there a necessary
    library
    missing?

    2.
    preusse@preusse ~/ytnef-2.5 $ grep -r libytnef *
    ytnef.spec:Requires: libytnef >= 1.4
    ytnef.spec.in:Requires: libytnef >= 1.4
    preusse@preusse ~/ytnef-2.5 $ grep -r ytneflib *
    preusse@preusse ~/ytnef-2.5 $

    How about mentioning that in the README?

    3. I've compiled now libytnef and installed it into /usr/local
    (default). ytnef now compiles, but:

    preusse@preusse ~/ytnef-2.5 $ make
    <snip>
    gcc -g -O2 -o ytnef.exe main.o -lytnef
    /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../../i686-pc-cygwin/bin/ld:
    cannot find -lytnef
    collect2: ld returned 1 exit status
    make[3]: *** [ytnef.exe] Error 1
    make[3]: Leaving directory `/home/preusse/ytnef-2.5/src/ytnef'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/home/preusse/ytnef-2.5/src'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/preusse/ytnef-2.5'
    make: *** [all] Error 2
    preusse@preusse ~/ytnef-2.5 $

    preusse@preusse ~/ytnef-2.5 $ ll /usr/local/lib/
    total 113
    -rw-r--r-- 1 preusse None 114308 Sep 10 17:40
    libytnef.a
    -rwxr-xr-x 1 preusse None 656 Sep 10 17:40
    libytnef.la*
    preusse@preusse ~/ytnef-2.5 $

    The linker is missing the path -L/usr/local/. I've no clue,
    if this is
    a bug.

    Kind Regards,
    Hilmar

     
  • Randall Hand

    Randall Hand - 2004-09-10

    Logged In: YES
    user_id=677608

    Well, configure doesn't tell you because I'm not familiar
    enough with it to write the m4 thing to make it check for it.

    As for the READMe, I thought it was already there. I see
    now it wasn't, and just added it to CVS.

    As for the linker screwing up, it might be a cygwin issue.
    I've not used cygwin in a long time, so I can't say for
    sure. You might want to check your environment settings,
    variables like LD_LIBRARY_PATH and such might be interfering
    with it also.

     
  • Nobody/Anonymous

    Logged In: NO

    Hi,

    Thanks for response!

    > Well, configure doesn't tell you because I'm not familiar
    > enough with it to write the m4 thing to make it check for it.
    >
    Well, I'm not familiar with m4 either. Maybe I'll have a look at
    that, but don't take that too serious.

    > As for the linker screwing up, it might be a cygwin issue.
    >
    Hmm. Your call to that command is:
    gcc -g -O2 -o ytnef.exe main.o -lytnef
    it fails. If I cd to src/ytnef and:

    preusse@preusse ~/tnef/ytnef-2.5/src/ytnef $ gcc -g -O2
    -o ytnef.exe main.o -L/usr/local/lib -lytnef
    preusse@preusse ~/tnef/ytnef-2.5/src/ytnef $ ./ytnef
    You must specify files to parse
    <snip>
    Send bug reports to yerase <at> yeraze <dot> com
    preusse@preusse ~/tnef/ytnef-2.5/src/ytnef $

    > You might want to check your environment settings,
    > variables like LD_LIBRARY_PATH and such might be
    > interfering with it also.
    >
    LD_LIBRARY_PATH is IIRC evaluated by the runtime linker,
    not the compile time linker.

    Regards,
    Hilmar

     
  • Nobody/Anonymous

    Logged In: NO

    > Well, configure doesn't tell you because I'm not familiar
    > enough with it to write the m4 thing to make it check for it.
    >
    Small patch to be applied to configure.ac: just include the line
    AC_CHECK_HEADERS(ytnef.h,,AC_MSG_ERROR([$your_Message_here]),)
    e.g. after "AC_CHECK_HEADERS([stdlib.h string.h])".

    Unfortunately I don't have any clue, which auto* tools you
    have to call, after these modifications.

    Regards,
    Hilmar

     

Log in to post a comment.

MongoDB Logo MongoDB