While doing a "emerge --update --newuse world" I get a compile stop with: gcc -O2 -march=athlon-mp -fomit-frame-pointer -pipe -DUSE_PAM -lpam -fPIC -Iicap -Imstore -I. -c -o lex.ical_yy.o lex.ical_yy.c icalscanner.lex: In function `ical_usebuf': icalscanner.lex:39: error: `INITIAL' undeclared (first use in this function) icalscanner.lex:39: error: (Each undeclared identifier is reported only once icalscanner.lex:39: error: for each function it appears in.) make: *** [lex.ical_yy.o] Error 1 make: *** Waiting for unfinished jobs.... gcc: -lpam: linker input file unused because linking not done gcc: -lpam: linker input file unused because linking not done !!! ERROR: dev-libs/libmcal-0.7-r5 failed. !!! Function src_compile, Line 49, Exitcode 2 !!! (no error message)
Same here :( gcc -O2 -march=pentium3 -fomit-frame-pointer -DUSE_PAM -lpam -fPIC -Iicap -Imstore -I. -c -o lex.ical_yy.o lex.ical_yy.c icalscanner.lex: In function `ical_usebuf': ...
ok, the new flex has broken things. this is the second package I've seen with this. More on it tommorow.
please emerge flex-2.5.33-r1 and then try libmcal again.
Emerged flex-2.5.33-r1 as suggested, sadly the error remained. ... creating Makefile gcc -O2 -march=pentium3 -fomit-frame-pointer -DUSE_PAM -lpam -fPIC -Iicap -Imsto re -I. -c -o mcal.o mcal.c gcc -O2 -march=pentium3 -fomit-frame-pointer -DUSE_PAM -lpam -fPIC -Iicap -Imsto re -I. -c -o datetime.o datetime.c gcc: -lpam: linker input file unused because linking not done flex icalscanner.lex gcc -O2 -march=pentium3 -fomit-frame-pointer -DUSE_PAM -lpam -fPIC -Iicap -Imsto re -I. -c -o icalroutines.o icalroutines.c gcc: -lpam: linker input file unused because linking not done gcc -O2 -march=pentium3 -fomit-frame-pointer -DUSE_PAM -lpam -fPIC -Iicap -Imsto re -I. -c -o cal_misc.o cal_misc.c gcc: -lpam: linker input file unused because linking not done gcc -O2 -march=pentium3 -fomit-frame-pointer -DUSE_PAM -lpam -fPIC -Iicap -Imsto re -I. -c -o lex.ical_yy.o lex.ical_yy.c icalscanner.lex: In function `ical_usebuf': icalscanner.lex:39: error: `INITIAL' undeclared (first use in this function) icalscanner.lex:39: error: (Each undeclared identifier is reported only once icalscanner.lex:39: error: for each function it appears in.) make: *** [lex.ical_yy.o] Error 1 make: *** Waiting for unfinished jobs.... gcc: -lpam: linker input file unused because linking not done !!! ERROR: dev-libs/libmcal-0.7-r5 failed. !!! Function src_compile, Line 49, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message.
base-system: your new flex is broken: 2.5.31-r2 and 2.5.33-r1 generate mis-ordered code for libmcal. They place the definition of INITIAL of after the first usage of it.
*** Bug 124690 has been marked as a duplicate of this bug. ***
uhh, flex doesnt generate icalscanner.lex, it comes with libmcal icalscanner.lex is broken, move the function down after the flex code (see the debian patchset if you need more info)
Created attachment 81203 [details] Working icalscanner.lex icalscanner.lex - for users who need "libmcal" to compile PHP +mcal (for example). This file worked for me (using FEATURES="keeptemp keepwork" emerge --oneshot libmcal). Who tested this release before marking it as "stable"?!
It compiled for me, although I am getting what looks like an error message when it tries to move temp/environment: * You should start adding users to your calendar. ( e.g. htpasswd -c /etc/mpasswd username ) >>> Regenerating /etc/ld.so.cache... >>> dev-libs/libmcal-0.7-r5 merged. mv: cannot stat `/var/tmp/portage/libmcal-0.7-r5/temp/environment': No such file or directory >>> clean: No packages selected for removal. >>> Auto-cleaning packages ... >>> No outdated packages were found on your system.
(In reply to comment #8) > Created an attachment (id=81203) [edit] > Working icalscanner.lex > > icalscanner.lex - for users who need "libmcal" to compile PHP +mcal (for > example). > > This file worked for me (using FEATURES="keeptemp keepwork" emerge --oneshot > libmcal). Who tested this release before marking it as "stable"?! > Hmm, my subsequent compile of dev-lang/php-4.4.1-r3 gave me this: /usr/lib/libc-client.a(osdep.o): In function `ssl_onceonlyinit': osdep.c:(.text+0x9e37): warning: the use of `tmpnam' is dangerous, better use `mkstemp' /usr/lib/libmcal.so: undefined reference to `ical_usebuf' collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1 !!! ERROR: dev-lang/php-4.4.1-r3 failed. !!! Function php4_4-sapi_src_compile, Line 517, Exitcode 2 !!! make failed !!! If you need support, post the topmost build error, NOT this status message.
Comment on attachment 81203 [details] Working icalscanner.lex Same here - It compiles but generates invalid code ... Sorry - I will upload another file that seems to work for me (at least there is no missing reference to ical_usebuf. This time I will try it (and recompile mod_php and php) before uploading another invalid file.
Created attachment 81210 [details] Working icalscanner.lex (second try) Here we go ... Same procedure. I was able to compile mod_php with libmcal (using the icalscanner.lex posted here).
*** Bug 124856 has been marked as a duplicate of this bug. ***
in cvs now. please attach a diff against the existing files next time, rather than a replacement file.