| Summary: | gplflash doesn't correctly compile | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Alessandro Ronchi <alessandro.ronchi> |
| Component: | Current packages | Assignee: | Mozilla Gentoo Team <mozilla> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | codergeek42, corsair, david.morgan, dberkholz, dominik.buerkle, genstef, ladanyi, stolz |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | PPC | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | configure log | ||
|
Description
Alessandro Ronchi
2005-01-23 16:39:25 UTC
Created attachment 49334 [details]
configure log
I get this too, using ~x86. =( I think this bug depends on this test in ./configure:
AC_CHECK_HEADERS(X11/XKBlib.h)
if test "${ac_cv_my_have_x11}" != "yes" ; then
AC_MSG_ERROR([cannot find X11 development files])
fi
I have XKBlib.h but it doesn't recognize it.
If I delete these lines, I get this error:
swfplayer-main.o(.text+0x150): In function `FlashGraphicInitX11':
/home/aronchi/gplflash-0.4.13/player/main.c:134: undefined reference to `XGetWindowAttributes'
swfplayer-main.o(.text+0x15c):/home/aronchi/gplflash-0.4.13/player/main.c:156: undefined reference to `XListPixmapFormats'
swfplayer-main.o(.text+0x2c4):/home/aronchi/gplflash-0.4.13/player/main.c:209: undefined reference to `XShmAttach'
swfplayer-main.o(.text+0x2e8):/home/aronchi/gplflash-0.4.13/player/main.c:219: undefined reference to `XSync'
swfplayer-main.o(.text+0x348):/home/aronchi/gplflash-0.4.13/player/main.c:228: undefined reference to `XShmCreatePixmap'
swfplayer-main.o(.text+0x358):/home/aronchi/gplflash-0.4.13/player/main.c:229: undefined reference to `XSync'
swfplayer-main.o(.text+0x364):/home/aronchi/gplflash-0.4.13/player/main.c:231: undefined reference to `XCreateFontCursor'
swfplayer-main.o(.text+0x36c):/home/aronchi/gplflash-0.4.13/player/main.c:232: undefined reference to `XFlush'
swfplayer-main.o(.text+0x3f0):/home/aronchi/gplflash-0.4.13/player/main.c:195: undefined reference to `XSelectInput'
swfplayer-main.o(.text+0x478):/home/aronchi/gplflash-0.4.13/player/main.c:209: undefined reference to `XShmAttach'
swfplayer-main.o(.text+0x4dc): In function `FlashCopyX11':
/home/aronchi/gplflash-0.4.13/player/main.c:244: undefined reference to `XSetFunction'
swfplayer-main.o(.text+0x51c):/home/aronchi/gplflash-0.4.13/player/main.c:252: undefined reference to `XCopyArea'
swfplayer-main.o(.text+0x528):/home/aronchi/gplflash-0.4.13/player/main.c:258: undefined reference to `XFlush'
swfplayer-main.o(.text+0x584):/home/aronchi/gplflash-0.4.13/player/main.c:252: undefined reference to `XCopyArea'
swfplayer-main.o(.text+0x590):/home/aronchi/gplflash-0.4.13/player/main.c:258: undefined reference to `XFlush'
swfplayer-main.o(.text+0x6e8): In function `drawInfo':
/home/aronchi/gplflash-0.4.13/player/main.c:297: undefined reference to `XSetForeground'
swfplayer-main.o(.text+0x710):/home/aronchi/gplflash-0.4.13/player/main.c:298: undefined reference to `XDrawString'
swfplayer-main.o(.text+0x74c):/home/aronchi/gplflash-0.4.13/player/main.c:301: undefined reference to `XDrawString'
swfplayer-main.o(.text+0x754):/home/aronchi/gplflash-0.4.13/player/main.c:302: undefined reference to `XFlush'
swfplayer-main.o(.text+0x7fc): In function `playMovie':
/home/aronchi/gplflash-0.4.13/player/main.c:322: undefined reference to `XSelectInput'
swfplayer-main.o(.text+0x810):/home/aronchi/gplflash-0.4.13/player/main.c:324: undefined reference to `XSync'
swfplayer-main.o(.text+0x8d4):/home/aronchi/gplflash-0.4.13/player/main.c:351: undefined reference to `XNextEvent'
swfplayer-main.o(.text+0xa00):/home/aronchi/gplflash-0.4.13/player/main.c:360: undefined reference to `XLookupKeysym'
swfplayer-main.o(.text+0xce0): In function `main':
/home/aronchi/gplflash-0.4.13/player/main.c:501: undefined reference to `XOpenDisplay'
swfplayer-main.o(.text+0xe10): In function `main':
/home/aronchi/gplflash-0.4.13/player/vroot.h:88: undefined reference to `XInternAtom'
swfplayer-main.o(.text+0xe30):/home/aronchi/gplflash-0.4.13/player/vroot.h:89: undefined reference to `XQueryTree'
swfplayer-main.o(.text+0xea0):/home/aronchi/gplflash-0.4.13/player/vroot.h:97: undefined reference to `XGetWindowProperty'
swfplayer-main.o(.text+0xeec): In function `main':
/home/aronchi/gplflash-0.4.13/player/main.c:559: undefined reference to `XFlush'
swfplayer-main.o(.text+0xf60): In function `main':
/home/aronchi/gplflash-0.4.13/player/vroot.h:108: undefined reference to `XFree'
swfplayer-main.o(.text+0x1028): In function `main':
/home/aronchi/gplflash-0.4.13/player/main.c:532: undefined reference to `XCreateSimpleWindow'
swfplayer-main.o(.text+0x103c):/home/aronchi/gplflash-0.4.13/player/main.c:538: undefined reference to `XMapWindow'
swfplayer-main.o(.text+0x1098):/home/aronchi/gplflash-0.4.13/player/main.c:540: undefined reference to `XCreateSimpleWindow'swfplayer-main.o(.text+0x10ac):/home/aronchi/gplflash-0.4.13/player/main.c:544: undefined reference to `XMapWindow'
swfplayer-main.o(.text+0x1108):/home/aronchi/gplflash-0.4.13/player/main.c:546: undefined reference to `XCreateSimpleWindow'swfplayer-main.o(.text+0x1120):/home/aronchi/gplflash-0.4.13/player/main.c:550: undefined reference to `XMapWindow'
swfplayer-main.o(.text+0x1134):/home/aronchi/gplflash-0.4.13/player/main.c:551: undefined reference to `XSelectInput'
collect2: ld returned 1 exit status
make[2]: *** [swfplayer] Error 1
I hope these information helps to correct the BUG.
Really this is not in portage and therefore a gplflash bug, can you please first request a version bump and only then report bugs to gentoo? Should be reported upstream imo .. but the version bump issue remains. spyderous: Do you know how to solve this? I add you, since I think this is caused by the /usr/X11R6 move It also happens with the old version for me, so it has nothing to with the version bump configure:19898: checking for XOpenDisplay in -lX11 configure:19928: powerpc-unknown-linux-gnu-gcc -o conftest -O3 -mcpu=7400 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe -mpowerpc-gfxopt -fomit-frame-pointer -Wall conftest.c -lX11 -lXt -L >&5 powerpc-unknown-linux-gnu-gcc: argument to `-L' is missing configure assumes X libs won't be in /usr/lib so it assumes a -L/path/to/somewhere will be required. You need to change this, so the -L is only added if needed. See bug #75251 for example, although each package will need slightly different changes depending on its autotools setup. ok.. we just need to do this: ./configure --x-libraries=/usr/include/X11/ Now I'm wondering if we can do that "not hardcoded"... i.e. case dependend. Uhm, you're trying to tell configure that the libs are in /usr/include? That's obviously wrong. ok. I totaly agree! this one is *much* better: ./configure --x-includes=/usr/include/X11/ --x-libraries=/usr/lib/ That's really just a workaround, the autotools files should probably be fixed to actually figure out that they might be in standard locations. ok. I'll take a look at that. Had a chance to take a look yet, Markus? Markus, Donnie: Any news or updates on the matter? I've done a version bump to 0.4.13 which includes "configure --x-includes=/usr/include/X11/ --x-libraries=/usr/lib/" until a better solution is found. didn't manage to get rid of all errors, either. :-( cc+=me. This bug is fixed upstream in gplflash2 and workarounded in portage, no need to keep it open. There is a gplflash2 ebuild for those of you who are feeling lucky: http://dev.gentoo.org/~genstef/files/overlay/gplflash-2_alpha.ebuild I did not even get to start anything with gplflash2, so I guess it's still in really early development. |