View previous topic :: View next topic |
Author |
Message |
Mr Shrub n00b
Joined: 11 Mar 2003 Posts: 7
|
Posted: Tue Mar 11, 2003 1:21 pm Post subject: libpng issues |
|
|
When I try and emerge the latest libpng package, it downloads, and then halfway through the make informs me that it cannot find png.o (which I also cannot locate). There appears to be a fault with the make process I think...here's what it outputs for the most part...
Quote: |
>>> Unpacking libpng-1.2.5.tar.bz2 to /var/tmp/portage/libpng-1.2.5-r4/work
* Applying libpng-1.2.5-gentoo.diff... [ ok ]
>>> Source unpacked.
I/usr/include -Wall -O2 -mcpu=i686 -pipe -funroll-loops -c -o png.o png.c
make: I/usr/include: Command not found
make: [png.o] Error 127 (ignored)
I/usr/include -Wall -O2 -mcpu=i686 -pipe -funroll-loops -c -o pngset.o pngset.c
make: I/usr/include: Command not found
|
Which finally endsd up with
(repetitive sections ommited)
Quote: |
cat scripts/libpng-config-body.in ) > libpng-config
ar rc libpng.a png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o pngwtran.o pngmem.o pngerror.o pngpread.o
ar: png.o: No such file or directory
make: *** [libpng.a] Error 1
make: *** Waiting for unfinished jobs....
chmod +x libpng-config
make: *** Waiting for unfinished jobs....
!!! ERROR: media-libs/libpng-1.2.5-r4 failed.
!!! Function src_compile, Line 1, Exitcode 2
!!! Make failed
|
I can go into /var/tmp/portage/.../libpng-1.2.5 and compile from there without a problem, however if I do this, then emerge doesn't recognise the dependency as being fulfilled, and as such I can't progress with other apps being installed.
I'm pretty sure it's all installed correctly after running make install from the aforementioned directory, however I'm not sure how to confirm this.
Does anyone have any idea how I can go about getting this package installed properly once and for all?
Cheers. |
|
Back to top |
|
|
int1 Tux's lil' helper
Joined: 08 Nov 2002 Posts: 139
|
Posted: Wed Mar 12, 2003 12:40 am Post subject: |
|
|
Actually, if you look, it appears your compiler setting is not correct:
Quote: |
I/usr/include -Wall -O2 -mcpu=i686 -pipe -funroll-loops -c -o png.o png.c
make: I/usr/include: Command not found
|
The "I/use/include" should read /full/path/to/gcc (with the full path to gcc, not actually /full/path/to....)
I suggest running gcc-config and checking make.conf to make sure you haven't set something inadvertently.
PS> It might be the emerge script as well....
int1 |
|
Back to top |
|
|
Mr Shrub n00b
Joined: 11 Mar 2003 Posts: 7
|
Posted: Wed Mar 12, 2003 4:36 am Post subject: |
|
|
Hi,
Thanks for the response. I managed to get it all working by manually compiling it from the portage directory, and then I usedemerge -i libpng-1.2.5-r4.
Thanks again |
|
Back to top |
|
|
Woody2143 n00b
Joined: 26 Mar 2003 Posts: 19 Location: Atlanta, GA
|
Posted: Mon Apr 07, 2003 8:51 pm Post subject: |
|
|
I ran in to this same problem when I was updateing one of my clients. It had been months since the last update so emerge -u -deep world had a lot to update. When it got to libpng I ran in to the same problem as above. I fixed it by changing the ebuild from
Code: | src_compile() {
emake CC="${CC}" CXX="${CXX}"|| die "Make failed"
} |
to
Code: | src_compile() {
#emake CC="${CC}" CXX="${CXX}"|| die "Make failed"
emake || die
} |
Installed just fine after that. Though it got me to looking at my make.conf and gcc to see if I had something messed up. On a fluke I did emerge -s gcc to see which gcc was installed and here is what I got
Code: | * sys-devel/gcc
Latest version available: 2.95.3-r8
Latest version installed: 3.0.4-r6
Size of downloaded files: 12,609 kB
Homepage: http://www.gnu.org/software/gcc/gcc.html
Description: Modern C/C++ compiler written by the GNU people |
Pretty wacky in my opinion. Right now I am re-emergeing gcc 2.95.3-r8 to see if that'll get me to a happy place, then I'll try re-emerging libpng with the normal ebuild to see if that was the problem...
Just my notes on the subject, no telling how many things I got wrong... _________________ -- Woody2143 |
|
Back to top |
|
|
|