Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 79270 - gplflash doesn't correctly compile
Summary: gplflash doesn't correctly compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-23 16:39 UTC by Alessandro Ronchi
Modified: 2005-08-15 03:41 UTC (History)
8 users (show)

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


Attachments
configure log (config.log,41.98 KB, text/plain)
2005-01-23 16:40 UTC, Alessandro Ronchi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Ronchi 2005-01-23 16:39:25 UTC
When I try to compile gplflash-0.4.13 i get this error:

Codice:
checking for X... libraries , headers /usr/X11R6/include
checking for XOpenDisplay in -lX11... no
checking X11/XKBlib.h usability... yes
checking X11/XKBlib.h presence... yes
checking for X11/XKBlib.h... yes
configure: error: cannot find X11 development files


I don't know how to solve this problem, since I have X use flag and X11 dev files.

Reproducible: Always
Steps to Reproduce:
1. emerge gplflash

Actual Results:  
....cut....
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for jpeg_destroy_decompress in -ljpeg... yes
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking for gzsetparams in -lz... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for X... libraries , headers /usr/X11R6/include
checking for XOpenDisplay in -lX11... no
checking X11/XKBlib.h usability... yes
checking X11/XKBlib.h presence... yes
checking for X11/XKBlib.h... yes
configure: error: cannot find X11 development files
Comment 1 Alessandro Ronchi 2005-01-23 16:40:34 UTC
Created attachment 49334 [details]
configure log
Comment 2 Peter Gordon (RETIRED) gentoo-dev 2005-01-24 10:40:52 UTC
I get this too, using ~x86. =(
Comment 3 Alessandro Ronchi 2005-01-25 15:35:00 UTC
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.
Comment 4 Stefan Schweizer (RETIRED) gentoo-dev 2005-01-26 13:38:10 UTC
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.
Comment 5 Stefan Schweizer (RETIRED) gentoo-dev 2005-01-26 14:04:21 UTC
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 
Comment 6 Donnie Berkholz (RETIRED) gentoo-dev 2005-01-26 17:04:18 UTC
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.
Comment 7 Markus Rothe (RETIRED) gentoo-dev 2005-02-07 10:13:11 UTC
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.
Comment 8 Donnie Berkholz (RETIRED) gentoo-dev 2005-02-07 18:20:34 UTC
Uhm, you're trying to tell configure that the libs are in /usr/include? That's obviously wrong.
Comment 9 Markus Rothe (RETIRED) gentoo-dev 2005-02-08 04:11:58 UTC
ok. I totaly agree!

this one is *much* better:

./configure --x-includes=/usr/include/X11/ --x-libraries=/usr/lib/
Comment 10 Donnie Berkholz (RETIRED) gentoo-dev 2005-02-08 19:55:28 UTC
That's really just a workaround, the autotools files should probably be fixed to actually figure out that they might be in standard locations.
Comment 11 Markus Rothe (RETIRED) gentoo-dev 2005-02-08 21:22:55 UTC
ok. I'll take a look at that.
Comment 12 Donnie Berkholz (RETIRED) gentoo-dev 2005-02-19 23:21:50 UTC
Had a chance to take a look yet, Markus?
Comment 13 Peter Gordon (RETIRED) gentoo-dev 2005-03-01 20:43:42 UTC
Markus, Donnie: Any news or updates on the matter?
Comment 14 Markus Rothe (RETIRED) gentoo-dev 2005-03-08 06:34:04 UTC
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.
Comment 15 Mark Dominik Bürkle 2005-05-10 05:52:22 UTC
didn't manage to get rid of all errors, either. :-( cc+=me.
Comment 16 Stefan Schweizer (RETIRED) gentoo-dev 2005-08-15 03:41:47 UTC
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.