Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 124309 - dev-libs/libmcal-0.7-r5 compile fails with flex-2.5.33-r1
Summary: dev-libs/libmcal-0.7-r5 compile fails with flex-2.5.33-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
: 124690 124856 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-02-27 14:54 UTC by Robert F Stockdale IV
Modified: 2006-04-01 22:51 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Working icalscanner.lex (icalscanner.lex,1.68 KB, application/octet-stream)
2006-03-03 06:52 UTC, @4u
Details
Working icalscanner.lex (second try) (icalscanner.lex,1.67 KB, application/octet-stream)
2006-03-03 08:08 UTC, @4u
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert F Stockdale IV 2006-02-27 14:54:29 UTC
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)
Comment 1 Lorand Kelemen 2006-02-28 01:27:07 UTC
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':
...
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-02-28 01:37:13 UTC
ok, the new flex has broken things. this is the second package I've seen with this. More on it tommorow.
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-03-02 02:49:43 UTC
please emerge flex-2.5.33-r1 and then try libmcal again.
Comment 4 Lorand Kelemen 2006-03-02 03:00:55 UTC
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.
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-03-02 13:07:34 UTC
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.
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-03-02 13:19:01 UTC
*** Bug 124690 has been marked as a duplicate of this bug. ***
Comment 7 SpanKY gentoo-dev 2006-03-02 19:46:16 UTC
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)
Comment 8 @4u 2006-03-03 06:52:22 UTC
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"?!
Comment 9 Mike Green 2006-03-03 07:03:25 UTC
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.
Comment 10 Mike Green 2006-03-03 07:15:47 UTC
(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 11 @4u 2006-03-03 08:04:06 UTC
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.
Comment 12 @4u 2006-03-03 08:08:08 UTC
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).
Comment 13 Jakub Moc (RETIRED) gentoo-dev 2006-03-03 12:56:11 UTC
*** Bug 124856 has been marked as a duplicate of this bug. ***
Comment 14 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-04-01 22:51:01 UTC
in cvs now.
please attach a diff against the existing files next time, rather than a replacement file.